Commit b0ad3bbc authored by Takashi Iwai's avatar Takashi Iwai

ALSA: ice1724: 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, as well as removing the superfluous synchronize_irq()
call.

Link: https://lore.kernel.org/r/20191210063454.31603-24-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1b97a87f
...@@ -2534,7 +2534,6 @@ static int snd_vt1724_create(struct snd_card *card, ...@@ -2534,7 +2534,6 @@ static int snd_vt1724_create(struct snd_card *card,
ice->irq = -1; ice->irq = -1;
pci_set_master(pci); pci_set_master(pci);
snd_vt1724_proc_init(ice); snd_vt1724_proc_init(ice);
synchronize_irq(pci->irq);
card->private_data = ice; card->private_data = ice;
...@@ -2555,6 +2554,7 @@ static int snd_vt1724_create(struct snd_card *card, ...@@ -2555,6 +2554,7 @@ static int snd_vt1724_create(struct snd_card *card,
} }
ice->irq = pci->irq; ice->irq = pci->irq;
card->sync_irq = ice->irq;
snd_vt1724_chip_reset(ice); snd_vt1724_chip_reset(ice);
if (snd_vt1724_read_eeprom(ice, modelname) < 0) { if (snd_vt1724_read_eeprom(ice, modelname) < 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