]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: hda/realtek - Make fixup regs persist after resume
authorKailang Yang <kailang@realtek.com>
Fri, 1 Nov 2013 07:57:35 +0000 (15:57 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 Nov 2013 06:43:45 +0000 (07:43 +0100)
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>
sound/pci/hda/patch_realtek.c

index daf7205023857a892006bb1112f804f5a73fba2b..6a214662700eb1385a5d4787a5111e79d6b04375 100644 (file)
@@ -3503,6 +3503,8 @@ static void alc283_fixup_chromebook(struct hda_codec *codec,
                /* Disable AA-loopback as it causes white noise */
                spec->gen.mixer_nid = 0;
                spec->gen.hp_automute_hook = alc283_hp_automute_hook;
+               break;
+       case HDA_FIXUP_ACT_INIT:
                /* MIC2-VREF control */
                /* Set to manual mode */
                val = alc_read_coef_idx(codec, 0x06);