Commit dbb71ab0 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: es1968: Support PCM sync_stop

The driver invokes snd_pcm_period_elapsed() simply from the interrupt
handler.  Set card->sync_irq for enabling the missing sync_stop PCM
operation, as well as removing the superfluous synchronize_irq()
call.

Link: https://lore.kernel.org/r/20191210063454.31603-20-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6b276e62
...@@ -2602,8 +2602,6 @@ static int snd_es1968_free(struct es1968 *chip) ...@@ -2602,8 +2602,6 @@ static int snd_es1968_free(struct es1968 *chip)
#endif #endif
if (chip->io_port) { if (chip->io_port) {
if (chip->irq >= 0)
synchronize_irq(chip->irq);
outw(1, chip->io_port + 0x04); /* clear WP interrupts */ outw(1, chip->io_port + 0x04); /* clear WP interrupts */
outw(0, chip->io_port + ESM_PORT_HOST_IRQ); /* disable IRQ */ outw(0, chip->io_port + ESM_PORT_HOST_IRQ); /* disable IRQ */
} }
...@@ -2712,6 +2710,7 @@ static int snd_es1968_create(struct snd_card *card, ...@@ -2712,6 +2710,7 @@ static int snd_es1968_create(struct snd_card *card,
return -EBUSY; return -EBUSY;
} }
chip->irq = pci->irq; chip->irq = pci->irq;
card->sync_irq = chip->irq;
/* Clear Maestro_map */ /* Clear Maestro_map */
for (i = 0; i < 32; i++) for (i = 0; i < 32; i++)
......
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