You are not logged in.
Pages: 1
I'm using mpd (Music Player Deamon) at the moment to listen to my music collection, and although ALSA works without a hitch, I wanted to have sound on all my speakers for normal stereo sources.
In my ~/.asoundrc file I added add the following (as per instruction on the ALSA website)
pcm.duplicate {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
After that I set the ALSA device used for mpd to duplicate.
For mpd it's in /etc/mpd.conf under the audio_ouput section.
I added
device "duplicate"
Although this works, it seems to mess up the hardware mixing on my sound card (an AC97 variant). If I use the normal "surround51″ device, all is well.
Any ideas how I, or if, I can solve this?
Offline
I'm using mpd (Music Player Deamon) at the moment to listen to my music collection, and although ALSA works without a hitch, I wanted to have sound on all my speakers for normal stereo sources.
In my ~/.asoundrc file I added add the following (as per instruction on the ALSA website)
pcm.duplicate { type plug slave.pcm "surround51" slave.channels 6 route_policy duplicate }
After that I set the ALSA device used for mpd to duplicate.
For mpd it's in /etc/mpd.conf under the audio_ouput section.
I addeddevice "duplicate"
Although this works, it seems to mess up the hardware mixing on my sound card (an AC97 variant). If I use the normal "surround51″ device, all is well.
Any ideas how I, or if, I can solve this?
Are you using VIA8237 chip? I got the problem too. The "surround" sound occupies hardware-mixing channels and mic/line-in ports.
You can solve the problem by using oss2jack. But surround sound would still disable mic/line-in.
Offline
Are you using VIA8237 chip? I got the problem too. The "surround" sound occupies hardware-mixing channels and mic/line-in ports.
You can solve the problem by using oss2jack. But surround sound would still disable mic/line-in.
Not sure of the exact revision, but it definitely is a VIA82xx chip. I thought it would be something along the line of all the channels being used.
Hmm, I don't mind having the mic/line-in disabled. I'll look into oss2jack.
Thanks!
Offline
I've found the solution. Thought I'd share.
First things first, make sure you have JACK installed. Then, edit your ~/.asoundrc file to look like this
ctl.jack51 {
type hw
card 0
}
pcm.jack51 {
# "asym" allows for different
# handling of in/out devices
type asym
playback.pcm {
# route for mmap workaround
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
capture.pcm {
# 2 channels only
type hw
card 0
}
}
Then, start JACK with
jackd -d alsa -d jack51
(Loading JACK at startup can be done in a variety of ways, depending on how you do things)
I had trouble starting it up as a regular user, but that can be fixed by editing /etc/security/limits.conf (as described in the wiki).
It's nice to have qjackctl installed to control JACK from your desktop environment.
pacman -S qjackctl
If your app supports JACK output, you're good to go! Simply set it to use JACK.
For MPD, I had to install the SVN 4125 trunk. Download the PKGBUILD and simply edit the version to the newest SVN build (check this on mpd's site). The 4125 release has support for JACK output.
Then, in /etc/mpd.conf, use this
audio_output {
type "jack"
name "mpd"
}
Et voila! Surround sound with mixing.
Offline
I have the same problem, my 5.1 system dosen't work. I have build and edit my ~/.asoundrc und run Jack as Compl33t said
jackd -d alsa -d jack51
I have open xmms and play some mp3's but i get no sound.
[My sound card: Soundstorm/Dolby Digital]
Offline
Pages: 1