Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5611485ybl; Tue, 27 Aug 2019 07:15:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtGjlOwqpakpJ30vcf/V9BrT+HVimGm418egBYRoPrQFD40bKiAL+dok+3c1t/i6Emcmmi X-Received: by 2002:a63:5048:: with SMTP id q8mr21144123pgl.446.1566915358810; Tue, 27 Aug 2019 07:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566915358; cv=none; d=google.com; s=arc-20160816; b=yWNsEI8XGQfQ7WAdMmGI5TLLxMuUuSot0o34i/1G02GFr7HoamYoslBHQDYsZ5bgLg 0713p/Cu5Aa80EmPt33rerFlzTPgoKHeJjpOzo/SQYPo3Osowsa89jmgAZrxnkhytrZL 4yKHjZqX8XwuSkZUGVCfyWFb6siuP56wLQhwugcspisTBxpmyOs9RCbao9jz4BpHne6P hX1tt8wDW/FJCdl2G0BFem8sE1tHtr2IWPC7KhGKUHI6fSsLTd3g6MpS/ScgzvLIYWlE Mfz8p3A3lCTA8cxmbBaA/xx8aBvCK3Zh+y1I1BB5kaIhfgePXJPjRSUBkQi+wJUpPSsW e+CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wx/fVFZEpj/2H8n8Jg3R7yQSAZZaOVX8FPrT6dtDdqA=; b=tnmeHDlqx/QCvVcTZFXWbV9YhzzFeUV1dzRN70SxmAy37uXTpqhrI854sS1NSKSBDa SkxhWzsGj6lxvHyVLfuA4SVkLJzL2VTIx9/J4QQv02SWWJjDdlgy4RzrQzYVF2IwkBmJ JtSaEvCk0aEr/LeC9YcraTF7p6wYyp2r2i0BCwz6NEZLwaqm9amPeMaTaEWhbaqgBbca d6n603nu8rKPHHE+w71el3oYJogi+wr1J0xcIDMKEKP1+DLOaTuKEpHwqn2kq4aU+ydf F6TKWz16cnltxkwm4heu7PQiozEhb86LXqrBlOiUYSYU99PWIDJ7qIgZ0YYZB33UD/XY 5oIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13si12733964plr.12.2019.08.27.07.15.43; Tue, 27 Aug 2019 07:15:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729959AbfH0OND (ORCPT + 99 others); Tue, 27 Aug 2019 10:13:03 -0400 Received: from mga12.intel.com ([192.55.52.136]:10800 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729918AbfH0ONA (ORCPT ); Tue, 27 Aug 2019 10:13:00 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2019 07:12:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,437,1559545200"; d="scan'208";a="264282427" Received: from xxx.igk.intel.com ([10.237.93.170]) by orsmga001.jf.intel.com with ESMTP; 27 Aug 2019 07:12:57 -0700 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= To: alsa-devel@alsa-project.org Cc: Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Pierre-Louis Bossart , Jie Yang , Cezary Rojewski , linux-kernel@vger.kernel.org, =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Subject: [PATCH 3/6] ASoC: dapm: Expose snd_soc_dapm_new_control_unlocked properly Date: Tue, 27 Aug 2019 16:17:09 +0200 Message-Id: <20190827141712.21015-4-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190827141712.21015-1-amadeuszx.slawinski@linux.intel.com> References: <20190827141712.21015-1-amadeuszx.slawinski@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amadeusz Sławiński We use snd_soc_dapm_new_control_unlocked for topology and have local declaration, instead declare it properly in header like already declared snd_soc_dapm_new_control. Signed-off-by: Amadeusz Sławiński --- include/sound/soc-dapm.h | 3 +++ sound/soc/soc-topology.c | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 2aa73d6dd7be..30d8d0410952 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -404,6 +404,9 @@ int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm, struct snd_soc_dapm_widget *snd_soc_dapm_new_control( struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_widget *widget); +struct snd_soc_dapm_widget *snd_soc_dapm_new_control_unlocked( + struct snd_soc_dapm_context *dapm, + const struct snd_soc_dapm_widget *widget); int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai); int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index b8690715abb5..aa9a1fca46fa 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -80,12 +80,6 @@ struct soc_tplg { static int soc_tplg_process_headers(struct soc_tplg *tplg); static void soc_tplg_complete(struct soc_tplg *tplg); -struct snd_soc_dapm_widget * -snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, - const struct snd_soc_dapm_widget *widget); -struct snd_soc_dapm_widget * -snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm, - const struct snd_soc_dapm_widget *widget); static void soc_tplg_denum_remove_texts(struct soc_enum *se); static void soc_tplg_denum_remove_values(struct soc_enum *se); -- 2.17.1