From: Benoît Thébaudeau Date: Mon, 18 Jun 2012 20:41:28 +0000 (+0200) Subject: ASoC: dapm: Fix snd_soc_dapm_put_volsw() connect X-Git-Tag: v3.6-rc1~117^2~4^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a720718b37d00cf8ab311902705ae7c7890bb95;p=pandora-kernel.git ASoC: dapm: Fix snd_soc_dapm_put_volsw() connect snd_soc_dapm_put_volsw() sets connect incorrectly in the case max > 1 with invert. In that case, the raw disconnect value should be max, which corresponds to the userspace value 0. This use case currently does not appear upstream, but it could break SOC_DAPM_SINGLE() or SOC_DAPM_SINGLE_TLV() elsewhere or in the future. Signed-off-by: Benoît Thébaudeau Signed-off-by: Mark Brown --- Reading git-diff-tree failed