summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-12-10 07:34:37 +0100
committerTakashi Iwai <tiwai@suse.de>2019-12-11 07:25:54 +0100
commitb7a03a1e14595aa806c33000bfb4fea4eb8acdc5 (patch)
tree2fc4e3cb2623315d45ec0524b85333d087c19103
parentALSA: via82xx: Support PCM sync_stop (diff)
downloadlinux-b7a03a1e14595aa806c33000bfb4fea4eb8acdc5.tar.xz
linux-b7a03a1e14595aa806c33000bfb4fea4eb8acdc5.zip
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.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/ymfpci/ymfpci_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
index 61604277ae35..3bc92d236508 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -2371,6 +2371,7 @@ int snd_ymfpci_create(struct snd_card *card,
goto free_chip;
}
chip->irq = pci->irq;
+ card->sync_irq = chip->irq;
snd_ymfpci_aclink_reset(pci);
if (snd_ymfpci_codec_ready(chip, 0) < 0) {