LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2007, 12:21 AM   #1
zxcvbs
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
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.

Last edited by zxcvbs; 05-12-2007 at 12:37 AM.
 
Old 05-12-2007, 11:35 AM   #2
zxcvbs
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
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?.
 
Old 05-12-2007, 09:40 PM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jack and realtime kernel problem kiwidoc66 Linux - Software 5 05-06-2007 08:11 PM
Kubuntu, Realtime Kernel and Jack, my road to misfortune in question form dahouse Linux - General 0 04-22-2007 11:06 PM
JACK audio in realtime mode ... not working :o( dreamtheater Mandriva 4 12-10-2005 05:02 AM
JACK realtime capabilities solar1951 Mandriva 2 10-07-2005 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration