diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-21 06:47:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-22 07:42:01 -0400 |
commit | e6ef58700a8afba46f2aa98a0de12c35e4b1f295 (patch) | |
tree | c41c70eff49550a2c73ca2a5ed9e304b813c7a3b /sound/soc/codecs/wm8962.c | |
parent | 6f88a4e5785fbf4db9a2c7e16670e1f19e6566d2 (diff) |
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 75e78405360..add07fff449 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) | |||
3570 | active = snd_soc_read(codec, WM8962_INTERRUPT_STATUS_2); | 3570 | active = snd_soc_read(codec, WM8962_INTERRUPT_STATUS_2); |
3571 | active &= ~mask; | 3571 | active &= ~mask; |
3572 | 3572 | ||
3573 | if (!active) | ||
3574 | return IRQ_NONE; | ||
3575 | |||
3573 | /* Acknowledge the interrupts */ | 3576 | /* Acknowledge the interrupts */ |
3574 | snd_soc_write(codec, WM8962_INTERRUPT_STATUS_2, active); | 3577 | snd_soc_write(codec, WM8962_INTERRUPT_STATUS_2, active); |
3575 | 3578 | ||