summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tas6424.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-05-03 10:36:27 +0300
committerMark Brown <broonie@kernel.org>2018-05-04 02:13:12 +0300
commit396888772ab738eca923d13fd3d55733091c5daf (patch)
treea79aa9f1ae9d103d4ea2cdb3fda57bec5557f137 /sound/soc/codecs/tas6424.h
parenta7ea9385d41716f8dd5f69b4a5deaf836d67d968 (diff)
downloadlinux-396888772ab738eca923d13fd3d55733091c5daf.tar.xz
ASoC: tas6424: Allow disabling auto diagnostics for faster power-on
The TAS6424 incorporates both DC-load and AC-load diagnostics which are used to determine the status of the load. The DC diagnostics runs when any channel is directed to leave the Hi-Z state and enter the MUTE or PLAY state. The DC diagnostics are turned on by default but, if a fast startup without diagnostics is required, the diagnostics can be disabled using a dedicated ALSA control. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tas6424.h')
-rw-r--r--sound/soc/codecs/tas6424.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas6424.h b/sound/soc/codecs/tas6424.h
index 430588328a06..b5958c45ed0e 100644
--- a/sound/soc/codecs/tas6424.h
+++ b/sound/soc/codecs/tas6424.h
@@ -111,6 +111,10 @@
TAS6424_CH3_STATE_DIAG | \
TAS6424_CH4_STATE_DIAG)
+/* TAS6424_DC_DIAG_CTRL1 */
+#define TAS6424_LDGBYPASS_SHIFT 0
+#define TAS6424_LDGBYPASS_MASK BIT(TAS6424_LDGBYPASS_SHIFT)
+
/* TAS6424_GLOB_FAULT1_REG */
#define TAS6424_FAULT_CLOCK BIT(4)
#define TAS6424_FAULT_PVDD_OV BIT(3)