~vcs-imports/alsa-plugins/trunk

Viewing all changes in revision 335.

  • Committer: Takashi Iwai
  • Author(s): Laxmi Devi
  • Date: 2019-01-08 11:35:44 UTC
  • Revision ID: git-v1:12851d1ca1affcedcb22983fbfb6229175adb7c5
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: