Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56493 - alsa swaps channels sometimes
Summary: alsa swaps channels sometimes
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 14:55 UTC by P Nienaber
Modified: 2004-09-01 01:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description P Nienaber 2004-07-08 14:55:21 UTC
When hitting play near the beginning of a track, the track starts normally.  When hitting it partway through the track (tested with OSS output plugin, too, and it doesn't do this) it starts over but the channels are reversed.  And I thought I was going crazy not remembering which channel the intro solo in Ain't Talkin' 'Bout Love was on :/

Reproducible: Always
Steps to Reproduce:
1. start playing song w/ alsa output plugin
2. press x near the beginning of the song -- playback restarts normally
3. press x a minute or so into the track, channels are reversed. gah!

Actual Results:  
I thought I was going crazy.

Expected Results:  
left = left, right = right ;)

Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040605-r0,
2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 x86_64 5
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/s
hare/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aim alsa amd64 apm avi berkdb cddb cdr crypt cups dvd dvdr encode
fbcon flac foomaticdb gdbm gif gimpprint gpm gtk gtk2 imap imlib javascript jo
ystick jpeg kerberos libg++ libwww mad mikmod motif mozilla mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang s
pell ssl tcpd threads tiff truetype xml2 xmms xv xvid zlib ~arch"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-09 04:26:34 UTC
are other alsa applications affected by this channel reversal? What sound card do you have?

Can you please test this with a vanilla xmms (disable the gentoo xmms patches to xmms by editing the ebuild).
Comment 2 P Nienaber 2004-07-09 10:56:09 UTC
commented out all epatch* lines in the ebuild (1.2.10-r5 btw, should have said before -- interestingly enough I was able to compile fine w/o the gcc3.4 patch -- running 3.4.1 now).  did an emerge -v xmms, and the problem persists.

sound stuff:
-using 2.6.7-gentoo-r8 compiled-in snd_intel_8x0 driver
-AMD8111 southbridge w/ Analog Devices AD1981B chip

I'm not sure what else to test at the moment; it never does it when I just start a song, I have to hit play (or x) once it's already playing to reproduce this, so I'd [probably] need to find something that will let me quickly restart a stereo stream to ALSA -- suggestions?
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-07-09 11:30:39 UTC
note that many gcc 3.4 patches fix issues that only occur on x86
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-09 11:43:27 UTC
To make sure this is an xmms issue, can you try to produce this using zinf
Comment 5 P Nienaber 2004-07-09 12:43:15 UTC
broken zinf ebuild -- going to file that now and see if I can't work around it.
Comment 6 P Nienaber 2004-07-09 13:06:05 UTC
zinf does it too -- in fact the first time I played the track I've been using as a test, it started the opposite way from that in which xmms normally starts it. :/
Comment 7 P Nienaber 2004-07-09 13:09:23 UTC
just for completeness' sake, I went and tested with another MP3 (yeah, sloppy of me to have not done this before, but I've now confirmed that it happens with other tracks too).
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-09 16:59:09 UTC
alright, well it looks like it's probably a problem with your alsa drivers as I can't reproduce it with mine (emu10k1)... what version of the alsa drivers are you using?  can you try a different version
Comment 9 P Nienaber 2004-07-22 12:49:24 UTC
Just had Q3 do it, and Q3 uses OSS, afaik, soooooo... sounds like a bug in this specific driver most likely?
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-22 12:59:07 UTC
yeah... it is almost definitely a problem with your drivers... do you have a gentoo-x86 install you can test so we can determine if it is amd64 specific?  Either way, it's best to open up a bug report upstream on ALSA's website... let me know the bug number so I can track it.
Comment 11 P Nienaber 2004-07-22 13:12:27 UTC
unfortunately, no, and I don't have space until I get my replacement HDD back, which is now 3 weeks late :|  and off to alsa-project I go.
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-01 01:13:23 UTC
following the upstream bug...