summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tlv320aic23.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-03-06 14:04:41 +0400
committerMark Brown <broonie@linaro.org>2014-03-07 06:55:33 +0400
commitb3fc5725967cea8b661383742ccce21fdeb3ef72 (patch)
treeea6f1a500c802f76ca247887cf76534c294f0c7d /sound/soc/codecs/tlv320aic23.h
parent806057cc75ef641cd9b012b0278c1f179090bab2 (diff)
downloadlinux-b3fc5725967cea8b661383742ccce21fdeb3ef72.tar.xz
ASoC: tlv320aic23: add support for SPI control mode
tlv320aic23 chip control interface may work in either I2C or SPI mode depending on the MODE pin state. Functionality and register layout are independent of the control mode. Implement bus-specific parts as separate modules. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic23.h')
-rw-r--r--sound/soc/codecs/tlv320aic23.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320aic23.h b/sound/soc/codecs/tlv320aic23.h
index e804120bd3da..3a7235a04a89 100644
--- a/sound/soc/codecs/tlv320aic23.h
+++ b/sound/soc/codecs/tlv320aic23.h
@@ -12,6 +12,12 @@
#ifndef _TLV320AIC23_H
#define _TLV320AIC23_H
+struct device;
+struct regmap_config;
+
+extern const struct regmap_config tlv320aic23_regmap;
+int tlv320aic23_probe(struct device *dev, struct regmap *regmap);
+
/* Codec TLV320AIC23 */
#define TLV320AIC23_LINVOL 0x00
#define TLV320AIC23_RINVOL 0x01