Commit c16aab8d authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Mark Brown

ASoC: tegra: Specify components string for each card

Specify components string for each card of each supported device. It's
a free form string that describes audio hardware configuration. This
information is useful for ALSA UCM rules. It allows to generalize UCM
rules, potentially removing a need to add new UCM rule for each device.
Acked-by: default avatarJaroslav Kysela <perex@perex.cz>
Suggested-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210529154649.25936-4-digetx@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent cc8f70f5
...@@ -412,6 +412,7 @@ static struct snd_soc_dai_link tegra_wm8753_dai = { ...@@ -412,6 +412,7 @@ static struct snd_soc_dai_link tegra_wm8753_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_wm8753 = { static struct snd_soc_card snd_soc_tegra_wm8753 = {
.components = "codec:wm8753",
.dai_link = &tegra_wm8753_dai, .dai_link = &tegra_wm8753_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
...@@ -444,6 +445,7 @@ static struct snd_soc_dai_link tegra_wm9712_dai = { ...@@ -444,6 +445,7 @@ static struct snd_soc_dai_link tegra_wm9712_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_wm9712 = { static struct snd_soc_card snd_soc_tegra_wm9712 = {
.components = "codec:wm9712",
.dai_link = &tegra_wm9712_dai, .dai_link = &tegra_wm9712_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
...@@ -506,6 +508,7 @@ static struct snd_soc_dai_link tegra_sgtl5000_dai = { ...@@ -506,6 +508,7 @@ static struct snd_soc_dai_link tegra_sgtl5000_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_sgtl5000 = { static struct snd_soc_card snd_soc_tegra_sgtl5000 = {
.components = "codec:sgtl5000",
.dai_link = &tegra_sgtl5000_dai, .dai_link = &tegra_sgtl5000_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
...@@ -548,6 +551,7 @@ static struct snd_soc_dai_link tegra_tlv320aic23_dai = { ...@@ -548,6 +551,7 @@ static struct snd_soc_dai_link tegra_tlv320aic23_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_trimslice = { static struct snd_soc_card snd_soc_tegra_trimslice = {
.components = "codec:tlv320aic23",
.dai_link = &tegra_tlv320aic23_dai, .dai_link = &tegra_tlv320aic23_dai,
.num_links = 1, .num_links = 1,
.dapm_widgets = trimslice_dapm_widgets, .dapm_widgets = trimslice_dapm_widgets,
...@@ -595,6 +599,7 @@ static struct snd_soc_dai_link tegra_rt5677_dai = { ...@@ -595,6 +599,7 @@ static struct snd_soc_dai_link tegra_rt5677_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_rt5677 = { static struct snd_soc_card snd_soc_tegra_rt5677 = {
.components = "codec:rt5677",
.dai_link = &tegra_rt5677_dai, .dai_link = &tegra_rt5677_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
...@@ -628,6 +633,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = { ...@@ -628,6 +633,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_rt5640 = { static struct snd_soc_card snd_soc_tegra_rt5640 = {
.components = "codec:rt5640",
.dai_link = &tegra_rt5640_dai, .dai_link = &tegra_rt5640_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
...@@ -660,6 +666,7 @@ static struct snd_soc_dai_link tegra_rt5632_dai = { ...@@ -660,6 +666,7 @@ static struct snd_soc_dai_link tegra_rt5632_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_rt5632 = { static struct snd_soc_card snd_soc_tegra_rt5632 = {
.components = "codec:rt5632",
.dai_link = &tegra_rt5632_dai, .dai_link = &tegra_rt5632_dai,
.num_links = 1, .num_links = 1,
.fully_routed = true, .fully_routed = true,
......
...@@ -129,6 +129,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = { ...@@ -129,6 +129,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = {
}; };
static struct snd_soc_card snd_soc_tegra_wm8903 = { static struct snd_soc_card snd_soc_tegra_wm8903 = {
.components = "codec:wm8903",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.dai_link = &tegra_wm8903_dai, .dai_link = &tegra_wm8903_dai,
.num_links = 1, .num_links = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment