[alsa-devel] [PATCH 04/13] ASoC: dapm: add driver prefix matching for snd_soc_dapm_add_route()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Mon Mar 16 03:44:58 CET 2015
Hi Lars
> > Current DAPM will lost correct route settings if some CPU/Codec was using
> > same stream name, and it will be problem when DPCM case.
> > For example, stream name of Renesas sound drver / ak4642 / dummy for DPCM
> > have same name as "Playback", like below
> >
> > FE CPU (rsnd): "DAI0 Playback"
> > Codec (dummy): "Playback"
> >
> > BE CPU (dummy): "Playback"
> > Codec (ak4642): "Playback"
> >
> > Then, "Playback" - "DAI0 Playback" can't match correctly. This patch adds
> > "driver name" prefix for this case.
> > We can use "ak4642-hifi Playback" - "DAI0 Playback" here.
>
> Hi,
>
> There is already a prefix mechanism to handle this. If you have
> widgets with the same name in different contexts you can use the
> snd_soc_codec_conf struct and set the name_prefix field to assign a
> unique prefix to each context.
Thank you.
I didn't know this, I could use it.
I will send v2 patch
Best regards
---
Kuninori Morimoto
More information about the Alsa-devel
mailing list