From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830 Date: Sun, 26 Feb 2006 07:22:20 +0100 Message-ID: <4bccb7f2c90ff66311158b42278c18c1@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 54635185 for ; Sun, 26 Feb 2006 07:22:20 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: Raymond Assigned To: mjander ====================================================================== Project: ALSA - driver Issue ID: 1726 Category: PCI - au88x0 Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Fedora Core 1 Kernel Version: 2.4.22-1.2199.nptl ====================================================================== Date Submitted: 01-08-2006 17:41 CET Last Modified: 02-26-2006 07:22 CET ====================================================================== Summary: Front and Rear channels swap after first play when playing Surround40 on au8830 Description: The front and rear channels are correct for playing Surround40 only at the first time after the driver is loaded. The front and rear channels (Surround40) always swapped afterward using speaker-test or xine. Playing stereo sound is OK. speaker-test -c4 -D hw:0,0 speaker-test 1.0.11rc2 Playback device is hw:0,0 Stream parameters are 48000Hz, S16_LE, 4 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 2 to 8192 Period size range from 1 to 512 Periods = 4 Buffer time size 2525 To choose buffer_size = 8192 To choose period_size = 2048 was set period_size = 512 was set buffer_size = 8192 0 - Front Left 1 - Front Right 3 - Rear Right 2 - Rear Left Time per period = 11.856821 0 - Front Left 1 - Front Right 3 - Rear Right 2 - Rear Left ====================================================================== ---------------------------------------------------------------------- Raymond - 02-17-06 06:09 ---------------------------------------------------------------------- Steps to reproduce the problem with alsa-1.0.11rc3 for au8830 (STAC9708) Immediately after the driver is loaded. 1) use alsamixer to turn "Sigmatel Surround Playback Switch" off, it mix the front and rear channels numid=19,iface=MIXER,name='Sigmatel Surround Playback Switch' ; type=BOOLEAN,access=rw---,values=1 : values=off 2) aplay -D hw:0,0 out1lq.wav ( you should hear the sound only from left speaker of out1 at first run ) 3) aplay -D hw:0,0 out1lq.wav ( Do the sound come out from left speaker of out2 with alsa-1.0.11rc3 on second/third/... run? ) Repeat the about test with out1rq.wav. out2lq.wav and out2rq.wav (you need to reload the driver in order to have the sound come out from correct speaker on step 2) MX300 Win9x can detect one/two jacks are plugged into out1 and out2 using GPIO, but other au8830 cannot detect. The only side effect of the au88x0_surround40.patch is the "vortex: IRQ fifo error" appear in the system log when play/capture sound which is not mono. https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1840 The "vortex: IRQ fifo error" only appear once in alsa-1.0.11rc3 ---------------------------------------------------------------------- ponchick - 02-26-06 07:22 ---------------------------------------------------------------------- I try to describe more cleanly: 1. Front/Rear swaps bug reproduced with any tool that use four channels including speaker-test, aplay, xine and mplayer. 2. au88x0_surround40.patch fix this issue completly 3. There is another similar issue when channels swap almost randomly (https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726#0008085). It's reproduced by speaker-test but I cannot reproduce it with at least aplay and mplayer. au88x0_surround40.patch does not affect the bug at all. If someone can reproduce it with any tool other than speaker-test I think there should be separate bug report. 4. This bug is fixed and could be closed. Issue History Date Modified Username Field Change ====================================================================== 01-08-06 17:41 Raymond New Issue 01-08-06 17:41 Raymond Distribution => Fedora Core 1 01-08-06 17:41 Raymond Kernel Version => 2.4.22-1.2199.nptl 01-27-06 16:45 Raymond File Added: au88x0_surround40.patch 02-04-06 06:26 Raymond Note Added: 0007912 02-10-06 05:36 ponchick Note Added: 0007987 02-10-06 06:32 Raymond Note Added: 0007991 02-10-06 10:50 ponchick Note Added: 0007998 02-10-06 11:25 Raymond Note Added: 0008000 02-10-06 13:49 Raymond Note Added: 0008003 02-10-06 13:56 Raymond Note Edited: 0008003 02-12-06 07:48 Raymond Note Edited: 0008003 02-12-06 10:12 Raymond Note Edited: 0008000 02-16-06 05:37 ponchick Note Added: 0008085 02-16-06 08:12 Raymond Note Added: 0008088 02-16-06 10:12 Raymond Note Added: 0008090 02-16-06 10:28 Raymond Note Edited: 0008090 02-16-06 16:07 Raymond Note Added: 0008097 02-17-06 03:35 ponchick Note Added: 0008104 02-17-06 04:28 Raymond Note Added: 0008105 02-17-06 04:35 Raymond Note Edited: 0008105 02-17-06 05:56 Raymond Note Edited: 0008105 02-17-06 06:09 Raymond Note Edited: 0008105 02-26-06 07:22 ponchick Note Added: 0008198 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642