ASoC: max98373: Added controls for autorestart config
authorRyan Lee <ryans.lee@maximintegrated.com>
Thu, 25 Mar 2021 03:35:55 +0000 (20:35 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 25 Mar 2021 13:58:57 +0000 (13:58 +0000)
commit7a0d884986f3693aca8a2dc4e1b31d35c508542e
tree0a143a1a8cbaa347ac1fd0a3f37217354be79d76
parent9f44673b7af2e776b55b1d15b3a35d8e8eb51331
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>
sound/soc/codecs/max98373.c
sound/soc/codecs/max98373.h