All of lore.kernel.org
 help / color / mirror / Atom feed
* Long-standing 5.1ch huge LFE/rear swap annoyance (ALSA vs. Windows!)
@ 2006-11-18  1:38 Andreas Mohr
  2006-11-18  4:43 ` Daniel Yek
  2006-11-20 14:06 ` Clemens Ladisch
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Mohr @ 2006-11-18  1:38 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai

Hi,

as I'm trying to improve support for my el-cheapo USB audio adapter,
I found that one of the bigger issues is swapping of Center/LFE vs.
rear speakers, as can be seen when running

speaker-test -c 6 -D pcm.USBAudio

Having ALSA use different output assignment versus the printed labels
on the box is somewhat of a PITA, I'd say.

This doesn't only happen with my card, but with many many many many many
(yes, I did quite some research) other cards:

http://cvs.icculus.org/cvs/twilight/darkplaces/snd_main.c?rev=1.53
"// Our speaker layouts are based on ALSA. They differ from those
// Win32 and Mac OS X APIs use when there's more than 4 channels.
// (rear left + rear right, and front center + LFE are swapped).
"
(probably the most insightful comment on the entire web)

http://alsa.opensrc.org/SurroundSound
"Some of the six channel wave files that you can find on the web are in "wave
extensible" format, which have the interleaved channels in an order differing
from what Alsa expects (center and lfe come before left and right rear). It's a
MS thing. You can play those with sfplay, a simple command line player I
adapted from an example program in Erik de Castro Lopo's libsndfile
distribution. sfplay recognizes wave extensible files and flips the channel
order so they can be played using Alsa."
(second most insightful)

http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2003-June/019180.html
http://blog.gmane.org/gmane.linux.alsa.devel/month=20051101
http://www.mythtvtalk.com/forum/viewtopic.php?t=1858&view=previous
http://www.nvnews.net/vbulletin/showthread.php?t=62108
http://www.cse.ohio-state.edu/~bondhugu/alsamch.shtml
http://ubuntuforums.org/showthread.php?t=253725&page=5
etc.pp. ad nauseam.

(search bug tracking for "swap" for two tons more reports of swapped channels)

One could even be brave enough to ask "are there *any* 5.1 cards which
work correctly on ALSA??" ;), as such we should think hard about adding
generic support to compensate for this, *automatically*.

[yes, I know about asoundrc hackery to semi-easily get this tweaked]

My theory is that since wave extensible is an established format with different
channel ordering that some soundcards chose to use this swapped ordering
in hardware.
And ALSA didn't care much since it didn't want to have to expensively remix samples
into correct order?

But OTOH *if* the comment above is correct and ALSA *does* employ a modified channel
order vs. Windows and Mac OS X, then it seems as if it might be speaker-test which
*doesn't* obey this ALSA ordering??? But that could probably be checked by playing
some public surround .wav samples or DVD playback or so.

Could we please try to put an end to this insanity?

Is there anyone who has extensive experience with 5.1 surround channel ordering status
of many different soundcards on ALSA? How many "ok", how many swapped?

Oh, and if the answer is that I should try to fix this on a per-driver (per-card)
basis, then could anyone tell me where the heck I'd have to tweak snd-usb-audio
for correct channel order?

Rather confused,

Andreas Mohr (a non-Surround user who still cares as much as even writing this whole mail)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-21 10:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-18  1:38 Long-standing 5.1ch huge LFE/rear swap annoyance (ALSA vs. Windows!) Andreas Mohr
2006-11-18  4:43 ` Daniel Yek
2006-11-20 14:06 ` Clemens Ladisch
2006-11-20 14:31   ` Takashi Iwai
2006-11-20 19:51     ` Andreas Mohr
2006-11-20 19:55       ` Lee Revell
2006-11-21 10:21     ` Clemens Ladisch
2006-11-21 10:34       ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.