>From a771fac415223c4bd6dc4648e12e0b5679a86975 Mon Sep 17 00:00:00 2001 From: Vinod Koul <[email protected]> Date: Tue, 7 Dec 2010 17:14:42 +0530 Subject: [PATCH 1/4] sst: fix handling interrupt for shared irq when suspended
The irq for audio is shared, so when device is supended driver should not the read register and ignore the interrupt. This patch ignores interrupts when device is suspended. Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Ramesh Babu K V <[email protected]> --- sound/pci/sst/intel_sst.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/sound/pci/sst/intel_sst.c b/sound/pci/sst/intel_sst.c index 6cb4fd6..62689b2 100644 --- a/sound/pci/sst/intel_sst.c +++ b/sound/pci/sst/intel_sst.c @@ -105,6 +105,9 @@ static irqreturn_t intel_sst_interrupt(int irq, void *context) unsigned int size = 0, str_id; struct stream_info *stream ; + /* Do not handle interrupt in suspended state */ + if (drv->sst_state == SST_SUSPENDED) + return IRQ_NONE; /* Interrupt arrived, check src */ isr.full = sst_shim_read(drv->shim, SST_ISRX); -- 1.6.2.5 _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
