]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/generic - Make snd_hda_gen_path_power_filter() always applicable
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2015 08:25:03 +0000 (10:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Apr 2015 08:33:53 +0000 (10:33 +0200)
commit5411eead4e2740d0911b2ebd67c5906f4ecf3892
tree7e181550419c398fa9e8964c0a0c436f2a88e34e
parent553993a00102874b0bafa76644237b3003d4a76c
ALSA: hda/generic - Make snd_hda_gen_path_power_filter() always applicable

Add the check of power_save_node flag at the beginning of the function
so that it skips the rest if the flag isn't set.  In this way, we can
call this function safely no matter whether the widget power-saving is
really used or not.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c