[alsa-devel] [PATCH v2 5/5] ASoC: dapm: Simplify snd_soc_dapm_link_dai_widgets()
Charles Keepax
ckeepax at opensource.wolfsonmicro.com
Mon May 12 16:37:43 CEST 2014
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 <lars at metafoo.de>
> ---
> 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.
Thanks,
Charles
More information about the Alsa-devel
mailing list