projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a011e21
)
ALSA: ALC283 codec - Avoid pop noise on headphones during suspend/resume
author
Harsha Priya
<harshapriya.n@intel.com>
Thu, 9 Oct 2014 11:04:56 +0000
(11:04 +0000)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 20 Oct 2014 05:49:40 +0000
(07:49 +0200)
This patch sets the headphones mode to default before suspending
which helps avoid the pop noise on headphones
Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index bc86c36b4bfa39b383f113b5dbd377b0c8ffd22d..4c35490cf1198642778307156183728fbf28f814 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-2884,6
+2884,9
@@
static void alc283_shutup(struct hda_codec *codec)
alc_write_coef_idx(codec, 0x43, 0x9004);
+ /*depop hp during suspend*/
+ alc_write_coef_idx(codec, 0x06, 0x2100);
+
snd_hda_codec_write(codec, hp_pin, 0,
AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE);