ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 21 Aug 2011 10:47:14 +0000 (11:47 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Aug 2011 11:42:01 +0000 (12:42 +0100)
This should never happen with level triggered IRQs.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/codecs/wm8962.c

index 75e7840536037e4a1c28d9fdffdead038291cb00..add07fff449501721ad37116a5731e7c25d5d800 100644 (file)
@@ -3570,6 +3570,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);