From: Liam Girdwood Date: Fri, 1 Jun 2012 17:03:00 +0000 (+0100) Subject: ASoC: dapm: Fix connected widget capture path query. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d298caae9a920e1745599ddd4a19073d9a033df0;p=openwrt%2Fstaging%2Fblogic.git ASoC: dapm: Fix connected widget capture path query. Make sure we check the correct path for capture. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 90ee77d2409d..b47fe75444ac 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -954,7 +954,7 @@ int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream, if (stream == SNDRV_PCM_STREAM_PLAYBACK) paths = is_connected_output_ep(dai->playback_widget, list); else - paths = is_connected_input_ep(dai->playback_widget, list); + paths = is_connected_input_ep(dai->capture_widget, list); trace_snd_soc_dapm_connected(paths, stream); dapm_clear_walk(&card->dapm);