ALSA: firewire: use nonatomic PCM operation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 4 Sep 2024 12:51:54 +0000 (21:51 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 4 Sep 2024 12:51:54 +0000 (21:51 +0900)
commit5c49cc0ed405cadb60d8c4484f95ffdaf7c6ec5c
treeecc4c9bd780b8463554bd4673442f28bd3624c41
parentf62ec13e8b696c58f360f457f1541056872aee99
ALSA: firewire: use nonatomic PCM operation

In the former commits, the callback of isochronous context runs on usual
work process. In the case, ALSA PCM device has a flag, nonatomic, to
acquire mutex lock instead of spin lock for PCM substream group.

This commit uses the flag. It has an advantage in the case that ALSA PCM
application uses the large size of intermediate buffer, since it takes
too long time even in tasklet softIRQ to process many of isochronous
packets, then result in the delay of system event due to disabled IRQ so
long. It is avertible to switch to nonatomic operation.

Reviewed-by: Takashi Iwai <tiwai@suse.de>
Tested-by: Edmund Raile <edmund.raile@protonmail.com>
Link: https://lore.kernel.org/r/20240904125155.461886-6-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
sound/firewire/amdtp-stream.c
sound/firewire/bebob/bebob_pcm.c
sound/firewire/dice/dice-pcm.c
sound/firewire/digi00x/digi00x-pcm.c
sound/firewire/fireface/ff-pcm.c
sound/firewire/fireworks/fireworks_pcm.c
sound/firewire/isight.c
sound/firewire/motu/motu-pcm.c
sound/firewire/oxfw/oxfw-pcm.c
sound/firewire/tascam/tascam-pcm.c