ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- sound/soc/codecs/wm8962.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
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);
Signature · 1 line
1.7.5.4
Quoted 12 lines · Mark Brown
This should never happen with level triggered IRQs.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/wm8962.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)sound/soc/codecs/wm8962.c +0
-0
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);
Acked-by Liam Girdwood <[email protected]>