Commit 5957016e authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

Intel8x0 driver,Intel8x0-modem driver
Fixed resume when interrupts are shared with another devices.
Signed-off-by: default avatarJozef Vesely <vesely@gjh.sk>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 1c63b8a6
......@@ -837,6 +837,9 @@ static irqreturn_t snd_intel8x0_interrupt(int irq, void *dev_id, struct pt_regs
unsigned int i;
status = igetdword(chip, chip->int_sta_reg);
if (status == 0xffffffff) /* we are not yet resumed */
return IRQ_NONE;
if ((status & chip->int_sta_mask) == 0) {
if (status) {
/* ack */
......
......@@ -548,6 +548,10 @@ static irqreturn_t snd_intel8x0_interrupt(int irq, void *dev_id, struct pt_regs
spin_lock(&chip->reg_lock);
status = igetdword(chip, chip->int_sta_reg);
if (status == 0xffffffff) { /* we are not yet resumed */
spin_unlock(&chip->reg_lock);
return IRQ_NONE;
}
if ((status & chip->int_sta_mask) == 0) {
if (status)
iputdword(chip, chip->int_sta_reg, status);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment