Skip to contentSkip to conversation

ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962

PATCH In review Mark Brown 2 participants 2 messages Aug 21, 2011 – Aug 22, 2011

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962

This should never happen with level triggered IRQs.

---
 sound/soc/codecs/wm8962.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8962.c +3 -0
index 0c61c2f..b877fa9 100644
@@ -3577,6 +3577,9 @@ static irqreturn_t wm8962_irq(int irq, void *data)
 	active = snd_soc_read(codec, WM8962_INTERRUPT_STATUS_2);
 	active &= ~mask;
 
+	if (!active)
+		return IRQ_NONE;
+
 	/* Acknowledge the interrupts */
 	snd_soc_write(codec, WM8962_INTERRUPT_STATUS_2, active);
 
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Mark Brown

This should never happen with level triggered IRQs.

---
 sound/soc/codecs/wm8962.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8962.c +0 -0
index 0c61c2f..b877fa9 100644

sound/soc/codecs/wm8962.c static irqreturn_t wm8962_irq(int irq, void *data) · line 3585

Quoted 9 lines
sound/soc/codecs/wm8962.c +3 -0
@@ -3577,6 +3577,9 @@ static irqreturn_t wm8962_irq(int irq, void *data)
 	active = snd_soc_read(codec, WM8962_INTERRUPT_STATUS_2);
 	active &= ~mask;
 
+	if (!active)
+		return IRQ_NONE;
+
 	/* Acknowledge the interrupts */
 	snd_soc_write(codec, WM8962_INTERRUPT_STATUS_2, active);