From: Howard Mitchell Date: Fri, 19 Sep 2014 11:50:31 +0000 (+0100) Subject: ASoC: core: Fix volsw_range funcs so SOC_DOUBLE_R_RANGE_TLV works. X-Git-Tag: omap-for-v3.19/prcm-cleanup~125^2~8^2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c7c343a1159d1cb7604b6137cf547b2c1e2375d;p=pandora-kernel.git ASoC: core: Fix volsw_range funcs so SOC_DOUBLE_R_RANGE_TLV works. This fixes a bug when using the SOC_DOUBLE_R_RANGE_TLV macro in the invert mode. In the non-invert case, e.g. SOC_DOUBLE_R_RANGE_TLV("", , , 0, 40, 255, 0, ) the range sent to the hardware is 40..255, but in the invert case: SOC_DOUBLE_R_RANGE_TLV("", , , 0, 40, 255, 1, ) the range 215..0 was being sent to the hardware. This commit corrects this to 255..40 so it is consistent with the non-invert case. Signed-off-by: Howard Mitchell Signed-off-by: Mark Brown --- Reading git-diff-tree failed