summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-io.c
diff options
context:
space:
mode:
authorMark Brown2011-12-03 13:33:55 +0100
committerMark Brown2012-01-21 22:15:38 +0100
commit8a713da8d1ce9ceaf738b32e2b24f22d4432f886 (patch)
treec0fb13d21f18ed19c82e4d9214d440e34b0c474b /sound/soc/soc-io.c
parentASoC: Don't tell applications about msbits unless we're ignoring input (diff)
downloadkernel-qcow2-linux-8a713da8d1ce9ceaf738b32e2b24f22d4432f886.tar.gz
kernel-qcow2-linux-8a713da8d1ce9ceaf738b32e2b24f22d4432f886.tar.xz
kernel-qcow2-linux-8a713da8d1ce9ceaf738b32e2b24f22d4432f886.zip
ASoC: Use regmap update bits operation for drivers using regmap
If a driver is using regmap directly ensure that we're coherent with non-ASoC register updates by using the regmap API directly to do our read/modify/write cycles. This will bypass the ASoC cache but drivers using regmap directly should not be using the ASoC cache. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-io.c')
-rw-r--r--sound/soc/soc-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index c8610cbf34a5..39ba5070ff92 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -140,6 +140,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
case SND_SOC_REGMAP:
/* Device has made its own regmap arrangements */
+ codec->using_regmap = true;
break;
default: