summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-09 22:19:47 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-23 13:19:43 +0100
commit33f819400659da9ff9f636b78f33ff4f1f08cbd4 (patch)
treebbb736ecbd1b38f750ddd6a921e323fb456a896e /include/sound
parentd313e0a88d1b29d17198ef659af042a633a2d3de (diff)
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>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions