[linux-audio-dev] [PATCH] jack.plumbing should not die

From: Martin Habets <errandir_news@email-addr-hidden>
Date: Fri Feb 25 2005 - 09:47:23 EET

Sometimes jack fails to make a connection. jack.plumbing dies when this
happens. Quite inconvenient as I usually don't notice for a while, have
to figure out what happened and restart jack.plumbing.

There is no reason for jack.plumbing to die because of this. It can try
to connect again later, when hopefully it is allowed.
Patch #1 attached fixes this issue.

While I'm at it: I was getting sick and tired of seeing
Rule file not modified: '/etc/jack.plumbing'.
Rule file not modified: '/home/mhabets/.jack.plumbing'.
all the time in my logging window. So patch #2 removes this info.
It seems totally useless info to me anyway.

Hopefully you find these usefull. Below is some before and after data.

Thanks,
Martin Habets

---------------------------------------------------------------------------
Before:

Rule file not modified: '/etc/jack.plumbing'.
Rule file not modified: '/home/mhabets/.jack.plumbing'.
Rule file not modified: '/etc/jack.plumbing'.
Rule file not modified: '/home/mhabets/.jack.plumbing'.
Rule file not modified: '/etc/jack.plumbing'.
Rule file not modified: '/home/mhabets/.jack.plumbing'.

Rule file not modified: '/etc/jack.plumbing'.
Rule file not modified: '/home/mhabets/.jack.plumbing'.
Connect: 'sooperlooper_1:loop0_out_1' -> 'alsa_pcm:playback_1'.
cannot connect ports owned by inactive clients; "sooperlooper_1" is not active
jack_connect() failed: 'sooperlooper_1:loop0_out_1' -> 'alsa_pcm:playback_1'

jack.plumbing dies

After:

cannot connect ports owned by inactive clients; "jack_rack_5735" is not active
cannot connect ports owned by inactive clients; "jack_rack_5735" is not active
cannot connect ports owned by inactive clients; "jack_rack_5735" is not active
Connect: 'jack_rack_5735:out_1' -> 'alsa_pcm:playback_1'.
cannot connect ports owned by inactive clients; "jack_rack_5735" is not active
jack_connect() failed: 'jack_rack_5735:out_1' -> 'alsa_pcm:playback_1'
Connect: 'jack_rack_5735:out_2' -> 'alsa_pcm:playback_2'.
cannot connect ports owned by inactive clients; "jack_rack_5735" is not active
jack_connect() failed: 'jack_rack_5735:out_2' -> 'alsa_pcm:playback_2'

**** alsa_pcm: xrun of at least 18.475 msecs

**** alsa_pcm: xrun of at least 0.257 msecs

Connect: 'jack_rack_5735:out_1' -> 'alsa_pcm:playback_1'.
Connect: 'jack_rack_5735:out_2' -> 'alsa_pcm:playback_2'.

Received on Fri Feb 25 12:15:04 2005

This archive was generated by hypermail 2.1.8 : Fri Feb 25 2005 - 12:15:06 EET