Skip to content

Commit 97d8613

Browse files
Hsin-Te Yuanbroonie
authored andcommitted
ASoC: mediatek: mt8183-da7219-max98357: Fix kcontrol name collision
Since "Headphone Switch" kcontrol name has already been used by da7219, rename the control name from "Headphone" to "Headphones" to prevent the colision. Also, this change makes kcontrol name align with the one in mt8186-mt6366-da7219-max98357.c. Fixes: 9c7388b ("ASoC: mediatek: mt8183-da7219-max98357: Map missing jack kcontrols") Change-Id: I9ae69a4673cd04786b247cc514fdd20f878ef009 Signed-off-by: Hsin-Te Yuan <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ccd8d75 commit 97d8613

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct mt8183_da7219_max98357_priv {
3131

3232
static struct snd_soc_jack_pin mt8183_da7219_max98357_jack_pins[] = {
3333
{
34-
.pin = "Headphone",
34+
.pin = "Headphones",
3535
.mask = SND_JACK_HEADPHONE,
3636
},
3737
{
@@ -626,15 +626,15 @@ static struct snd_soc_codec_conf mt6358_codec_conf[] = {
626626
};
627627

628628
static const struct snd_kcontrol_new mt8183_da7219_max98357_snd_controls[] = {
629-
SOC_DAPM_PIN_SWITCH("Headphone"),
629+
SOC_DAPM_PIN_SWITCH("Headphones"),
630630
SOC_DAPM_PIN_SWITCH("Headset Mic"),
631631
SOC_DAPM_PIN_SWITCH("Speakers"),
632632
SOC_DAPM_PIN_SWITCH("Line Out"),
633633
};
634634

635635
static const
636636
struct snd_soc_dapm_widget mt8183_da7219_max98357_dapm_widgets[] = {
637-
SND_SOC_DAPM_HP("Headphone", NULL),
637+
SND_SOC_DAPM_HP("Headphones", NULL),
638638
SND_SOC_DAPM_MIC("Headset Mic", NULL),
639639
SND_SOC_DAPM_SPK("Speakers", NULL),
640640
SND_SOC_DAPM_SPK("Line Out", NULL),
@@ -680,7 +680,7 @@ static struct snd_soc_codec_conf mt8183_da7219_rt1015_codec_conf[] = {
680680
};
681681

682682
static const struct snd_kcontrol_new mt8183_da7219_rt1015_snd_controls[] = {
683-
SOC_DAPM_PIN_SWITCH("Headphone"),
683+
SOC_DAPM_PIN_SWITCH("Headphones"),
684684
SOC_DAPM_PIN_SWITCH("Headset Mic"),
685685
SOC_DAPM_PIN_SWITCH("Left Spk"),
686686
SOC_DAPM_PIN_SWITCH("Right Spk"),
@@ -689,7 +689,7 @@ static const struct snd_kcontrol_new mt8183_da7219_rt1015_snd_controls[] = {
689689

690690
static const
691691
struct snd_soc_dapm_widget mt8183_da7219_rt1015_dapm_widgets[] = {
692-
SND_SOC_DAPM_HP("Headphone", NULL),
692+
SND_SOC_DAPM_HP("Headphones", NULL),
693693
SND_SOC_DAPM_MIC("Headset Mic", NULL),
694694
SND_SOC_DAPM_SPK("Left Spk", NULL),
695695
SND_SOC_DAPM_SPK("Right Spk", NULL),

0 commit comments

Comments
 (0)