Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60eaa6b1 authored by Vangala, Amarnath's avatar Vangala, Amarnath
Browse files

asoc: wcd937x: Add support to clear ack registers



WCD937x codec requires clear registers to be written '1' and
'0' for clearing interrupts. Enable clear_ack flag in regmap
irq chip structure for wcd937x.

Change-Id: I0a2e4fc85fe6dca75885b5300840669afeabc80c
Signed-off-by: default avatarVangala, Amarnath <avangala@codeaurora.org>
parent d6f802b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -101,6 +101,9 @@ static struct regmap_irq_chip wcd937x_regmap_irq_chip = {
	.mask_base = WCD937X_DIGITAL_INTR_MASK_0,
	.ack_base = WCD937X_DIGITAL_INTR_CLEAR_0,
	.use_ack = 1,
#if IS_ENABLED(CONFIG_AUDIO_QGKI)
	.clear_ack = 1,
#endif
	.type_base = WCD937X_DIGITAL_INTR_LEVEL_0,
	.runtime_pm = false,
	.handle_post_irq = wcd937x_handle_post_irq,