From: Adrian Knoth Date: Fri, 5 Jul 2013 09:28:00 +0000 (+0200) Subject: ALSA: hdspm - Introduce generic AIO tristate control X-Git-Tag: v3.12-rc1~150^2~54^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf14767e17ab7ee8b6213f9e56d07d9ffa033da;p=pandora-kernel.git ALSA: hdspm - Introduce generic AIO tristate control AIO cards offer at least four individual settings options with three states each. Those settings are represented as two bits in the settings register with the following meaning: 0*some_base_bit --> Option value 0 1*some_base_bit --> Option value 1 2*some_base_bit --> Option value 2 3*some_base_bit --> mask to select the two involved bits This patch adds a generic ALSA control macro for such a value-to-bit pattern mapping. It will be used in a later commit to expose four new controls. Signed-off-by: Adrian Knoth Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed