]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/pci/hda/patch_realtek.c
ALSA: hda/realtek - Apply ALC294 hp init also for S4 resume
[linux.git] / sound / pci / hda / patch_realtek.c
index 4139aced63f8a80375f4a939a2cb2e38bcb1b41a..e9dc9408d9bcd4844d35456cbeed01c3d9206fc2 100644 (file)
@@ -3408,7 +3408,9 @@ static void alc294_init(struct hda_codec *codec)
 {
        struct alc_spec *spec = codec->spec;
 
-       if (!spec->done_hp_init) {
+       /* required only at boot or S4 resume time */
+       if (!spec->done_hp_init ||
+           codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) {
                alc294_hp_init(codec);
                spec->done_hp_init = true;
        }