lkml.org 
[lkml]   [2019]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()
From
Date


> I still need to figure out prefixing multiple instances of this
> Amplifier controls with "Left" and "Right"

FWIW we use the "snd_codec_conf" stuff to add a prefix for each
amplifier, so that the controls are not mixed up between instances of
the same amp, see e.g.


static struct snd_soc_codec_conf codec_conf[] = {
{
.dev_name = "sdw:0:25d:711:0:1",
.name_prefix = "rt711",
},
{
.dev_name = "sdw:1:25d:1308:0:0",
.name_prefix = "rt1308-1",
},
{
.dev_name = "sdw:2:25d:1308:0:2",
.name_prefix = "rt1308-2",
},
{
.dev_name = "sdw:3:25d:715:0:1",
.name_prefix = "rt715",
},
};


https://github.com/thesofproject/linux/pull/1142/commits/9ff9cf9d8994333df2250641c95431261bc66d69#diff-892560f80d603420baec7395e0b45d81R212

\
 
 \ /
  Last update: 2019-10-10 21:21    [W:0.076 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site