]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Move jack_activate() and jack_connect() to snd_pcm_jack_prepare()
authorLaxmi Devi <Laxmi.Devi@in.bosch.com>
Fri, 21 Dec 2018 09:29:42 +0000 (10:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Jan 2019 11:35:44 +0000 (12:35 +0100)
commit12851d1ca1affcedcb22983fbfb6229175adb7c5
treeb5abc2636a22a9500cfc75892fc75c356b25f9ae
parente0e8031ab2675beb05aab5c82442ae7bc7a00545
jack: Move jack_activate() and jack_connect() to snd_pcm_jack_prepare()

Since the processing of jack_activate() and jack_connect() take a while
longer, snd_pcm_jack_start() was blocked.
Consider a usecase of reading the data from capture device and
writing to a playback device, since the capture device is
already started and the starting of playback device is blocked,
it leads to XRUNs for capture device.
Therefore these calls are moved to snd_pcm_jack_prepare(),
So that the capture and playback devices can be prepared in advance so
that starting of the device doesn't take too long.

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