aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_generic.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 368181d8b0ce..24f91114a32c 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -884,8 +884,7 @@ void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path,
884 struct hda_gen_spec *spec = codec->spec; 884 struct hda_gen_spec *spec = codec->spec;
885 int i; 885 int i;
886 886
887 if (!enable) 887 path->active = enable;
888 path->active = false;
889 888
890 /* make sure the widget is powered up */ 889 /* make sure the widget is powered up */
891 if (enable && (spec->power_down_unused || codec->power_save_node)) 890 if (enable && (spec->power_down_unused || codec->power_save_node))
@@ -903,9 +902,6 @@ void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path,
903 if (has_amp_out(codec, path, i)) 902 if (has_amp_out(codec, path, i))
904 activate_amp_out(codec, path, i, enable); 903 activate_amp_out(codec, path, i, enable);
905 } 904 }
906
907 if (enable)
908 path->active = true;
909} 905}
910EXPORT_SYMBOL_GPL(snd_hda_activate_path); 906EXPORT_SYMBOL_GPL(snd_hda_activate_path);
911 907