summaryrefslogtreecommitdiff
path: root/drivers/staging/intel_sst
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-05-03 17:32:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-10 12:55:54 -0700
commitc3e25a24b55d206dfa261fb2c7bb29b09f7bcf9b (patch)
tree94c589a6d98aa4bf8db2f937540633d758b4aa79 /drivers/staging/intel_sst
parent1bea302c2fe28405cf10f60599c904dfa0bad3fe (diff)
intel_sst: ignore 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 <vinod.koul@intel.com> Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/intel_sst')
-rw-r--r--drivers/staging/intel_sst/intel_sst.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/intel_sst/intel_sst.c b/drivers/staging/intel_sst/intel_sst.c
index c40e00a12d7..e7c2617c0b2 100644
--- a/drivers/staging/intel_sst/intel_sst.c
+++ b/drivers/staging/intel_sst/intel_sst.c
@@ -107,6 +107,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);