Re: jack things please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marc-Olivier Barre wrote:
> On 12/9/06, we are <gateswideopen@xxxxxxxxx> 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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux