Commit bb39c4a0 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] detect errors reported by the hardware

BT87x driver
stop the PCM if the hardware reports FIFO/PCI errors
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent d751c14c
...@@ -264,8 +264,9 @@ static irqreturn_t snd_bt87x_interrupt(int irq, void *dev_id, struct pt_regs *re ...@@ -264,8 +264,9 @@ static irqreturn_t snd_bt87x_interrupt(int irq, void *dev_id, struct pt_regs *re
snd_printk(KERN_ERR "Aieee - PCI error! status %#08x, PCI status %#04x\n", snd_printk(KERN_ERR "Aieee - PCI error! status %#08x, PCI status %#04x\n",
status, pci_status); status, pci_status);
} }
} if (chip->reg_control & CTL_ACAP_EN)
if (status & INT_RISCI) { snd_pcm_stop(chip->substream, SNDRV_PCM_STATE_XRUN);
} else if ((status & INT_RISCI) && (chip->reg_control & CTL_ACAP_EN)) {
int current_block, irq_block; int current_block, irq_block;
/* assume that exactly one line has been recorded */ /* assume that exactly one line has been recorded */
......
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