summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs35l35.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-04-06 15:52:12 +0300
committerMark Brown <broonie@kernel.org>2017-04-06 21:27:52 +0300
commit2c84afb52ebea59e9862fcb8234126b7ae1d1960 (patch)
tree4f512d6c9503b304cba13efe9630320b350c2c18 /sound/soc/codecs/cs35l35.h
parent8e71321d19c4ed02d9eed15955b8d485bab016fc (diff)
downloadlinux-2c84afb52ebea59e9862fcb8234126b7ae1d1960.tar.xz
ASoC: cs35l35: Improve power down time
Shorten the time it takes to power down the amp by disabling the volume ramp whilst doing the final shutdown. The driver has already muted the amplifier at this stage so doing the volume ramp serves no purpose. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Brian Austin <brian.austin@cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l35.h')
-rw-r--r--sound/soc/codecs/cs35l35.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs35l35.h b/sound/soc/codecs/cs35l35.h
index 156d2f0e6fd8..54e9ac536b20 100644
--- a/sound/soc/codecs/cs35l35.h
+++ b/sound/soc/codecs/cs35l35.h
@@ -190,6 +190,9 @@
#define CS35L35_AMP_GAIN_ZC_MASK 0x10
#define CS35L35_AMP_GAIN_ZC_SHIFT 4
+#define CS35L35_AMP_DIGSFT_MASK 0x02
+#define CS35L35_AMP_DIGSFT_SHIFT 1
+
/* CS35L35_SP_FMT_CTL3 */
#define CS35L35_SP_I2S_DRV_MASK 0x03
#define CS35L35_SP_I2S_DRV_SHIFT 0