aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKailang Yang <kailang@realtek.com>2014-04-07 04:41:52 -0400
committerTakashi Iwai <tiwai@suse.de>2014-04-07 06:32:52 -0400
commitde9481cb40339d9bfc1104b53649876fc5f3d432 (patch)
tree5412307cffd07efda30cbdde7481adc7ca6b3fe7 /sound
parent3af5d0524aac70a6df638d6558f4b60dbf0216e7 (diff)
ALSA: hda/realtek - Improve HP depop when system change power state on Chromebook
It is better to change Mic2-Vref to manual mode. Manual control Mic2-Vref will solve pop noise issue. It will improve pop noise for power on, power off, S3 and resume. Signed-off-by: Kailang Yang <kailang@realtek.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_realtek.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 053107786f33..ca1298afacd9 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4005,6 +4005,10 @@ static void alc283_fixup_chromebook(struct hda_codec *codec,
4005 spec->gen.mixer_nid = 0; 4005 spec->gen.mixer_nid = 0;
4006 break; 4006 break;
4007 case HDA_FIXUP_ACT_INIT: 4007 case HDA_FIXUP_ACT_INIT:
4008 /* MIC2-VREF control */
4009 /* Set to manual mode */
4010 val = alc_read_coef_idx(codec, 0x06);
4011 alc_write_coef_idx(codec, 0x06, val & ~0x000c);
4008 /* Enable Line1 input control by verb */ 4012 /* Enable Line1 input control by verb */
4009 val = alc_read_coef_idx(codec, 0x1a); 4013 val = alc_read_coef_idx(codec, 0x1a);
4010 alc_write_coef_idx(codec, 0x1a, val | (1 << 4)); 4014 alc_write_coef_idx(codec, 0x1a, val | (1 << 4));