ALSA: sb: Support PCM sync_stop
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Dec 2019 06:34:45 +0000 (07:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Dec 2019 06:25:57 +0000 (07:25 +0100)
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-47-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/sb_common.c

index ff031d670400ec2f0ccf4301dc77488e4fe185cf..4aaf9ab82afe8ab9ee565bd2f2e0f8484a39c1b4 100644 (file)
@@ -233,6 +233,7 @@ int snd_sbdsp_create(struct snd_card *card,
                return -EBUSY;
        }
        chip->irq = irq;
+       card->sync_irq = chip->irq;
 
        if (hardware == SB_HW_ALS4000)
                goto __skip_allocation;