summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs43130.h
diff options
context:
space:
mode:
authorMaciej Strozek <mstrozek@opensource.cirrus.com>2023-11-23 10:06:58 +0100
committerMark Brown <broonie@kernel.org>2023-11-23 13:41:49 +0100
commitfa91703dc2e010e48a230dc92967cb5ae23f8680 (patch)
treecec038f37bf1ba94ad9639391b74d33adbcbbcd6 /sound/soc/codecs/cs43130.h
parentASoC: fsl: mpc8610_hpcd: Remove unused driver (diff)
downloadlinux-fa91703dc2e010e48a230dc92967cb5ae23f8680.tar.xz
linux-fa91703dc2e010e48a230dc92967cb5ae23f8680.zip
ASoC: cs43130: Allow driver to work without IRQ connection
Add a polling mechanism that will keep the driver operational even in absence of physical IRQ connection. If IRQ line is detected, the driver will continue working as usual, in case of missing IRQ line it will fallback to the polling mechanism introduced in this change. This will support users which choose not to connect an IRQ line as it is not critical to part's operation. Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20231123090658.10418-1-mstrozek@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/cs43130.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs43130.h b/sound/soc/codecs/cs43130.h
index 2f5ec3888103..694286b78d03 100644
--- a/sound/soc/codecs/cs43130.h
+++ b/sound/soc/codecs/cs43130.h
@@ -507,6 +507,7 @@ struct cs43130_private {
struct gpio_desc *reset_gpio;
unsigned int dev_id; /* codec device ID */
int xtal_ibias;
+ bool has_irq_line;
/* shared by both DAIs */
struct mutex clk_mutex;