Commit 914da689 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: gus: 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-43-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 58dad836
...@@ -181,6 +181,7 @@ int snd_gus_create(struct snd_card *card, ...@@ -181,6 +181,7 @@ int snd_gus_create(struct snd_card *card,
return -EBUSY; return -EBUSY;
} }
gus->gf1.irq = irq; gus->gf1.irq = irq;
card->sync_irq = irq;
if (request_dma(dma1, "GUS - 1")) { if (request_dma(dma1, "GUS - 1")) {
snd_printk(KERN_ERR "gus: can't grab DMA1 %d\n", dma1); snd_printk(KERN_ERR "gus: can't grab DMA1 %d\n", dma1);
snd_gus_free(gus); snd_gus_free(gus);
......
...@@ -282,7 +282,8 @@ static int snd_gusmax_probe(struct device *pdev, unsigned int dev) ...@@ -282,7 +282,8 @@ static int snd_gusmax_probe(struct device *pdev, unsigned int dev)
goto _err; goto _err;
} }
maxcard->irq = xirq; maxcard->irq = xirq;
card->sync_irq = maxcard->irq;
err = snd_wss_create(card, err = snd_wss_create(card,
gus->gf1.port + 0x10c, -1, xirq, gus->gf1.port + 0x10c, -1, xirq,
xdma2 < 0 ? xdma1 : xdma2, xdma1, xdma2 < 0 ? xdma1 : xdma2, xdma1,
......
...@@ -667,6 +667,7 @@ static int snd_interwave_probe(struct snd_card *card, int dev) ...@@ -667,6 +667,7 @@ static int snd_interwave_probe(struct snd_card *card, int dev)
return -EBUSY; return -EBUSY;
} }
iwcard->irq = xirq; iwcard->irq = xirq;
card->sync_irq = iwcard->irq;
err = snd_wss_create(card, err = snd_wss_create(card,
gus->gf1.port + 0x10c, -1, xirq, gus->gf1.port + 0x10c, -1, xirq,
......
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