summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max9867.h
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2018-12-04 21:19:51 +0300
committerMark Brown <broonie@kernel.org>2018-12-07 15:20:40 +0300
commit29f58ff06795a923407d011d4721eaf3e8d39acc (patch)
tree98a008a92de60cf9c5c96b2091cddf70381466b0 /sound/soc/codecs/max9867.h
parent8efc1afd7e0570d9bb37f5127f0742304a8ad2fc (diff)
downloadlinux-29f58ff06795a923407d011d4721eaf3e8d39acc.tar.xz
ASoC: max9867: Fix power management
Implement set_bias_level to drive shutdown bit, so device is put to sleep when unused. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max9867.h b/sound/soc/codecs/max9867.h
index 55cd9976ff47..d9170850c96e 100644
--- a/sound/soc/codecs/max9867.h
+++ b/sound/soc/codecs/max9867.h
@@ -67,7 +67,7 @@
#define MAX9867_MICCONFIG 0x15
#define MAX9867_MODECONFIG 0x16
#define MAX9867_PWRMAN 0x17
-#define MAX9867_SHTDOWN_MASK (1<<7)
+#define MAX9867_SHTDOWN 0x80
#define MAX9867_REVISION 0xff
#define MAX9867_CACHEREGNUM 10