summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGirija Kumar Kasinadhuni2018-11-26 19:40:46 +0100
committerGreg Kroah-Hartman2018-12-05 19:32:09 +0100
commitb72fc1c3cce457d3e9753abf52fe7f1627dd1bf3 (patch)
tree28d8f2f62ec5c840da1b9eb06cf82cec6e9e24a9 /sound
parentALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops (diff)
downloadkernel-qcow2-linux-b72fc1c3cce457d3e9753abf52fe7f1627dd1bf3.tar.gz
kernel-qcow2-linux-b72fc1c3cce457d3e9753abf52fe7f1627dd1bf3.tar.xz
kernel-qcow2-linux-b72fc1c3cce457d3e9753abf52fe7f1627dd1bf3.zip
ALSA: hda/realtek - Add auto-mute quirk for HP Spectre x360 laptop
commit e8ed64b08eddc05043e556832616a478bbe4bb00 upstream. This device makes a loud buzzing sound when a headphone is inserted while playing audio at full volume through the speaker. Fixes: bbf8ff6b1d2a ("ALSA: hda/realtek - Fixup for HP x360 laptops with B&O speakers") Signed-off-by: Girija Kumar Kasinadhuni <gkumar@neverware.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 45ef1adeff72..cf5d26642bcd 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5509,6 +5509,7 @@ enum {
ALC295_FIXUP_HP_X360,
ALC221_FIXUP_HP_HEADSET_MIC,
ALC285_FIXUP_LENOVO_HEADPHONE_NOISE,
+ ALC295_FIXUP_HP_AUTO_MUTE,
};
static const struct hda_fixup alc269_fixups[] = {
@@ -5673,6 +5674,8 @@ static const struct hda_fixup alc269_fixups[] = {
[ALC269_FIXUP_HP_MUTE_LED_MIC3] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc269_fixup_hp_mute_led_mic3,
+ .chained = true,
+ .chain_id = ALC295_FIXUP_HP_AUTO_MUTE
},
[ALC269_FIXUP_HP_GPIO_LED] = {
.type = HDA_FIXUP_FUNC,
@@ -6380,6 +6383,10 @@ static const struct hda_fixup alc269_fixups[] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc285_fixup_invalidate_dacs,
},
+ [ALC295_FIXUP_HP_AUTO_MUTE] = {
+ .type = HDA_FIXUP_FUNC,
+ .v.func = alc_fixup_auto_mute_via_amp,
+ },
};
static const struct snd_pci_quirk alc269_fixup_tbl[] = {