]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/pci/hda/hda_generic.c
ALSA: hda/generic - Make snd_hda_gen_path_power_filter() always applicable
[karo-tx-linux.git] / sound / pci / hda / hda_generic.c
index 46b559832d2cb9c3774ceab0f93347fef8b00e6f..f0475a19fad747b41edcf200235b1a3e38ab779a 100644 (file)
@@ -4703,6 +4703,10 @@ unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec,
                                                  hda_nid_t nid,
                                                  unsigned int power_state)
 {
+       struct hda_gen_spec *spec = codec->spec;
+
+       if (!spec->power_down_unused && !codec->power_save_node)
+               return power_state;
        if (power_state != AC_PWRST_D0 || nid == codec->core.afg)
                return power_state;
        if (get_wcaps_type(get_wcaps(codec, nid)) >= AC_WID_POWER)