]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Fix hanging applications when using jack plugin
authorKevin Ross <kevin@familyross.net>
Thu, 4 Aug 2011 14:19:56 +0000 (16:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2011 14:33:37 +0000 (16:33 +0200)
commit21f66868d24e97930f826fb9970a9d1e4b144cf9
treea874fd4322c3540b8e2618072b6e80ccaf1e755d
parent440e79153ffd3b38ba5494f92c7ba7767cd590b3
jack: Fix hanging applications when using jack plugin

As described in issue #2727

   https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2727

applications hang after some seconds when using the jack plugin.

Kevin Ross <kevin@familyross.net> writes:

   The cause: The plugin creates a pipe, so that the fd's could be
   polled to indicate completion of a transfer.  However, the call to
   write() blocks when playing audio, as nothing actually reads from the
   pipe, and it fills up until it blocks.

   Making the socket non-blocking fixes the problem, and testing with
   playback and capture both work properly for me now.

[Adrian: I've also tested Kevin's patch and confirm it works.]

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
jack/pcm_jack.c