diff options
author | Kailang Yang <kailang@realtek.com> | 2013-11-01 03:57:35 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-11-08 01:43:45 -0500 |
commit | 380702192f616df5b2ba704b85cc479a3da92c91 (patch) | |
tree | ca04925c89b7ee7527caee491a940921f6a788fe /sound/pci | |
parent | 3b70a67da0bebca02a130eff8084eee457a2b836 (diff) |
ALSA: hda/realtek - Make fixup regs persist after resume
Upon suspend / resume, the fixup register settings are lost because
sending HDA_FIXUP_ACT_PRE_PROBE is not part of the resume path. Instead,
write our registers in response to the HDA_FIXUP_ACT_INIT, which happens
after initial probe and upon resume.
Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index daf720502385..6a214662700e 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -3503,6 +3503,8 @@ static void alc283_fixup_chromebook(struct hda_codec *codec, | |||
3503 | /* Disable AA-loopback as it causes white noise */ | 3503 | /* Disable AA-loopback as it causes white noise */ |
3504 | spec->gen.mixer_nid = 0; | 3504 | spec->gen.mixer_nid = 0; |
3505 | spec->gen.hp_automute_hook = alc283_hp_automute_hook; | 3505 | spec->gen.hp_automute_hook = alc283_hp_automute_hook; |
3506 | break; | ||
3507 | case HDA_FIXUP_ACT_INIT: | ||
3506 | /* MIC2-VREF control */ | 3508 | /* MIC2-VREF control */ |
3507 | /* Set to manual mode */ | 3509 | /* Set to manual mode */ |
3508 | val = alc_read_coef_idx(codec, 0x06); | 3510 | val = alc_read_coef_idx(codec, 0x06); |