Skip to content

Commit 13468bf

Browse files
jason77-wangtiwai
authored andcommitted
ALSA: hda/realtek - set mic to auto detect on a HP AIO machine
Recently we enabled a HP AIO machine, we found the mic on the machine couldn't record any sound and it couldn't detect plugging and unplugging as well. Through debugging we found the mic is set to manual detect mode, after setting it to auto detect mode, it could detect plugging and unplugging and could record sound. Cc: <[email protected]> Signed-off-by: Hui Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c413c31 commit 13468bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6233,6 +6233,7 @@ enum {
62336233
ALC269_FIXUP_LEMOTE_A190X,
62346234
ALC256_FIXUP_INTEL_NUC8_RUGGED,
62356235
ALC255_FIXUP_XIAOMI_HEADSET_MIC,
6236+
ALC274_FIXUP_HP_MIC,
62366237
};
62376238

62386239
static const struct hda_fixup alc269_fixups[] = {
@@ -7612,6 +7613,14 @@ static const struct hda_fixup alc269_fixups[] = {
76127613
.chained = true,
76137614
.chain_id = ALC289_FIXUP_ASUS_GA401
76147615
},
7616+
[ALC274_FIXUP_HP_MIC] = {
7617+
.type = HDA_FIXUP_VERBS,
7618+
.v.verbs = (const struct hda_verb[]) {
7619+
{ 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
7620+
{ 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
7621+
{ }
7622+
},
7623+
},
76157624
};
76167625

76177626
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -7763,6 +7772,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
77637772
SND_PCI_QUIRK(0x103c, 0x869d, "HP", ALC236_FIXUP_HP_MUTE_LED),
77647773
SND_PCI_QUIRK(0x103c, 0x8729, "HP", ALC285_FIXUP_HP_GPIO_LED),
77657774
SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_AMP_INIT),
7775+
SND_PCI_QUIRK(0x103c, 0x874e, "HP", ALC274_FIXUP_HP_MIC),
77667776
SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED),
77677777
SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED),
77687778
SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC),
@@ -8088,6 +8098,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
80888098
{.id = ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE, .name = "alc256-medion-headset"},
80898099
{.id = ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, .name = "alc298-samsung-headphone"},
80908100
{.id = ALC255_FIXUP_XIAOMI_HEADSET_MIC, .name = "alc255-xiaomi-headset"},
8101+
{.id = ALC274_FIXUP_HP_MIC, .name = "alc274-hp-mic-detect"},
80918102
{}
80928103
};
80938104
#define ALC225_STANDARD_PINS \

0 commit comments

Comments
 (0)