]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/hda/patch_realtek.c
ALSA: hda/realtek - Apply ALC294 hp init also for S4 resume
[mirror_ubuntu-bionic-kernel.git] / sound / pci / hda / patch_realtek.c
index 058e17f85fddae82f2d90b1eca1473b8c8e03ed1..3b9cfee77df8e6dea9120bafdae289facdda8083 100644 (file)
@@ -3461,7 +3461,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;
        }