Skip to contentSkip to conversation

ALSA: hda/realtek - Make fixup regs persist after resume

PATCH New Takashi Iwai 1 participant 1 message Nov 8, 2013 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda/realtek - Make fixup regs persist after resume

From: Kailang Yang <[email protected]>

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.

---
 sound/pci/hda/patch_realtek.c | 2 ++
 1 file changed, 2 insertions(+)
sound/pci/hda/patch_realtek.c +2 -0
index daf720502385..6a214662700e 100644
@@ -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);
Signature · 1 line
1.8.4.2