diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-12-10 07:34:10 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-11 07:25:41 +0100 |
commit | 5afff8c1bbc7c5d9a092b217dd27040ccd5b347a (patch) | |
tree | 92dc43ab92b78be0d62f1ed8a9d6e66a07e4e5af /sound/pci/cs4281.c | |
parent | 3663984e07a4806c891db66c1ac4fed5c36d38f2 (diff) | |
download | lwn-5afff8c1bbc7c5d9a092b217dd27040ccd5b347a.tar.gz lwn-5afff8c1bbc7c5d9a092b217dd27040ccd5b347a.zip |
ALSA: cs4281: 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-12-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs4281.c')
-rw-r--r-- | sound/pci/cs4281.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index 0dcb2d15b560..e7294b9d2cb6 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c @@ -1268,9 +1268,6 @@ static int snd_cs4281_free(struct cs4281 *chip) { snd_cs4281_free_gameport(chip); - if (chip->irq >= 0) - synchronize_irq(chip->irq); - /* Mask interrupts */ snd_cs4281_pokeBA0(chip, BA0_HIMR, 0x7fffffff); /* Stop the DLL Clock logic. */ @@ -1352,6 +1349,7 @@ static int snd_cs4281_create(struct snd_card *card, return -ENOMEM; } chip->irq = pci->irq; + card->sync_irq = chip->irq; tmp = snd_cs4281_chip_init(chip); if (tmp) { @@ -1600,7 +1598,6 @@ static int snd_cs4281_chip_init(struct cs4281 *chip) BA0_HISR_DMA(1) | BA0_HISR_DMA(2) | BA0_HISR_DMA(3))); - synchronize_irq(chip->irq); return 0; } |