[alsa-devel] [PATCH 04/13] ASoC: dapm: add driver prefix matching for snd_soc_dapm_add_route()
Lars-Peter Clausen
lars at metafoo.de
Sat Mar 14 13:19:56 CET 2015
On 03/13/2015 02:22 AM, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
>
> 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.
- Lars
More information about the Alsa-devel
mailing list