diff mbox

[2/2] ALSA: hda - Fix pop noises on reboot for Dell XPS 13 9333

Message ID 34179b6c336cb5837c0dc239a3b0daf6ac6384c3.1407518135.git.gabriele.mzt@gmail.com (mailing list archive)
State Accepted
Commit de3da4f696b473e7810bd9837c18bf9fd30a9a6d
Delegated to: Takashi Iwai
Headers show

Commit Message

Gabriele Mazzotta Aug. 8, 2014, 5:34 p.m. UTC
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>
---
 sound/pci/hda/patch_realtek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 85cd80c..12fc3e9a 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4008,7 +4008,7 @@  static unsigned int alc_power_filter_xps13(struct hda_codec *codec,
 
 	/* Avoid pop noises when headphones are plugged in */
 	if (spec->gen.hp_jack_present)
-		if (nid == codec->afg || nid == 0x02)
+		if (nid == codec->afg || nid == 0x02 || nid == 0x15)
 			return AC_PWRST_D0;
 	return power_state;
 }