From: Peter Ujfalusi Date: Mon, 24 Nov 2008 11:49:38 +0000 (+0200) Subject: ASoC: TWL4030: Add helper function for output gain controls X-Git-Tag: v2.6.29-rc1~590^2~11^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0bd53a7399f65e2d1b37cd44c5003e55b886c1e;p=pandora-kernel.git ASoC: TWL4030: Add helper function for output gain controls Some of the gain controls in TWL (mostly those which are associated with the outputs) are implemented in an interesting way: 0x0 : Power down (mute) 0x1 : 6dB 0x2 : 0 dB 0x3 : -6 dB Inverting not going to help with these. Custom volsw and volsw_2r get/put functions to handle these gains. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- Reading git-diff-tree failed