@@ -371,6 +371,8 @@ int tegra_asoc_machine_probe(struct platform_device *pdev)
if (asoc->add_common_snd_ops)
card->dai_link->ops = &tegra_machine_snd_ops;
+ if (asoc->components)
+ card->components = asoc->components;
if (!card->owner)
card->owner = THIS_MODULE;
@@ -406,6 +408,7 @@ static struct snd_soc_dai_link tegra_wm8753_dai = {
};
static struct snd_soc_card snd_soc_tegra_wm8753 = {
+ .components = "codec:wm8753",
.dai_link = &tegra_wm8753_dai,
.num_links = 1,
.fully_routed = true,
@@ -438,6 +441,7 @@ static struct snd_soc_dai_link tegra_wm9712_dai = {
};
static struct snd_soc_card snd_soc_tegra_wm9712 = {
+ .components = "codec:wm9712",
.dai_link = &tegra_wm9712_dai,
.num_links = 1,
.fully_routed = true,
@@ -499,6 +503,7 @@ static struct snd_soc_dai_link tegra_sgtl5000_dai = {
};
static struct snd_soc_card snd_soc_tegra_sgtl5000 = {
+ .components = "codec:sgtl5000",
.dai_link = &tegra_sgtl5000_dai,
.num_links = 1,
.fully_routed = true,
@@ -541,6 +546,7 @@ static struct snd_soc_dai_link tegra_tlv320aic23_dai = {
};
static struct snd_soc_card snd_soc_tegra_trimslice = {
+ .components = "codec:tlv320aic23",
.dai_link = &tegra_tlv320aic23_dai,
.num_links = 1,
.dapm_widgets = trimslice_dapm_widgets,
@@ -588,6 +594,7 @@ static struct snd_soc_dai_link tegra_rt5677_dai = {
};
static struct snd_soc_card snd_soc_tegra_rt5677 = {
+ .components = "codec:rt5677",
.dai_link = &tegra_rt5677_dai,
.num_links = 1,
.fully_routed = true,
@@ -621,6 +628,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = {
};
static struct snd_soc_card snd_soc_tegra_rt5640 = {
+ .components = "codec:rt5640",
.dai_link = &tegra_rt5640_dai,
.num_links = 1,
.fully_routed = true,
@@ -653,6 +661,7 @@ static struct snd_soc_dai_link tegra_rt5632_dai = {
};
static struct snd_soc_card snd_soc_tegra_rt5632 = {
+ .components = "codec:rt5632",
.dai_link = &tegra_rt5632_dai,
.num_links = 1,
.fully_routed = true,
@@ -15,6 +15,7 @@ struct snd_soc_pcm_runtime;
struct tegra_asoc_data {
unsigned int (*mclk_rate)(unsigned int srate);
struct snd_soc_card *card;
+ const char *components;
unsigned int mclk_id;
bool hp_jack_gpio_active_low;
bool add_common_dapm_widgets;
@@ -129,6 +129,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = {
};
static struct snd_soc_card snd_soc_tegra_wm8903 = {
+ .components = "codec:wm8903",
.owner = THIS_MODULE,
.dai_link = &tegra_wm8903_dai,
.num_links = 1,