LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Alsa, Midi, realtime, and jack stuff. (https://www.linuxquestions.org/questions/linux-software-2/alsa-midi-realtime-and-jack-stuff-553305/)

zxcvbs 05-12-2007 12:21 AM

Alsa, Midi, realtime, and jack stuff.
 
Hi im trying to use jack with alsa. But I have several problems doing that.
Distro: Arch Linux 0.8 Voodoo
Kernel: (self make) 2.6.21.1
Sound Card: Sis 7012 AC97. (Intel 810)
Alsa: In kernel.
After activate Virtual Midi on my kernel config.
The virtual midi appears as first device (card 0).
And my sound card as second (card 1)

Now i am trying to configure jack through asound.conf to use card 1 but i dont know how to do it. Example:
Code:

pcm.!default {
                type plug
                slave { pcm "jack" }
        }

        pcm.jack {
                type jack
                playback_ports {
                        0 alsa_pcm:playback_1
                        1 alsa_pcm:playback_2
                }
                        capture_ports {
                        0 alsa_pcm:capture_1
                        1 alsa_pcm:capture_2
                }
        }

With this i am telling to alsa that the default pcm plug shall be pcm.jack. But how can i tell to pcm.jack to use the hw:1 (card 1).
I know that i can use jackd -D alsa hw:1 but i will like to use it that way. How can i map in asound jack to use my hw:1
Or how can i tell to linux to set my ac97 card as 0 device.
And the virtual midi as 1 device.

The other stuff. Is with realtime how can i activate this. The only way i have realtime is as root. But i have read that with realtime-lsm , i can give realtime privilegies to users groups. I am using arch linux and it says thar this realtime-lst thing is solved with pam 0.8< . I have it, and if i try to run jack viewing strace it try to use /tmp/jack-1000 (or something) but not /tmp/jack-0 the default as root or realtime, when i try to access it (through cd commands), it says permission dennied. So i cant sym link jack-1000 to jack-0.
How can i config realtime? i know the @audio stuff in /etc/security/limits.conf , but i dont know what to do.

Where can i find a good tutorial of asound.conf syntaxis. I saw http://www.alsa-project.org/alsa-doc...ml#pcm_plugins
but i was searching something more plugin specific, or for dummies to for less understand it well.

Add: My user is part of the audio group, i read something about rlimits with pam. that the only thing i have to do is to the @audio lines in /etc/security/limits.conf but just doesnt work. Do i need to patch my new kern 2.6.21.1 with old limit-lsm patchs for 2.6.18?.
In the kernel security options i dont have no options about realtime.
Really thanks.

zxcvbs 05-12-2007 11:35 AM

I solved the device 0 stuff. Setting virtual midi in kernel as module. But just to understand. How is the way to tell linux kernel through boot parameters to load first my sound card at "x" irq?
Example if i have Ac97 sound card at irq 11. How can i tell through boot params to set it as device 0.
The other thing is what have to tell in asound to link my pcm to use 1 device?.

studioj 05-12-2007 09:40 PM

no reason to turn on virtual midi -- it's ony for some oscure testing purposes.
so just undo that and soundcard will be back at 0


All times are GMT -5. The time now is 08:34 AM.