aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max9867.h
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-12-04 19:21:33 +0100
committerMark Brown <broonie@kernel.org>2018-12-07 12:20:42 +0000
commitbc2610a6c4c92f0bf6bbf4c6641407536f30daaf (patch)
tree5b631eb7727bb00aa4abcc4fea8f095d5dbd23b5 /sound/soc/codecs/max9867.h
parentASoC: max9867: Calculate LRCLK divider (diff)
downloadlinux-dev-bc2610a6c4c92f0bf6bbf4c6641407536f30daaf.tar.xz
linux-dev-bc2610a6c4c92f0bf6bbf4c6641407536f30daaf.zip
ASoC: max9867: Fix signal paths
Sound capture and line bypass currently do not work as well as some mixer controls. Fix that by building proper audio paths and adjusting volume controls to match datasheet. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max9867.h')
-rw-r--r--sound/soc/codecs/max9867.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sound/soc/codecs/max9867.h b/sound/soc/codecs/max9867.h
index 7f037ab701a5..2277798291a1 100644
--- a/sound/soc/codecs/max9867.h
+++ b/sound/soc/codecs/max9867.h
@@ -48,20 +48,16 @@
#define MAX9867_IFC1B_PCLK_8 0x06
#define MAX9867_IFC1B_PCLK_16 0x07
#define MAX9867_CODECFLTR 0x0a
-#define MAX9867_DACGAIN 0x0b
+#define MAX9867_SIDETONE 0x0b
#define MAX9867_DACLEVEL 0x0c
-#define MAX9867_DAC_MUTE_SHIFT 0x6
-#define MAX9867_DAC_MUTE_WIDTH 0x1
-#define MAX9867_DAC_MUTE_MASK (0x1<<MAX9867_DAC_MUTE_SHIFT)
#define MAX9867_ADCLEVEL 0x0d
#define MAX9867_LEFTLINELVL 0x0e
-#define MAX9867_RIGTHLINELVL 0x0f
+#define MAX9867_RIGHTLINELVL 0x0f
#define MAX9867_LEFTVOL 0x10
#define MAX9867_RIGHTVOL 0x11
#define MAX9867_LEFTMICGAIN 0x12
#define MAX9867_RIGHTMICGAIN 0x13
#define MAX9867_INPUTCONFIG 0x14
-#define MAX9867_INPUT_SHIFT 0x6
#define MAX9867_MICCONFIG 0x15
#define MAX9867_MODECONFIG 0x16
#define MAX9867_PWRMAN 0x17