ASoC: cs43130: Allow driver to work without IRQ connection
authorMaciej Strozek <mstrozek@opensource.cirrus.com>
Thu, 23 Nov 2023 09:06:58 +0000 (09:06 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 23 Nov 2023 12:41:49 +0000 (12:41 +0000)
commitfa91703dc2e010e48a230dc92967cb5ae23f8680
treecec038f37bf1ba94ad9639391b74d33adbcbbcd6
parentb1cea462a79316bd619173f1ded8b28202b5ce3a
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>
sound/soc/codecs/cs43130.c
sound/soc/codecs/cs43130.h