diff options
author | Hui Wang <hui.wang@canonical.com> | 2016-03-31 23:00:15 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-04-01 01:36:39 -0400 |
commit | e549d190f7b5f94e9ab36bd965028112914d010d (patch) | |
tree | 6f85780106a6e3e7374d4b995dddf78eb3ee634a | |
parent | 836b34a935abc91e13e63053d0a83b24dfb5ea78 (diff) |
ALSA: hda - fix front mic problem for a HP desktop
The front mic jack (pink color) can't detect any plug or unplug. After
applying this fix, both detecting function and recording function
work well.
BugLink: https://bugs.launchpad.net/bugs/1564712
Cc: stable@vger.kernel.org
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 73978c79981f..fefe83f2beab 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -4759,6 +4759,7 @@ enum { | |||
4759 | ALC255_FIXUP_DELL_SPK_NOISE, | 4759 | ALC255_FIXUP_DELL_SPK_NOISE, |
4760 | ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, | 4760 | ALC225_FIXUP_DELL1_MIC_NO_PRESENCE, |
4761 | ALC280_FIXUP_HP_HEADSET_MIC, | 4761 | ALC280_FIXUP_HP_HEADSET_MIC, |
4762 | ALC221_FIXUP_HP_FRONT_MIC, | ||
4762 | }; | 4763 | }; |
4763 | 4764 | ||
4764 | static const struct hda_fixup alc269_fixups[] = { | 4765 | static const struct hda_fixup alc269_fixups[] = { |
@@ -5401,6 +5402,13 @@ static const struct hda_fixup alc269_fixups[] = { | |||
5401 | .chained = true, | 5402 | .chained = true, |
5402 | .chain_id = ALC269_FIXUP_HEADSET_MIC, | 5403 | .chain_id = ALC269_FIXUP_HEADSET_MIC, |
5403 | }, | 5404 | }, |
5405 | [ALC221_FIXUP_HP_FRONT_MIC] = { | ||
5406 | .type = HDA_FIXUP_PINS, | ||
5407 | .v.pins = (const struct hda_pintbl[]) { | ||
5408 | { 0x19, 0x02a19020 }, /* Front Mic */ | ||
5409 | { } | ||
5410 | }, | ||
5411 | }, | ||
5404 | }; | 5412 | }; |
5405 | 5413 | ||
5406 | static const struct snd_pci_quirk alc269_fixup_tbl[] = { | 5414 | static const struct snd_pci_quirk alc269_fixup_tbl[] = { |
@@ -5506,6 +5514,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { | |||
5506 | SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), | 5514 | SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), |
5507 | SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), | 5515 | SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), |
5508 | SND_PCI_QUIRK(0x103c, 0x221c, "HP EliteBook 755 G2", ALC280_FIXUP_HP_HEADSET_MIC), | 5516 | SND_PCI_QUIRK(0x103c, 0x221c, "HP EliteBook 755 G2", ALC280_FIXUP_HP_HEADSET_MIC), |
5517 | SND_PCI_QUIRK(0x103c, 0x8256, "HP", ALC221_FIXUP_HP_FRONT_MIC), | ||
5509 | SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), | 5518 | SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), |
5510 | SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), | 5519 | SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), |
5511 | SND_PCI_QUIRK(0x1043, 0x115d, "Asus 1015E", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), | 5520 | SND_PCI_QUIRK(0x1043, 0x115d, "Asus 1015E", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), |