]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: Add missing control_type initialization
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 28 Dec 2010 20:08:57 +0000 (21:08 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Dec 2010 23:18:43 +0000 (23:18 +0000)
commit12f54eb629b006590b891644b4b24839659fb3fa
tree60b348bcb4d70cba8928aa8db8fbf8e90c5110a0
parenta07f7a14118eba0a2baf3e85cfbd6f6d3c580ab4
ASoC: codecs: Add missing control_type initialization

Some codec drivers do not initialize the control_type field in their private
device struct, but still use it when calling snd_soc_codec_set_cache_io.
This patch fixes the issue by properly initializing it in the drivers probe
functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org (for 2.6.37 only)
sound/soc/codecs/wm8940.c
sound/soc/codecs/wm8955.c
sound/soc/codecs/wm8960.c
sound/soc/codecs/wm8971.c
sound/soc/codecs/wm9081.c