Commit 9c04b5a4 authored by Ravulapati Vishnu vardhan rao's avatar Ravulapati Vishnu vardhan rao Committed by Mark Brown

ASoC: amd: Renaming snd-soc-card structure and fields

As in future our machine driver supports multiple codecs
So changing naming convention of snd_soc_card struct and its fields.
Signed-off-by: default avatarRavulapati Vishnu vardhan rao <Vishnuvardhanrao.Ravulapati@amd.com>
Link: https://lore.kernel.org/r/20200728160255.31020-2-Vishnuvardhanrao.Ravulapati@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fd0ea9cd
...@@ -290,7 +290,7 @@ static const struct snd_kcontrol_new acp3x_dmic_mux_control = ...@@ -290,7 +290,7 @@ static const struct snd_kcontrol_new acp3x_dmic_mux_control =
SOC_DAPM_ENUM_EXT("DMIC Select Mux", acp3x_dmic_enum, SOC_DAPM_ENUM_EXT("DMIC Select Mux", acp3x_dmic_enum,
dmic_get, dmic_set); dmic_get, dmic_set);
static const struct snd_soc_dapm_widget acp3x_widgets[] = { static const struct snd_soc_dapm_widget acp3x_5682_widgets[] = {
SND_SOC_DAPM_HP("Headphone Jack", NULL), SND_SOC_DAPM_HP("Headphone Jack", NULL),
SND_SOC_DAPM_SPK("Spk", NULL), SND_SOC_DAPM_SPK("Spk", NULL),
SND_SOC_DAPM_MIC("Headset Mic", NULL), SND_SOC_DAPM_MIC("Headset Mic", NULL),
...@@ -298,7 +298,7 @@ static const struct snd_soc_dapm_widget acp3x_widgets[] = { ...@@ -298,7 +298,7 @@ static const struct snd_soc_dapm_widget acp3x_widgets[] = {
&acp3x_dmic_mux_control), &acp3x_dmic_mux_control),
}; };
static const struct snd_soc_dapm_route acp3x_audio_route[] = { static const struct snd_soc_dapm_route acp3x_5682_audio_route[] = {
{"Headphone Jack", NULL, "HPOL"}, {"Headphone Jack", NULL, "HPOL"},
{"Headphone Jack", NULL, "HPOR"}, {"Headphone Jack", NULL, "HPOR"},
{"IN1P", NULL, "Headset Mic"}, {"IN1P", NULL, "Headset Mic"},
...@@ -307,23 +307,23 @@ static const struct snd_soc_dapm_route acp3x_audio_route[] = { ...@@ -307,23 +307,23 @@ static const struct snd_soc_dapm_route acp3x_audio_route[] = {
{"Dmic Mux", "Rear Mic", "DMIC"}, {"Dmic Mux", "Rear Mic", "DMIC"},
}; };
static const struct snd_kcontrol_new acp3x_mc_controls[] = { static const struct snd_kcontrol_new acp3x_5682_mc_controls[] = {
SOC_DAPM_PIN_SWITCH("Headphone Jack"), SOC_DAPM_PIN_SWITCH("Headphone Jack"),
SOC_DAPM_PIN_SWITCH("Spk"), SOC_DAPM_PIN_SWITCH("Spk"),
SOC_DAPM_PIN_SWITCH("Headset Mic"), SOC_DAPM_PIN_SWITCH("Headset Mic"),
}; };
static struct snd_soc_card acp3x_card = { static struct snd_soc_card acp3x_5682 = {
.name = "acp3xalc5682m98357", .name = "acp3xalc5682m98357",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.dai_link = acp3x_dai_5682_98357, .dai_link = acp3x_dai_5682_98357,
.num_links = ARRAY_SIZE(acp3x_dai_5682_98357), .num_links = ARRAY_SIZE(acp3x_dai_5682_98357),
.dapm_widgets = acp3x_widgets, .dapm_widgets = acp3x_5682_widgets,
.num_dapm_widgets = ARRAY_SIZE(acp3x_widgets), .num_dapm_widgets = ARRAY_SIZE(acp3x_5682_widgets),
.dapm_routes = acp3x_audio_route, .dapm_routes = acp3x_5682_audio_route,
.num_dapm_routes = ARRAY_SIZE(acp3x_audio_route), .num_dapm_routes = ARRAY_SIZE(acp3x_5682_audio_route),
.controls = acp3x_mc_controls, .controls = acp3x_5682_mc_controls,
.num_controls = ARRAY_SIZE(acp3x_mc_controls), .num_controls = ARRAY_SIZE(acp3x_5682_mc_controls),
}; };
static int acp3x_probe(struct platform_device *pdev) static int acp3x_probe(struct platform_device *pdev)
...@@ -336,8 +336,8 @@ static int acp3x_probe(struct platform_device *pdev) ...@@ -336,8 +336,8 @@ static int acp3x_probe(struct platform_device *pdev)
if (!machine) if (!machine)
return -ENOMEM; return -ENOMEM;
card = &acp3x_card; card = &acp3x_5682;
acp3x_card.dev = &pdev->dev; acp3x_5682.dev = &pdev->dev;
platform_set_drvdata(pdev, card); platform_set_drvdata(pdev, card);
snd_soc_card_set_drvdata(card, machine); snd_soc_card_set_drvdata(card, machine);
...@@ -348,11 +348,11 @@ static int acp3x_probe(struct platform_device *pdev) ...@@ -348,11 +348,11 @@ static int acp3x_probe(struct platform_device *pdev)
return PTR_ERR(dmic_sel); return PTR_ERR(dmic_sel);
} }
ret = devm_snd_soc_register_card(&pdev->dev, &acp3x_card); ret = devm_snd_soc_register_card(&pdev->dev, &acp3x_5682);
if (ret) { if (ret) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"devm_snd_soc_register_card(%s) failed: %d\n", "devm_snd_soc_register_card(%s) failed: %d\n",
acp3x_card.name, ret); acp3x_5682.name, ret);
return ret; return ret;
} }
return 0; return 0;
......
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