]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Avoid call to snd_pcm_avail_update() from JACK thread
authorTimo Wischer <twischer@de.adit-jv.com>
Tue, 3 Jul 2018 13:59:22 +0000 (15:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Jul 2018 14:38:21 +0000 (16:38 +0200)
commitcb82afede6692c950baf86b3c4e2fc4b9c4c6698
tree838dca14b073dc93a2799af6c5c2635ede2946c4
parent2d310f84e7af4c5b4bc68a6e45500e874df482f9
jack: Avoid call to snd_pcm_avail_update() from JACK thread

snd_pcm_avail_update() can call snd_pcm_jack_stop() but
snd_pcm_jack_stop() should not be called by the JACK thread.
It should only be called by the thread how has called
snd_pcm_jack_start().

In addition the execution of snd_pcm_avail_update() can take a while.
Therefore it should not be called by the JACK thread to not block this
thread.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
jack/pcm_jack.c