Re: [linux-audio-user] jack things please

From: Brian Dunn <job17and9@email-addr-hidden>
Date: Mon Dec 11 2006 - 20:12:12 EET

Marc-Olivier Barre wrote:
> On 12/9/06, we are <gateswideopen@email-addr-hidden> wrote:
>>
>> > #!/bin/bash
>> >
>> > if [ -e /proc/asound/$HDSP ]; then
>> > qjackctl --preset=$HDSP
>> > else
>> > quackctl --preset=$ICH
>> >
>> > fi
>>
>> Yep,
>> thats exactly what i need. problem solved!
>>
>> thanks.
>>
>> tom.
>>
>
> To make it clear for users who have other types of cards, a generic syntax
> could be :
>
> #!/bin/bash
>
> if [ -e /proc/asound/$MY_REMOVABLE_CARD ]; then
> qjackctl --preset=$MY_REMOVABLE_CARD
> else
> quackctl --preset=$MY_DEFAULT_INTERNAL_CARD
> fi
>
> This is just what I needed to run jackd as a start up daemon...
> __________________
> Marc-Olivier Barre,
> Markinoko.
>
Cool, I'm glad that worked out for you. Just as a note, checking for a
file in proc will probably only work if your system loads the modules
for you automatically when you plug in your removable card. If you have
compiled the alsa module for your external card into your kernel, or if
the module must be loaded by hand, a different approach may be necessary.
(something like greping the output of lspci to check if your card is there.)
/brian
Received on Tue Dec 12 00:15:58 2006

This archive was generated by hypermail 2.1.8 : Tue Dec 12 2006 - 00:15:58 EET