summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm512x.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-02-07 19:16:56 +0000
committerMark Brown <broonie@linaro.org>2014-02-07 19:53:53 +0000
commit5be2fc20b101b5138c4f54a584dc11790ef16598 (patch)
tree0e838bc5c10cff070a3f984e4cff5d426e7edf64 /sound/soc/codecs/pcm512x.h
parent806d6466076a0aebbe0a9c17294d1a13e93fabcf (diff)
downloadlinux-5be2fc20b101b5138c4f54a584dc11790ef16598.tar.bz2
ASoC: pcm512x: Implement analogue volume control
There are some analogue volume controls in page 1 of the register map so implement support for them now that we can access the registers. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/pcm512x.h')
-rw-r--r--sound/soc/codecs/pcm512x.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm512x.h b/sound/soc/codecs/pcm512x.h
index e58743c965d6..ac4a52c9ccf4 100644
--- a/sound/soc/codecs/pcm512x.h
+++ b/sound/soc/codecs/pcm512x.h
@@ -151,4 +151,12 @@
#define PCM512x_AMLE_SHIFT 1
#define PCM512x_AMLR_SHIFT 0
+/* Page 1, Register 2 - analog volume control */
+#define PCM512x_RAGN_SHIFT 0
+#define PCM512x_LAGN_SHIFT 4
+
+/* Page 1, Register 7 - analog boost control */
+#define PCM512x_AGBR_SHIFT 0
+#define PCM512x_AGBL_SHIFT 4
+
#endif