summaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emu10k1x.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-10 07:34:15 +0100
committerTakashi Iwai <tiwai@suse.de>2019-12-11 07:25:45 +0100
commit66471aa715f0d4207c61e27e6333d6f453df554b (patch)
treea56c009e54f68607179fc985483442e298720f3d /sound/pci/emu10k1/emu10k1x.c
parentd4cad99fda9bc5ba6de3a56aedb572a008d1856a (diff)
downloadlinux-66471aa715f0d4207c61e27e6333d6f453df554b.tar.gz
linux-66471aa715f0d4207c61e27e6333d6f453df554b.tar.bz2
linux-66471aa715f0d4207c61e27e6333d6f453df554b.zip
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>
Diffstat (limited to 'sound/pci/emu10k1/emu10k1x.c')
-rw-r--r--sound/pci/emu10k1/emu10k1x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 19fc74e94727..6467142ec460 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -930,6 +930,7 @@ static int snd_emu10k1x_create(struct snd_card *card,
return -EBUSY;
}
chip->irq = pci->irq;
+ card->sync_irq = chip->irq;
if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, &pci->dev,
4 * 1024, &chip->dma_buffer) < 0) {