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)
commit25368c47aee6d909923001918041f2e94bfa02ef
tree0aa575fbe760eaf795c4aebe724ca550a2c5e7e9
parent7dddf2aed8ffc1fa30df92b57981dea146cdfc0f
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