summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs35l35.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-03-08 17:42:49 +0100
committerMark Brown <broonie@kernel.org>2017-03-13 17:09:17 +0100
commit8d45f2d23864ae1582d095c54605540cd3640169 (patch)
treef9b1a57d779269195aa8f4e27a3b932b103687ea /sound/soc/codecs/cs35l35.h
parentASoC: cs35l35: Add device tree binding for I2S drive configuration (diff)
downloadlinux-8d45f2d23864ae1582d095c54605540cd3640169.tar.xz
linux-8d45f2d23864ae1582d095c54605540cd3640169.zip
ASoC: cs35l35: Add for configuring drive mode in unused slots
Add support for setting how the I2S pins are driven in unused slots, currently the chip will just use the default of drive 0, however this causes issues when multiple devices are attached to the same bus. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l35.h')
-rw-r--r--sound/soc/codecs/cs35l35.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l35.h b/sound/soc/codecs/cs35l35.h
index e27a7fef5fb1..c203081fc94c 100644
--- a/sound/soc/codecs/cs35l35.h
+++ b/sound/soc/codecs/cs35l35.h
@@ -190,6 +190,10 @@
#define CS35L35_AMP_GAIN_ZC_MASK 0x10
#define CS35L35_AMP_GAIN_ZC_SHIFT 4
+/* CS35L35_SP_FMT_CTL3 */
+#define CS35L35_SP_I2S_DRV_MASK 0x03
+#define CS35L35_SP_I2S_DRV_SHIFT 0
+
/* Class H Algorithm Control */
#define CS35L35_CH_STEREO_MASK 0x40
#define CS35L35_CH_STEREO_SHIFT 6