SND_SOC_DAILINK_DEF(rt1019,
DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC1019:00", "rt1019-aif"),
COMP_CODEC("i2c-10EC1019:01", "rt1019-aif")));
-SND_SOC_DAILINK_DEF(rt1019_1,
- DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC1019:02", "rt1019-aif"),
- COMP_CODEC("i2c-10EC1019:01", "rt1019-aif")));
static const struct snd_soc_dapm_route rt1019_map_lr[] = {
{ "Left Spk", NULL, "Left SPO" },
},
};
-static struct snd_soc_codec_conf rt1019_1_conf[] = {
- {
- .dlc = COMP_CODEC_CONF("i2c-10EC1019:02"),
- .name_prefix = "Left",
- },
- {
- .dlc = COMP_CODEC_CONF("i2c-10EC1019:01"),
- .name_prefix = "Right",
- },
-};
-
static int acp_card_rt1019_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_card *card = rtd->card;
links[i].init = acp_card_rt1019_init;
card->codec_conf = rt1019_conf;
card->num_configs = ARRAY_SIZE(rt1019_conf);
- links[i].codecs = rt1019_1;
- links[i].num_codecs = ARRAY_SIZE(rt1019_1);
- card->codec_conf = rt1019_1_conf;
- card->num_configs = ARRAY_SIZE(rt1019_1_conf);
}
i++;
}