summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-13 19:35:29 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-08 14:59:44 +0900
commitbe3ea3b9e8df64acb3606055c01291f0b58876a6 (patch)
treee2256f913cc23b5a0c504f947a4a0a5bcb256523 /include/sound/soc.h
parent322a8b034003c0d46d39af85bf24fee27b902f48 (diff)
downloadop-kernel-dev-be3ea3b9e8df64acb3606055c01291f0b58876a6.zip
op-kernel-dev-be3ea3b9e8df64acb3606055c01291f0b58876a6.tar.gz
ASoC: Use new register map API for ASoC generic physical I/O
Remove all the ASoC specific physical I/O code and replace it with calls into the regmap API. The bulk write code can only be used safely if all regmap calls are locked with the CODEC lock, we need to add bulk support to the regmap API or replace the code with an open coded loop (though currently it has no users...). Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index aa19f5a..4d04b4b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -19,6 +19,7 @@
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
+#include <linux/regmap.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/control.h>
@@ -576,6 +577,7 @@ struct snd_soc_codec {
const void *reg_def_copy;
const struct snd_soc_cache_ops *cache_ops;
struct mutex cache_rw_mutex;
+ int val_bytes;
/* dapm */
struct snd_soc_dapm_context dapm;
OpenPOWER on IntegriCloud