ALSA: hda - Fix return value of snd_hda_check_power_state()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2013 05:55:02 +0000 (07:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2013 05:59:43 +0000 (07:59 +0200)
commit06ec56d3c60238f27bfa50d245592fccc1b4ef0f
tree3dfa636ab7dbb908de12709922e89a9a1b89f4a6
parentcd1199edc719f4a918a19bd2c6b8f79329837561
ALSA: hda - Fix return value of snd_hda_check_power_state()

The refactoring by commit 9040d102 introduced the new function
snd_hda_check_power_state().  This function is supposed to return true
if the state already reached to the target state, but it actually
returns false for that.  An utterly stupid typo while copy & paste.

Fortunately this didn't influence on much behavior because powering up
AFG usually powers up the child widgets, too.  But the finer power
control must have been broken by this bug.

Cc: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_local.h