summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tas5720.h
diff options
context:
space:
mode:
authorSteffen Aschbacher <steffen.aschbacher@stihl.de>2023-01-28 11:27:43 +0300
committerMark Brown <broonie@kernel.org>2023-01-30 16:35:15 +0300
commit88f748e38b283702a620e635820f1864bf32db0e (patch)
tree07dba4e411d7498464bc11a381a20b39e9e050e9 /sound/soc/codecs/tas5720.h
parentc24a62be09d8a0c7ede1c209055a4ac6760a45ee (diff)
downloadlinux-88f748e38b283702a620e635820f1864bf32db0e.tar.xz
ASoC: tas5720: set bit 7 in ANALOG_CTRL_REG for TAS5720A-Q1 during probe
Set the reserved bit 7 in the ANALOG_CTRL_REG for the TAS5720A-Q1 device, when probing. The datasheet mentions that the bit should be 1 during reset/powerup. The device did not initialize before setting this value to 1. So, this could be a quirk of this device. Or it could be a quirk with the board on which it was tested. That is why this patch is separate from the patch that adds support for the TAS5720A-Q1 device. Signed-off-by: Steffen Aschbacher <steffen.aschbacher@stihl.de> Signed-off-by: Alexandru Ardelean <alex@shruggie.ro> Link: https://lore.kernel.org/r/20230128082744.41849-3-alex@shruggie.ro Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tas5720.h')
-rw-r--r--sound/soc/codecs/tas5720.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas5720.h b/sound/soc/codecs/tas5720.h
index b38459570241..54b59b05ef0a 100644
--- a/sound/soc/codecs/tas5720.h
+++ b/sound/soc/codecs/tas5720.h
@@ -81,6 +81,7 @@
#define TAS5720_ANALOG_GAIN_SHIFT (0x2)
/* TAS5720_Q1_ANALOG_CTRL_REG */
+#define TAS5720_Q1_RESERVED7_BIT BIT(7)
#define TAS5720_Q1_CHAN_SEL BIT(1)
/* TAS5720_FAULT_REG */