]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: TLV320AIC3X: Fix kcontrol's private value use in put callback
authorEero Nurkkala <ext-eero.nurkkala@nokia.com>
Fri, 6 Feb 2009 10:01:04 +0000 (12:01 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Feb 2009 11:39:28 +0000 (11:39 +0000)
commitc184206998a19963f20c06d55b89004469161e90
treeb095287959af1a472aee299ae0276633601fb622
parentf29511fd85b4420d8120f11f17167e0cb7ac35ff
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
861138f491a6f51849cfcd6a3ce18a6478e6f7e1.

This was causing arbitrary register writes when touching the controls
defined with SOC_DAPM_SINGLE_AIC3X.

Signed-off-by: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
Acked-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/tlv320aic3x.c