PATCH: tiny enhancement to jack_lsp

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PATCH: tiny enhancement to jack_lsp

ken restivo-3
jack_lsp -c  is great for showing all connections, but I needed a way to to filter out just those that were connected to a particular device.

"grep -v" isn't sufficient when using "jack_lsp -c", because the connected devices aren't on the same line as what tey are connected to. So, rather than make the shell script really complicated, or the output of jack_lsp really ugly, I patched jack_lsp to add a "filter" feature.

I needed this so that I could write a shell script that does "jack_lsp -c alsa_pcm:playback_2" to get a list of everything that is connected to that port, and then it can jack_disconnect those (or some of those) and then jack_connect them to another device.

I doubt that anyone else would need this feature, but, just in case, here it is.

-ken

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel

jack-lsp-filter.patch (2K) Download Attachment
attachment1 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: tiny enhancement to jack_lsp

Jack O'Quin
On 10/14/07, Ken Restivo <[hidden email]> wrote:
> jack_lsp -c  is great for showing all connections, but I needed a way to to filter out just those that were connected to a particular device.
>
> "grep -v" isn't sufficient when using "jack_lsp -c", because the connected devices aren't on the same line as what tey are connected to. So, rather than make the shell script really complicated, or the output of jack_lsp really ugly, I patched jack_lsp to add a "filter" feature.
>
> I needed this so that I could write a shell script that does "jack_lsp -c alsa_pcm:playback_2" to get a list of everything that is connected to that port, and then it can jack_disconnect those (or some of those) and then jack_connect them to another device.
>
> I doubt that anyone else would need this feature, but, just in case, here it is.

It looks useful and reasonable to me.
--
 joq

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: tiny enhancement to jack_lsp

Pieter Palmers
Jack O'Quin wrote:

> On 10/14/07, Ken Restivo <[hidden email]> wrote:
>> jack_lsp -c  is great for showing all connections, but I needed a way to to filter out just those that were connected to a particular device.
>>
>> "grep -v" isn't sufficient when using "jack_lsp -c", because the connected devices aren't on the same line as what tey are connected to. So, rather than make the shell script really complicated, or the output of jack_lsp really ugly, I patched jack_lsp to add a "filter" feature.
>>
>> I needed this so that I could write a shell script that does "jack_lsp -c alsa_pcm:playback_2" to get a list of everything that is connected to that port, and then it can jack_disconnect those (or some of those) and then jack_connect them to another device.
>>
>> I doubt that anyone else would need this feature, but, just in case, here it is.
>
> It looks useful and reasonable to me.

No objections?

Pieter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel
Reply | Threaded
Open this post in threaded view
|

Re: PATCH: tiny enhancement to jack_lsp

Jack O'Quin
On Nov 21, 2007 5:18 AM, Pieter Palmers <[hidden email]> wrote:

>
> Jack O'Quin wrote:
> > On 10/14/07, Ken Restivo <[hidden email]> wrote:
> >> jack_lsp -c  is great for showing all connections, but I needed a way to to filter out just those that were connected to a particular device.
> >>
> >> "grep -v" isn't sufficient when using "jack_lsp -c", because the connected devices aren't on the same line as what tey are connected to. So, rather than make the shell script really complicated, or the output of jack_lsp really ugly, I patched jack_lsp to add a "filter" feature.
> >>
> >> I needed this so that I could write a shell script that does "jack_lsp -c alsa_pcm:playback_2" to get a list of everything that is connected to that port, and then it can jack_disconnect those (or some of those) and then jack_connect them to another device.
> >>
> >> I doubt that anyone else would need this feature, but, just in case, here it is.
> >
> > It looks useful and reasonable to me.
>
> No objections?

None from me.

Haven't heard from Paul, yet.
--
 joq

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jackit-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jackit-devel