From: Eero Nurkkala Date: Fri, 6 Feb 2009 10:01:04 +0000 (+0200) Subject: ASoC: TLV320AIC3X: Fix kcontrol's private value use in put callback X-Git-Tag: v2.6.29-rc5~1^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4453dba54de7e517b0cd6f5e4a3f4af3b34f9e79;p=pandora-kernel.git ASoC: TLV320AIC3X: Fix kcontrol's private value use in put callback Function snd_soc_dapm_put_volsw_aic3x misuses the kcontrol's private value by still accessing it as bitfields even SOC_SINGLE_VALUE constructs it as a pointer into struct soc_mixer_control after the commit 4eaa9819dc08d7bfd1065ce530e31b18a119dcaf. This was causing arbitrary register writes when touching the controls defined with SOC_DAPM_SINGLE_AIC3X. Signed-off-by: Eero Nurkkala Acked-by: Jarkko Nikula Signed-off-by: Mark Brown --- Reading git-diff-tree failed