]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Handle get/set power verb symmetrically via regmap
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Mar 2015 21:19:47 +0000 (22:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2015 12:19:43 +0000 (13:19 +0100)
commit4df2900c63350920afc6d83cbaac0c3cd6d2ae6c
treebbb736ecbd1b38f750ddd6a921e323fb456a896e
parentc28ce64cc941053370c9dfdaa7e7059f2dc43bae
ALSA: hda - Handle get/set power verb symmetrically via regmap

HD-audio has quite a few asymmetrical ways of accessing verbs, and one
of typical ones is GET/SET_POWER_STATE verbs.  While it takes only the
power state for setting, it returns a combination of states for
getting.  For making the state handling simpler, this patch adds a
code to translate the value returned from GET_POWER_STATE to return
only the actual state or -1 for error.  In that way, the driver can
simplify the power state management.

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