From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH v2 5/5] ASoC: dapm: Simplify snd_soc_dapm_link_dai_widgets() Date: Mon, 12 May 2014 16:38:46 +0200 Message-ID: <5370DCF6.3090004@metafoo.de> References: <1399472428-11034-1-git-send-email-lars@metafoo.de> <1399472428-11034-5-git-send-email-lars@metafoo.de> <20140512143743.GI25203@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-016.synserver.de (smtp-out-079.synserver.de [212.40.185.79]) by alsa0.perex.cz (Postfix) with ESMTP id 3B80A265050 for ; Mon, 12 May 2014 16:38:47 +0200 (CEST) In-Reply-To: <20140512143743.GI25203@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Charles Keepax Cc: Songhee Baek , Arun Shamanna Lakshmi , alsa-devel@alsa-project.org, Mark Brown , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 05/12/2014 04:37 PM, Charles Keepax wrote: > On Wed, May 07, 2014 at 04:20:28PM +0200, Lars-Peter Clausen wrote: >> If we find a widget who's stream name matches the name of a DAI widget then >> thats the one it should be connected to. Based on the widget id we can say in >> which direction the path should be. No need to go back to the DAI and check the >> stream names. >> >> Signed-off-by: Lars-Peter Clausen >> --- >> sound/soc/soc-dapm.c | 27 +++++++++------------------ >> 1 file changed, 9 insertions(+), 18 deletions(-) >> >> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c >> index d7958f4..bed17a3 100644 >> --- a/sound/soc/soc-dapm.c >> +++ b/sound/soc/soc-dapm.c >> @@ -3334,6 +3334,7 @@ int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, >> int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card) >> { >> struct snd_soc_dapm_widget *dai_w, *w; >> + struct snd_soc_dapm_widget *src, *sink; >> struct snd_soc_dai *dai; > > I think you have removed all the uses of this variable (dai) so you can > remove this as well. It is still used in the dev_dbg() call.