Skip to content

Commit 9c04b5a

Browse files
Ravulapati Vishnu vardhan raobroonie
authored andcommitted
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: Ravulapati Vishnu vardhan rao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fd0ea9c commit 9c04b5a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sound/soc/amd/acp3x-rt5682-max9836.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ static const struct snd_kcontrol_new acp3x_dmic_mux_control =
290290
SOC_DAPM_ENUM_EXT("DMIC Select Mux", acp3x_dmic_enum,
291291
dmic_get, dmic_set);
292292

293-
static const struct snd_soc_dapm_widget acp3x_widgets[] = {
293+
static const struct snd_soc_dapm_widget acp3x_5682_widgets[] = {
294294
SND_SOC_DAPM_HP("Headphone Jack", NULL),
295295
SND_SOC_DAPM_SPK("Spk", NULL),
296296
SND_SOC_DAPM_MIC("Headset Mic", NULL),
297297
SND_SOC_DAPM_MUX("Dmic Mux", SND_SOC_NOPM, 0, 0,
298298
&acp3x_dmic_mux_control),
299299
};
300300

301-
static const struct snd_soc_dapm_route acp3x_audio_route[] = {
301+
static const struct snd_soc_dapm_route acp3x_5682_audio_route[] = {
302302
{"Headphone Jack", NULL, "HPOL"},
303303
{"Headphone Jack", NULL, "HPOR"},
304304
{"IN1P", NULL, "Headset Mic"},
@@ -307,23 +307,23 @@ static const struct snd_soc_dapm_route acp3x_audio_route[] = {
307307
{"Dmic Mux", "Rear Mic", "DMIC"},
308308
};
309309

310-
static const struct snd_kcontrol_new acp3x_mc_controls[] = {
310+
static const struct snd_kcontrol_new acp3x_5682_mc_controls[] = {
311311
SOC_DAPM_PIN_SWITCH("Headphone Jack"),
312312
SOC_DAPM_PIN_SWITCH("Spk"),
313313
SOC_DAPM_PIN_SWITCH("Headset Mic"),
314314
};
315315

316-
static struct snd_soc_card acp3x_card = {
316+
static struct snd_soc_card acp3x_5682 = {
317317
.name = "acp3xalc5682m98357",
318318
.owner = THIS_MODULE,
319319
.dai_link = acp3x_dai_5682_98357,
320320
.num_links = ARRAY_SIZE(acp3x_dai_5682_98357),
321-
.dapm_widgets = acp3x_widgets,
322-
.num_dapm_widgets = ARRAY_SIZE(acp3x_widgets),
323-
.dapm_routes = acp3x_audio_route,
324-
.num_dapm_routes = ARRAY_SIZE(acp3x_audio_route),
325-
.controls = acp3x_mc_controls,
326-
.num_controls = ARRAY_SIZE(acp3x_mc_controls),
321+
.dapm_widgets = acp3x_5682_widgets,
322+
.num_dapm_widgets = ARRAY_SIZE(acp3x_5682_widgets),
323+
.dapm_routes = acp3x_5682_audio_route,
324+
.num_dapm_routes = ARRAY_SIZE(acp3x_5682_audio_route),
325+
.controls = acp3x_5682_mc_controls,
326+
.num_controls = ARRAY_SIZE(acp3x_5682_mc_controls),
327327
};
328328

329329
static int acp3x_probe(struct platform_device *pdev)
@@ -336,8 +336,8 @@ static int acp3x_probe(struct platform_device *pdev)
336336
if (!machine)
337337
return -ENOMEM;
338338

339-
card = &acp3x_card;
340-
acp3x_card.dev = &pdev->dev;
339+
card = &acp3x_5682;
340+
acp3x_5682.dev = &pdev->dev;
341341
platform_set_drvdata(pdev, card);
342342
snd_soc_card_set_drvdata(card, machine);
343343

@@ -348,11 +348,11 @@ static int acp3x_probe(struct platform_device *pdev)
348348
return PTR_ERR(dmic_sel);
349349
}
350350

351-
ret = devm_snd_soc_register_card(&pdev->dev, &acp3x_card);
351+
ret = devm_snd_soc_register_card(&pdev->dev, &acp3x_5682);
352352
if (ret) {
353353
dev_err(&pdev->dev,
354354
"devm_snd_soc_register_card(%s) failed: %d\n",
355-
acp3x_card.name, ret);
355+
acp3x_5682.name, ret);
356356
return ret;
357357
}
358358
return 0;

0 commit comments

Comments
 (0)