ALSA: emu10k1: 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.

Link: https://lore.kernel.org/r/20191210063454.31603-17-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2019-12-10 07:34:15 +01:00
parent d4cad99fda
commit 66471aa715
2 changed files with 2 additions and 0 deletions

View File

@ -1984,6 +1984,7 @@ int snd_emu10k1_create(struct snd_card *card,
goto error; goto error;
} }
emu->irq = pci->irq; emu->irq = pci->irq;
card->sync_irq = emu->irq;
/* /*
* Init to 0x02109204 : * Init to 0x02109204 :

View File

@ -930,6 +930,7 @@ static int snd_emu10k1x_create(struct snd_card *card,
return -EBUSY; return -EBUSY;
} }
chip->irq = pci->irq; chip->irq = pci->irq;
card->sync_irq = chip->irq;
if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, &pci->dev, if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, &pci->dev,
4 * 1024, &chip->dma_buffer) < 0) { 4 * 1024, &chip->dma_buffer) < 0) {