]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Add card sync_irq field
authorTakashi Iwai <tiwai@suse.de>
Sun, 17 Nov 2019 08:53:07 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2019 18:39:54 +0000 (19:39 +0100)
commit4fa492ec34f486ba8a15e9cf770db9b882669083
treef6428eb1cdc7dbfa009e7d0bb684b0407b491307
parente551e839b64f9557a9cce103ab97b4cbcb15b720
ALSA: pcm: Add card sync_irq field

Many PCI and other drivers performs snd_pcm_period_elapsed() simply in
its interrupt handler, so the sync_stop operation is just to call
synchronize_irq().  Instead of putting this call multiple times,
introduce the common card->sync_irq field.  When this field is set,
PCM core performs synchronize_irq() for sync-stop operation.  Each
driver just needs to copy its local IRQ number to card->sync_irq, and
that's all we need.

Link: https://lore.kernel.org/r/20191117085308.23915-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/init.c
sound/core/pcm_native.c