]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: firewire-lib: fix the context to call snd_pcm_stop_xrun()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 5 Jun 2021 09:10:54 +0000 (18:10 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 5 Jun 2021 12:52:58 +0000 (14:52 +0200)
commit9981b20a5e3694f4625ab5a1ddc98ce7503f6d12
tree0316f8b4e6d7cf20c6e9f3f47536a25cc218cce8
parentdfb06401b4cdfc71e2fc3e19b877ab845cc9f7f7
ALSA: firewire-lib: fix the context to call snd_pcm_stop_xrun()

In the workqueue to queue wake-up event, isochronous context is not
processed, thus it's useless to check context for the workqueue to switch
status of runtime for PCM substream to XRUN. On the other hand, in
software IRQ context of 1394 OHCI, it's needed.

This commit fixes the bug introduced when tasklet was replaced with
workqueue.

Cc: <stable@vger.kernel.org>
Fixes: 2b3d2987d800 ("ALSA: firewire: Replace tasklet with work")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210605091054.68866-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c