Skip to content

Commit 9e88577

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek - HP Headset Mic can't detect after boot
System boot or warm boot with plugged headset. If it turn on power save mode, Headset Mic will lose. This patch will solve this issue. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/1ae4d98e92c147b780ace3911c4e1d73@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent a0ccbc5 commit 9e88577

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

sound/pci/hda/patch_realtek.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6319,6 +6319,7 @@ enum {
63196319
ALC256_FIXUP_ASUS_HPE,
63206320
ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK,
63216321
ALC287_FIXUP_HP_GPIO_LED,
6322+
ALC256_FIXUP_HP_HEADSET_MIC,
63226323
};
63236324

63246325
static const struct hda_fixup alc269_fixups[] = {
@@ -7733,6 +7734,10 @@ static const struct hda_fixup alc269_fixups[] = {
77337734
.type = HDA_FIXUP_FUNC,
77347735
.v.func = alc287_fixup_hp_gpio_led,
77357736
},
7737+
[ALC256_FIXUP_HP_HEADSET_MIC] = {
7738+
.type = HDA_FIXUP_FUNC,
7739+
.v.func = alc274_fixup_hp_headset_mic,
7740+
},
77367741
};
77377742

77387743
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -8348,6 +8353,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
83488353
{0x19, 0x02a11020},
83498354
{0x1a, 0x02a11030},
83508355
{0x21, 0x0221101f}),
8356+
SND_HDA_PIN_QUIRK(0x10ec0236, 0x103c, "HP", ALC256_FIXUP_HP_HEADSET_MIC,
8357+
{0x14, 0x90170110},
8358+
{0x19, 0x02a11020},
8359+
{0x21, 0x02211030}),
83518360
SND_HDA_PIN_QUIRK(0x10ec0255, 0x1028, "Dell", ALC255_FIXUP_DELL2_MIC_NO_PRESENCE,
83528361
{0x14, 0x90170110},
83538362
{0x21, 0x02211020}),
@@ -8450,6 +8459,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {
84508459
{0x1a, 0x90a70130},
84518460
{0x1b, 0x90170110},
84528461
{0x21, 0x03211020}),
8462+
SND_HDA_PIN_QUIRK(0x10ec0256, 0x103c, "HP", ALC256_FIXUP_HP_HEADSET_MIC,
8463+
{0x14, 0x90170110},
8464+
{0x19, 0x02a11020},
8465+
{0x21, 0x0221101f}),
84538466
SND_HDA_PIN_QUIRK(0x10ec0274, 0x103c, "HP", ALC274_FIXUP_HP_HEADSET_MIC,
84548467
{0x17, 0x90170110},
84558468
{0x19, 0x03a11030},

0 commit comments

Comments
 (0)