summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max98373.h
diff options
context:
space:
mode:
authorRyan Lee <ryans.lee@maximintegrated.com>2021-03-25 04:35:55 +0100
committerMark Brown <broonie@kernel.org>2021-03-25 14:58:57 +0100
commit7a0d884986f3693aca8a2dc4e1b31d35c508542e (patch)
tree0a143a1a8cbaa347ac1fd0a3f37217354be79d76 /sound/soc/codecs/max98373.h
parentASoC: rt1015: Add bclk detection and dc detection (diff)
downloadlinux-7a0d884986f3693aca8a2dc4e1b31d35c508542e.tar.xz
linux-7a0d884986f3693aca8a2dc4e1b31d35c508542e.zip
ASoC: max98373: Added controls for autorestart config
3 new controls are added. "OVC Autorestart Switch" : controls whether or not the speaker amplifier automatically re-enables after an overcurrent fault condition. "THERM Autorestart Switch" : controls whether or not the device automatically resumes playback when the die temperature recovers from thermal shutdown. "CMON Autorestart Switch" : controls whether or not the device automatically resumes playback when the clock returns after stopping. Above Auto Restart functions are enabled by default. Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com> Link: https://lore.kernel.org/r/20210325033555.29377-3-ryans.lee@maximintegrated.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98373.h')
-rw-r--r--sound/soc/codecs/max98373.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/max98373.h b/sound/soc/codecs/max98373.h
index 71f5a5228f34..73a2cf69d84a 100644
--- a/sound/soc/codecs/max98373.h
+++ b/sound/soc/codecs/max98373.h
@@ -195,6 +195,9 @@
#define MAX98373_LIMITER_EN_SHIFT (0)
/* MAX98373_R20FE_DEVICE_AUTO_RESTART_CFG */
+#define MAX98373_OVC_AUTORESTART_SHIFT (3)
+#define MAX98373_THERM_AUTORESTART_SHIFT (2)
+#define MAX98373_CMON_AUTORESTART_SHIFT (1)
#define MAX98373_CLOCK_MON_SHIFT (0)
/* MAX98373_R20FF_GLOBAL_SHDN */