aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-03-22 06:37:03 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-26 13:44:14 -0400
commit5fb609d435f0679ed322ddeb1fdafe6142463fdf (patch)
treec0da5a9fca23fab307305acf6be95272eb2e8c52 /sound/soc/soc-core.c
parentf3594f5c5c489d159f6d487a889d9d68ca4c0123 (diff)
ASoC: soc-cache: Introduce raw bulk write support
As it has become more common to have to write firmware or similar large chunks of data to the hardware, add a function to perform raw bulk writes that bypass the cache. This only handles volatile registers as we should avoid getting out of sync with the actual cache. Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 4dda58926bc5..636328e868e8 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2228,6 +2228,13 @@ unsigned int snd_soc_write(struct snd_soc_codec *codec,
2228} 2228}
2229EXPORT_SYMBOL_GPL(snd_soc_write); 2229EXPORT_SYMBOL_GPL(snd_soc_write);
2230 2230
2231unsigned int snd_soc_bulk_write_raw(struct snd_soc_codec *codec,
2232 unsigned int reg, const void *data, size_t len)
2233{
2234 return codec->bulk_write_raw(codec, reg, data, len);
2235}
2236EXPORT_SYMBOL_GPL(snd_soc_bulk_write_raw);
2237
2231/** 2238/**
2232 * snd_soc_update_bits - update codec register bits 2239 * snd_soc_update_bits - update codec register bits
2233 * @codec: audio codec 2240 * @codec: audio codec