LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-07-2007, 08:59 AM   #1
conn-fused
Member
 
Registered: Jun 2004
Posts: 124

Rep: Reputation: 15
ALSA: How to reverse LFE and Center Channels (5.1 sound)


Using ALSA, how can I reverse the LFE and Center channels? I am using a 3 jack onboard sound system (VIA 8237 AC97), so both LFE and Center are being handled by what is normally the Mic jack. Unfortunately, what should be going to the centre speaker is going to LFE (and I presume the reverse is also true) when I run a command like:

Code:
mplayer -channels 6 -ao alsa:device=surround51 chan-id.ogg
The speakers I'm using (X-530s) are set up in such a way that I can't change the wires to reverse the sound (at least externally!), so I need a way to do it at a software level. I can't seem to find an appropriate, obvious option in kmixer or alsamixer, however. Nor in the aRts controls (I'm running KDE & arts on top of ALSA)

Thanks!

Last edited by conn-fused; 11-07-2007 at 09:10 AM.
 
Old 11-12-2007, 12:18 AM   #2
conn-fused
Member
 
Registered: Jun 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Solved.

Hi all,

Thanks for looking in on this thread. Although I still don't know why this soundcard and speaker set requires me to reverse the center and LFE channels, I've found a way to do it. Just make a ~/.asoundrc file like this:

Code:
pcm.surround51         pcm.surround51fix

pcm.surround51fix {
    type         route
    slave.pcm    "cards.pcm.surround51"
    ttable.0.0   1
    ttable.1.1   1
    ttable.2.2   1
    ttable.3.3   1
    ttable.4.5   1
    ttable.5.4   1
}
The first line aliases the surround51fix device to surround51, so that surround51fix is used whenever surround51 is called. The rest defines the routing and, as you can see, I've reversed 4 and 5, while leaving 0 through 3 alone.

There is a system wide equivalent to .asoundrc. I'm sure the changes could be put there if desired.

Hope that helps someone!
 
  


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
alsa 5.1 centre/LFE/rear channels mixing Feeg Linux - Hardware 1 06-01-2006 05:00 AM
missing sound channels, and i can't compile alsa superlisa Linux - Software 3 04-03-2006 04:01 PM
LFE through center speaker, Philips PSC605 (CM8738 Rev 10) DGrierson Linux - Hardware 3 01-29-2005 05:51 PM
Stereo sound on center speaker in xmms with alsa kule Linux - Software 0 06-16-2004 11:26 AM
ALSA drivers work well, sound channels mixed up (INTEL AD1981A ICH4) fritex Linux - Software 6 05-30-2003 08:59 PM

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

All times are GMT -5. The time now is 10:37 PM.

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