summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98088.h
diff options
context:
space:
mode:
authorJin Park <jinyoungp@nvidia.com>2011-05-12 07:58:38 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-05-16 06:26:36 +0200
commit25709f6d83cc23d6f2912194c77ebf850310223e (patch)
treec3a5ef020ce53a583d6d324896bf01f261b67da4 /sound/soc/codecs/max98088.h
parentASoC: codecs: max98088: Moved the EX Limiter Mode from dapm widget to control (diff)
downloadlinux-25709f6d83cc23d6f2912194c77ebf850310223e.tar.xz
linux-25709f6d83cc23d6f2912194c77ebf850310223e.zip
ASoC: codecs: max98088: Added digital mute function in DAI1 and DAI2
Added digital mute function in DAI1 and DAI2. Signed-off-by: Jin Park <jinyoungp@nvidia.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/max98088.h')
-rw-r--r--sound/soc/codecs/max98088.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98088.h b/sound/soc/codecs/max98088.h
index 56554c797fef..be89a4f4aab8 100644
--- a/sound/soc/codecs/max98088.h
+++ b/sound/soc/codecs/max98088.h
@@ -133,6 +133,19 @@
#define M98088_REC_LINEMODE (1<<7)
#define M98088_REC_LINEMODE_MASK (1<<7)
+/* M98088_REG_2D_MIX_SPK_CNTL */
+ #define M98088_MIX_SPKR_GAIN_MASK (3<<2)
+ #define M98088_MIX_SPKR_GAIN_SHIFT 2
+ #define M98088_MIX_SPKL_GAIN_MASK (3<<0)
+ #define M98088_MIX_SPKL_GAIN_SHIFT 0
+
+/* M98088_REG_2F_LVL_DAI1_PLAY, M98088_REG_31_LVL_DAI2_PLAY */
+ #define M98088_DAI_MUTE (1<<7)
+ #define M98088_DAI_MUTE_MASK (1<<7)
+ #define M98088_DAI_VOICE_GAIN_MASK (3<<4)
+ #define M98088_DAI_ATTENUATION_MASK (0xF<<0)
+ #define M98088_DAI_ATTENUATION_SHIFT 0
+
/* M98088_REG_35_LVL_MIC1, M98088_REG_36_LVL_MIC2 */
#define M98088_MICPRE_MASK (3<<5)
#define M98088_MICPRE_SHIFT 5