Skip to content

Commit 78e7be0

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek: Limit internal Mic boost on Dell platform
Dell want to limit internal Mic boost on all Dell platform. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/561fc5f5eff04b6cbd79ed173cd1c1db@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent c9f7a14 commit 78e7be0

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7521,6 +7521,7 @@ enum {
75217521
ALC286_FIXUP_SONY_MIC_NO_PRESENCE,
75227522
ALC269_FIXUP_PINCFG_NO_HP_TO_LINEOUT,
75237523
ALC269_FIXUP_DELL1_MIC_NO_PRESENCE,
7524+
ALC269_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
75247525
ALC269_FIXUP_DELL2_MIC_NO_PRESENCE,
75257526
ALC269_FIXUP_DELL3_MIC_NO_PRESENCE,
75267527
ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
@@ -7555,6 +7556,7 @@ enum {
75557556
ALC255_FIXUP_ACER_MIC_NO_PRESENCE,
75567557
ALC255_FIXUP_ASUS_MIC_NO_PRESENCE,
75577558
ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
7559+
ALC255_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
75587560
ALC255_FIXUP_DELL2_MIC_NO_PRESENCE,
75597561
ALC255_FIXUP_HEADSET_MODE,
75607562
ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC,
@@ -8114,6 +8116,12 @@ static const struct hda_fixup alc269_fixups[] = {
81148116
.chained = true,
81158117
.chain_id = ALC269_FIXUP_HEADSET_MODE
81168118
},
8119+
[ALC269_FIXUP_DELL1_LIMIT_INT_MIC_BOOST] = {
8120+
.type = HDA_FIXUP_FUNC,
8121+
.v.func = alc269_fixup_limit_int_mic_boost,
8122+
.chained = true,
8123+
.chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE
8124+
},
81178125
[ALC269_FIXUP_DELL2_MIC_NO_PRESENCE] = {
81188126
.type = HDA_FIXUP_PINS,
81198127
.v.pins = (const struct hda_pintbl[]) {
@@ -8394,6 +8402,12 @@ static const struct hda_fixup alc269_fixups[] = {
83948402
.chained = true,
83958403
.chain_id = ALC255_FIXUP_HEADSET_MODE
83968404
},
8405+
[ALC255_FIXUP_DELL1_LIMIT_INT_MIC_BOOST] = {
8406+
.type = HDA_FIXUP_FUNC,
8407+
.v.func = alc269_fixup_limit_int_mic_boost,
8408+
.chained = true,
8409+
.chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE
8410+
},
83978411
[ALC255_FIXUP_DELL2_MIC_NO_PRESENCE] = {
83988412
.type = HDA_FIXUP_PINS,
83998413
.v.pins = (const struct hda_pintbl[]) {
@@ -11076,6 +11090,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
1107611090
{.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
1107711091
{.id = ALC269_FIXUP_DELL3_MIC_NO_PRESENCE, .name = "dell-headset3"},
1107811092
{.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, .name = "dell-headset4"},
11093+
{.id = ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET, .name = "dell-headset4-quiet"},
1107911094
{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},
1108011095
{.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"},
1108111096
{.id = ALC292_FIXUP_TPT440_DOCK, .name = "tpt440-dock"},
@@ -11630,16 +11645,16 @@ static const struct snd_hda_pin_quirk alc269_fallback_pin_fixup_tbl[] = {
1163011645
SND_HDA_PIN_QUIRK(0x10ec0289, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
1163111646
{0x19, 0x40000000},
1163211647
{0x1b, 0x40000000}),
11633-
SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE,
11648+
SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE_QUIET,
1163411649
{0x19, 0x40000000},
1163511650
{0x1b, 0x40000000}),
1163611651
SND_HDA_PIN_QUIRK(0x10ec0256, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
1163711652
{0x19, 0x40000000},
1163811653
{0x1a, 0x40000000}),
11639-
SND_HDA_PIN_QUIRK(0x10ec0236, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
11654+
SND_HDA_PIN_QUIRK(0x10ec0236, 0x1028, "Dell", ALC255_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
1164011655
{0x19, 0x40000000},
1164111656
{0x1a, 0x40000000}),
11642-
SND_HDA_PIN_QUIRK(0x10ec0274, 0x1028, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB,
11657+
SND_HDA_PIN_QUIRK(0x10ec0274, 0x1028, "Dell", ALC269_FIXUP_DELL1_LIMIT_INT_MIC_BOOST,
1164311658
{0x19, 0x40000000},
1164411659
{0x1a, 0x40000000}),
1164511660
SND_HDA_PIN_QUIRK(0x10ec0256, 0x1043, "ASUS", ALC2XX_FIXUP_HEADSET_MIC,

0 commit comments

Comments
 (0)