From: Mark Brown Date: Sun, 21 Aug 2011 10:47:14 +0000 (+0100) Subject: ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e6ef58700a8afba46f2aa98a0de12c35e4b1f295;p=linux-beck.git ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962 This should never happen with level triggered IRQs. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 75e784053603..add07fff4495 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -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);