aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGabriele Mazzotta <gabriele.mzt@gmail.com>2014-08-08 13:34:41 -0400
committerTakashi Iwai <tiwai@suse.de>2014-08-10 07:28:51 -0400
commitde3da4f696b473e7810bd9837c18bf9fd30a9a6d (patch)
tree4a330a37986685148fef370f202006d329dff711 /sound
parentf38663ab5cc2d1bf359c0fd2b6b84a9f000e4388 (diff)
ALSA: hda - Fix pop noises on reboot for Dell XPS 13 9333
If nid 0x15 (Headphone Playback Switch) is in D3 and headphones are plugged in when the laptop reboots, a pop noise is generated. Prevent this by keeping nid 0x15 in D0 when headphones are plugged in. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=76611 Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 3ebb7616bf98..6b38ec3c6e57 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4093,7 +4093,7 @@ static unsigned int alc_power_filter_xps13(struct hda_codec *codec,
4093 4093
4094 /* Avoid pop noises when headphones are plugged in */ 4094 /* Avoid pop noises when headphones are plugged in */
4095 if (spec->gen.hp_jack_present) 4095 if (spec->gen.hp_jack_present)
4096 if (nid == codec->afg || nid == 0x02) 4096 if (nid == codec->afg || nid == 0x02 || nid == 0x15)
4097 return AC_PWRST_D0; 4097 return AC_PWRST_D0;
4098 return power_state; 4098 return power_state;
4099} 4099}