From fa91703dc2e010e48a230dc92967cb5ae23f8680 Mon Sep 17 00:00:00 2001 From: Maciej Strozek Date: Thu, 23 Nov 2023 09:06:58 +0000 Subject: 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 Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20231123090658.10418-1-mstrozek@opensource.cirrus.com Signed-off-by: Mark Brown --- sound/soc/codecs/cs43130.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/codecs/cs43130.h') 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; -- cgit v1.2.3