From: Takashi Iwai Date: Mon, 9 Mar 2015 21:19:47 +0000 (+0100) Subject: ALSA: hda - Handle get/set power verb symmetrically via regmap X-Git-Tag: omap-for-v4.2/o2_dc~120^2~6^2~28^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f819400659da9ff9f636b78f33ff4f1f08cbd4;p=pandora-kernel.git 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 --- Reading git-diff-tree failed