summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98095.h
diff options
context:
space:
mode:
authorPeter Hsiang <cdefgab1288@gmail.com>2011-04-20 05:20:40 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-20 16:50:41 +0400
commitdad31ec133adb20c8fd10bfd9379da3f08b8721e (patch)
tree826b285320ef8390196e79bfc7bba16e052be15f /sound/soc/codecs/max98095.h
parentdea8b6eef03afdec475b981fca8622c41f8de7e2 (diff)
downloadlinux-dad31ec133adb20c8fd10bfd9379da3f08b8721e.tar.xz
ASoC: Add EQ and filter to max98095 CODEC driver
This patch adds the equalizer and biquad filter controls. Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/max98095.h')
-rw-r--r--sound/soc/codecs/max98095.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98095.h b/sound/soc/codecs/max98095.h
index 5b22bc8dbede..891584a0eb03 100644
--- a/sound/soc/codecs/max98095.h
+++ b/sound/soc/codecs/max98095.h
@@ -250,6 +250,8 @@
/* M98095_088_CFG_LEVEL */
#define M98095_VSEN (1<<6)
#define M98095_ZDEN (1<<5)
+ #define M98095_BQ2EN (1<<3)
+ #define M98095_BQ1EN (1<<2)
#define M98095_EQ2EN (1<<1)
#define M98095_EQ1EN (1<<0)
@@ -281,4 +283,17 @@
#define M98095_PWRSV8K (1<<1)
#define M98095_PWRSV (1<<0)
+#define M98095_COEFS_PER_BAND 5
+
+#define M98095_BYTE1(w) ((w >> 8) & 0xff)
+#define M98095_BYTE0(w) (w & 0xff)
+
+/* Equalizer filter coefficients */
+#define M98095_110_DAI1_EQ_BASE 0x10
+#define M98095_142_DAI2_EQ_BASE 0x42
+
+/* Biquad filter coefficients */
+#define M98095_174_DAI1_BQ_BASE 0x74
+#define M98095_17E_DAI2_BQ_BASE 0x7E
+
#endif