Browse Source

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: Vangala, Amarnath <[email protected]>
Vangala, Amarnath 4 years ago
parent
commit
60eaa6b160
1 changed files with 3 additions and 0 deletions
  1. 3 0
      asoc/codecs/wcd937x/wcd937x.c

+ 3 - 0
asoc/codecs/wcd937x/wcd937x.c

@@ -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,