I know there are alot of people trying to get 5.1 surround sound to work in Ubuntu. It's actually pretty easy, but took me a long time to figure it out. Here are the specs for this guide.
1.) Your sound card has analog output
2.) It actually has a plug for front, rear, center/woof speakers (5.1 not 7.1 or anything else)
3.) You're using ALSA
**EDIT** I have confirmed that this method works in Hardy heron as well, so PulseAudio doesn't seem to cause any trouble with this method.
4.) You can get sound out of the card, just not surround sound
*********************The Hopeful Result**************************************
You'll have surround sound for your movies and any audio program that uses ALSA will out put stereo sound through all of your speakers with the woofer handling bass appropriately
I did read somewhere that ALSA can be made to output through pulse audio, but this is a straight up ALSA guide.
So, from a fresh install of 7.10, you'll have ALSA already installed. You just need to configure it.
Open a terminal and check if your sound card is detected
Note the name of your sound card. In my case, it was called "Audio"Code:asoundconf list
Then, set your sound card to be the default card for ALSA
Where "cardname is replaced with your cards name. So for me, I typed in "asoundconf set-default-card Audio"Code:asoundconf set-default-card cardname
Now, enter this to edit your ALSA config file
Whatever is in there, empty or not, paste this in at the bottomCode:sudo gedit ~/.asoundrc
That should do it for ya. It did for me on a fresh install. Now test your glorious sound! try out rhythmbox. you should get sound from all your speakers. Now, try watching a movie. I only use VLC, so I'll tell you how to get 5.1 in that. Make sure vlc is set to use ALSA and your soundcard in Edit>Preferneces. Then, play your movie, and once the movie is actually playing, select Audio>Audio Device>5.1pcm.!default {
type plug
slave.pcm "surround51"
slave.channels 6
route_policy duplicate
}
pcm.analog {
type plug
slave analog_slave;
}
pcm_slave.analog_slave {
pcm surround51;
format S32_LE;
}
Enjoy!



Adv Reply



Bookmarks