Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] problems trying to set JACK & alsa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
straightlineapple
n00b
n00b


Joined: 17 Apr 2006
Posts: 43

PostPosted: Fri May 12, 2006 5:01 am    Post subject: [solved] problems trying to set JACK & alsa Reply with quote

on the last few days i've been trying to set JACK on my system so i could use programs like Ardour and Rosegarden,
following the Gentoo wiki guide.
i emerged everything i had to, checked that the kernel parts were properly compiled and edited the configuration files.
the first problem was that i couldn't start jack in realtime mode as a user, only as root. how can i fix this?
even with jack not running in realtime, i went to the next step and tried to play a file in aplay with the jack plugin.
then i got the following message:
Code:
cannot connect alsa-jack.jackP.20750.0:out_001
 to alsa_pcm:playback_2

and, on the jack output:
Code:

unknown destination port in attempted connection [alsa_pcm:playback_2]

my .asoundrc looks like this:
Code:

pcm.!default {
  type hw
  card 0
}

ctl.!default {
  type hw
  card 0
}

pcm.jackplug {
  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
  }
}

any idea about what is going on here?


Last edited by straightlineapple on Sun Jun 04, 2006 4:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
Coltie
Guru
Guru


Joined: 22 Apr 2005
Posts: 305
Location: N 46° 7' 26.7" E 7° 6' 11.2"

PostPosted: Fri May 12, 2006 9:25 am    Post subject: Reply with quote

Hi
Did you add your user to the audio group?
I got trouble for a while and I had to load the realtime module manually after the boot:

modprobe -r realtime
modprobe realtime gid=18

and then it works, at least for me. Hope this helps.
_________________
Unreleased Kollektiv
"If by noise you mean uncomfortable sound, then pop music is noise to me."
Masami Akita
Back to top
View user's profile Send private message
straightlineapple
n00b
n00b


Joined: 17 Apr 2006
Posts: 43

PostPosted: Fri May 12, 2006 3:02 pm    Post subject: Reply with quote

ok, now realtime works as user! but the strange thing is that the module was loaded already...
thanks anyway =D

however, i still can't use aplay with the jackplug...
Back to top
View user's profile Send private message
Coltie
Guru
Guru


Joined: 22 Apr 2005
Posts: 305
Location: N 46° 7' 26.7" E 7° 6' 11.2"

PostPosted: Sat May 13, 2006 12:07 am    Post subject: Reply with quote

straightlineapple wrote:
the strange thing is that the module was loaded already...
I had also really strange trouble. For a while I had to always load the realtime manually... :?
straightlineapple wrote:
however, i still can't use aplay with the jackplug...
Well, if Rosegarden and Ardour are doing the duty that you need, I think you shouldn't bother about aplay!? :wink:
_________________
Unreleased Kollektiv
"If by noise you mean uncomfortable sound, then pop music is noise to me."
Masami Akita
Back to top
View user's profile Send private message
straightlineapple
n00b
n00b


Joined: 17 Apr 2006
Posts: 43

PostPosted: Sun May 14, 2006 7:09 pm    Post subject: Reply with quote

well, ardour is working allright... but it is still complaining about the missing alsa_pcm:playback_2...
=P
Back to top
View user's profile Send private message
josh
Guru
Guru


Joined: 05 Feb 2003
Posts: 473
Location: Milky Way: Solar System: Earth: North America: USA: NY: Buffalo

PostPosted: Sat Jun 03, 2006 4:21 pm    Post subject: Reply with quote

jack can be a little tricky. It'll take a while to get your config just right. Saying that it can't find "playback_2" could mean that you have an ardour track that needs 2 outputs but your soundcard only has one or jack is only aware of one. qjackctl is your friend.

aplay probably isn't working because it is not a jack-aware app. There are apparently ways to get alsa/oss apps to connect to jack through alsa-jack, but I haven't figured it out yet.
_________________
-Josh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum