]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/via - Fix wrong checks of power state bits
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2013 16:12:09 +0000 (17:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Jan 2013 16:14:35 +0000 (17:14 +0100)
commit7a9b4945658de9aabd6534290d21f4da12ff09fe
tree0aa575fbe760eaf795c4aebe724ca550a2c5e7e9
parent8f76f914d960ba53a45f67c0074974f9c967aa8d
ALSA: hda/via - Fix wrong checks of power state bits

AC_VERB_GET_POWER_STATE returns the combined bits of the actual state
and the target state.  Thus, comparing the obtained value directly
with the target value can't work.  The value has to be shifted and
masked properly.

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