]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Prepare SOC_SINGLE_XR_SX controls for regmap
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 18 Mar 2014 08:02:06 +0000 (09:02 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:22:43 +0000 (17:22 +0100)
commitd112ca96703432e54f6c6b37944db89555771743
treed00dab58f60aa1ff493f8033b0bd9a641c7a57a1
parent57940cbf625c210cfe02e81e8d782a26f6409b3e
ASoC: Prepare SOC_SINGLE_XR_SX controls for regmap

SOC_SINGLE_XR_SX controls currently only work with CODECs that set the
'reg_word_size' field in their snd_soc_codec_driver struct. Going forward
support for ASoC level IO will eventually be removed and all drivers will be
converted to regmap. Preparing for the transition this patch adds support for
CODECs using regmap for IO to the SOC_SINGLE_XR_SX control. We already have the
val_bytes field in the CODEC struct which holds the number of bytes per word,
but it is only initialized when regmap is used. Also initialize it for drivers
still using legacy IO and update the SOC_SINGLE_XR_SX handlers to use it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c