Commit de9481cb40339d9bfc1104b53649876fc5f3d432
Committed by
Takashi Iwai
1 parent
3af5d0524a
Exists in
master
and in
13 other branches
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>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
sound/pci/hda/patch_realtek.c
| ... | ... | @@ -4005,6 +4005,10 @@ |
| 4005 | 4005 | spec->gen.mixer_nid = 0; |
| 4006 | 4006 | break; |
| 4007 | 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 | 4012 | /* Enable Line1 input control by verb */ |
| 4009 | 4013 | val = alc_read_coef_idx(codec, 0x1a); |
| 4010 | 4014 | alc_write_coef_idx(codec, 0x1a, val | (1 << 4)); |