From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH] ASoC: Report IRQ_NONE when we don't see an interrupt from WM8962 Date: Mon, 22 Aug 2011 11:25:17 +0100 Message-ID: <4E522E8D.1000003@ti.com> References: <1313927925-11523-1-git-send-email-broonie@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by alsa0.perex.cz (Postfix) with ESMTP id 8617A24530 for ; Mon, 22 Aug 2011 12:25:23 +0200 (CEST) In-Reply-To: <1313927925-11523-1-git-send-email-broonie@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: "alsa-devel@alsa-project.org" , "patches@opensource.wolfsonmicro.com" List-Id: alsa-devel@alsa-project.org On 21/08/11 12:58, Mark Brown wrote: > This should never happen with level triggered IRQs. > > Signed-off-by: Mark Brown > --- > 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 0c61c2f..b877fa9 100644 > --- a/sound/soc/codecs/wm8962.c > +++ b/sound/soc/codecs/wm8962.c > @@ -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