Commit b7a03a1e authored by Takashi Iwai's avatar Takashi Iwai

ALSA: ymfpci: 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-39-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c47583b0
...@@ -2371,6 +2371,7 @@ int snd_ymfpci_create(struct snd_card *card, ...@@ -2371,6 +2371,7 @@ int snd_ymfpci_create(struct snd_card *card,
goto free_chip; goto free_chip;
} }
chip->irq = pci->irq; chip->irq = pci->irq;
card->sync_irq = chip->irq;
snd_ymfpci_aclink_reset(pci); snd_ymfpci_aclink_reset(pci);
if (snd_ymfpci_codec_ready(chip, 0) < 0) { if (snd_ymfpci_codec_ready(chip, 0) < 0) {
......
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