All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-17  3:28 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-17  3:28 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-17-2006 04:28 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

======================================================================

----------------------------------------------------------------------
 ponchick - 02-17-06 03:35 
----------------------------------------------------------------------
I try aplay and cannot reproduce channel swapping. I think this doesn't
mean that bug is just in speaker-test. When I run speaker-test I interrupt
it with ^C. At this moment driver can be in some state that leads to
swapping channels on next run.
I believe this bugs could be closed. If someone can reproduce "random"
channel swapping in app other then speaker-test there should be separate
bugreport.
About resource exhausting - I post complete logs. Before is just
initializing logs, similar to
ACPI: PCI Interrupt 0000:04:01.0[A] -> GSI 19 (level, low) -> IRQ 225
Vortex: init.... <6>done.
Only interrupts and PCI address are differ. If you want more research I
think you should open new bug.
P.S. If you think that I should test another issues with au88x0 cards you
can mail me to lkabanov at mail dot ru.

----------------------------------------------------------------------
 Raymond - 02-17-06 04:28 
----------------------------------------------------------------------
Steps to reproduce the problem with alsa-1.0.11rc3 for au8830 (STAC9708)

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 run? )

There may be some difference in MX300, since Win9x can detect one/two
jacks are plugged into out1 and out2 using GPIO

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-04-28  3:27 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-04-28  3:27 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              04-28-2006 05:27 CEST
======================================================================
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 - 04-06-06 16:52 
----------------------------------------------------------------------
Using the graphic equalizer and the following plugin which route 2 channels
to 4-channels.

pcm.test {
    type plug
    slave {
        pcm "hw:0,0"
        channels 4
    }
    ttable.0.0 0.5
    ttable.0.1 1.0
    ttable.1.2 0.75
    ttable.1.3 0.25
}

The left peak is supposed to be always one half of the right peak.

aplay -D test stereo.wav
mplayer -ao alsa:device=test stereo.wav
 
left peak is 3 times of right peak indicates swap of front/rear channels

It's interesting that random swapping of channels can be reproduced by
speaker-test 

speaker-test -D test -c 2 -t sine

----------------------------------------------------------------------
 Raymond - 04-28-06 05:27 
----------------------------------------------------------------------
> When run speaker-test several times in a row it swaps channels in that
order:
> Front Left become Front Right
> Front Right become Rear Left
> Rear Right become Front Left
> Rear Left become Rear Right
> For reproduce this I just run "speaker-test -t wav -c4 -D hw:0,0" for 3
to 17 
> times in a row. On next run it restores channel order.

This seem to be an odd behaviour of speaker-test -t wav as described in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2026

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
03-03-06 09:19 Raymond        Note Edited: 0008334                         
03-24-06 14:57 Raymond        File Added: AU8830.conf                      
03-24-06 15:04 Raymond        Note Added: 0008918                          
03-31-06 10:22 Raymond        Note Added: 0009043                          
04-03-06 14:24 Raymond        Note Added: 0009096                          
04-06-06 16:52 Raymond        Note Added: 0009125                          
04-28-06 05:27 Raymond        Note Added: 0009538                          
======================================================================




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-04-06 14:52 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-04-06 14:52 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              04-06-2006 16:52 CEST
======================================================================
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 - 04-03-06 14:24 
----------------------------------------------------------------------
With respect to the change in speaker-test.c , the number of fifo error in
the system log seem to increase with the number of loops to test

-l,--nloops     specify number of loops to test, 0 = infinite


@@ -665,6 +664,7 @@
   double phase = 0;
   int    err, n;
 
+  snd_pcm_prepare(handle);
   if (test_type == TEST_WAV) {
     int bufsize = snd_pcm_frames_to_bytes(handle, period_size);
     n = 0;
@@ -674,6 +674,7 @@
 			      snd_pcm_bytes_to_frames(handle, err * channels))) < 0)
 	break;
     }
+    snd_pcm_drain(handle);
     return err;
   }

----------------------------------------------------------------------
 Raymond - 04-06-06 16:52 
----------------------------------------------------------------------
Using the graphic equalizer and the following plugin which route 2 channels
to 4-channels.

pcm.test {
    type plug
    slave {
        pcm "hw:0,0"
        channels 4
    }
    ttable.0.0 0.5
    ttable.0.1 1.0
    ttable.1.2 0.75
    ttable.1.3 0.25
}

The left peak is supposed to be always one half of the right peak.

aplay -D test stereo.wav
mplayer -ao alsa:device=test stereo.wav
 
left peak is 3 times of right peak indicates swap of front/rear channels

It's interesting that random swapping of channels can be reproduced by
speaker-test 

speaker-test -D test -c 2 -t sine

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
03-03-06 09:19 Raymond        Note Edited: 0008334                         
03-24-06 14:57 Raymond        File Added: AU8830.conf                      
03-24-06 15:04 Raymond        Note Added: 0008918                          
03-31-06 10:22 Raymond        Note Added: 0009043                          
04-03-06 14:24 Raymond        Note Added: 0009096                          
04-06-06 16:52 Raymond        Note Added: 0009125                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-04-03 12:24 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-04-03 12:24 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              04-03-2006 14:24 CEST
======================================================================
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 - 03-31-06 10:22 
----------------------------------------------------------------------
ponchick,

I have uploaded a diff(alsa-driver-1.0.11rc4) which implement the
"subdevice playback volume" in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1835 , this allow a true
"front" and
"rear" device for au8830 with 4-channels codec.

The following "front" device can only be used by au8830 with 4-channels
codec.

<confdir:pcm/front.conf>

AU8830.pcm.front.0 {
    @args [ CARD ]
    @args.CARD {
        type string
    }
    type hooks
    slave.pcm {
        type hw
        card $CARD
        device 0
    }
    hooks.0 {
        type ctl_elems
        hook_args [
            {
                interface PCM
                device 0
                name "Subdevice Playback Volume"
                index { @func private_pcm_subdevice }
                value [ 0 0 -64 -64 ]
            }
        ]
    }
} 

Please note that the modified "front" and "rear" device cannot be used
with your another au8830 with stereo codec

----------------------------------------------------------------------
 Raymond - 04-03-06 14:24 
----------------------------------------------------------------------
With respect to the change in speaker-test.c , the number of fifo error in
the system log seem to increase with the number of loops to test

-l,--nloops     specify number of loops to test, 0 = infinite


@@ -665,6 +664,7 @@
   double phase = 0;
   int    err, n;
 
+  snd_pcm_prepare(handle);
   if (test_type == TEST_WAV) {
     int bufsize = snd_pcm_frames_to_bytes(handle, period_size);
     n = 0;
@@ -674,6 +674,7 @@
 			      snd_pcm_bytes_to_frames(handle, err * channels))) < 0)
 	break;
     }
+    snd_pcm_drain(handle);
     return err;
   }

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
03-03-06 09:19 Raymond        Note Edited: 0008334                         
03-24-06 14:57 Raymond        File Added: AU8830.conf                      
03-24-06 15:04 Raymond        Note Added: 0008918                          
03-31-06 10:22 Raymond        Note Added: 0009043                          
04-03-06 14:24 Raymond        Note Added: 0009096                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-03-31  8:22 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-03-31  8:22 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              03-31-2006 10:22 CEST
======================================================================
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 - 03-24-06 15:04 
----------------------------------------------------------------------
I upload the au8830.conf which allow xine and cvs version of mplayer to
play surround51

----------------------------------------------------------------------
 Raymond - 03-31-06 10:22 
----------------------------------------------------------------------
ponchick,

I have uploaded a diff(alsa-driver-1.0.11rc4) which implement the
"subdevice playback volume" in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1835 , this allow a true
"front" and
"rear" device for au8830 with 4-channels codec.

The following "front" device can only be used by au8830 with 4-channels
codec.

<confdir:pcm/front.conf>

AU8830.pcm.front.0 {
    @args [ CARD ]
    @args.CARD {
        type string
    }
    type hooks
    slave.pcm {
        type hw
        card $CARD
        device 0
    }
    hooks.0 {
        type ctl_elems
        hook_args [
            {
                interface PCM
                device 0
                name "Subdevice Playback Volume"
                index { @func private_pcm_subdevice }
                value [ 0 0 -64 -64 ]
            }
        ]
    }
} 

Please note that the modified "front" and "rear" device cannot be used
with your another au8830 with stereo codec

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
03-03-06 09:19 Raymond        Note Edited: 0008334                         
03-24-06 14:57 Raymond        File Added: AU8830.conf                      
03-24-06 15:04 Raymond        Note Added: 0008918                          
03-31-06 10:22 Raymond        Note Added: 0009043                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-03-24 14:05 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-03-24 14:05 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              03-24-2006 15:04 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 - 03-03-06 09:19 
----------------------------------------------------------------------
As hook function is called when snd_xxx_pcm_open(), using hook and
subdevice volume control cannot provide a true "front" and "rear" device
since the hardware mixer is allocated at snd_xxx_hw_params() and
snd_pcm_get_channels_max() is still 4 not 2.



----------------------------------------------------------------------
 Raymond - 03-24-06 15:04 
----------------------------------------------------------------------
I upload the au8830.conf which allow xine and cvs version of mplayer to
play surround51

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
03-03-06 09:19 Raymond        Note Edited: 0008334                         
03-24-06 14:57 Raymond        File Added: AU8830.conf                      
03-24-06 15:04 Raymond        Note Added: 0008918                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-03-03  6:18 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-03-03  6:18 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              03-03-2006 07:18 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-28-06 04:42 
----------------------------------------------------------------------
xine seem to work but mplayer does not, center can be sent to device 2
instead of device 0

<confdir:pcm/surround51.conf>

AU8830.pcm.surround51.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type multi
	slaves [
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 4
		}
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 1
		}
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 1
		}
	]
	bindings [
		{ slave 0 channel 0 }
		{ slave 0 channel 1 }
		{ slave 0 channel 2 }
		{ slave 0 channel 3 }
		{ slave 1 channel 0 }
		{ slave 2 channel 0 }
	]
}

----------------------------------------------------------------------
 Raymond - 03-03-06 07:18 
----------------------------------------------------------------------
As hook function is called when snd_xxx_pcm_open(), using hook and
subdevice volume control cannot provide a true "front" and "rear" device
since the hardware mixer is allocated at snd_xxx_hw_params().

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
03-03-06 07:18 Raymond        Note Added: 0008334                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-28  3:42 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-28  3:42 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-28-2006 04:42 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-27-06 14:09 
----------------------------------------------------------------------
There is no way to play stereo sound to only rear speakers using the
existing driver.

   snd_pcm_open(handle,"rear",SND_PCM_STREAM_PLAYBACK,SND_PCM_NONBLOCK);




Index: alsa-lib/src/conf/cards/AU8830.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/cards/AU8830.conf,v
retrieving revision 1.2
diff -u -r1.2 AU8830.conf
--- alsa-lib/src/conf/cards/AU8830.conf	22 Feb 2005 20:23:20 -0000	1.2
+++ alsa-lib/src/conf/cards/AU8830.conf	14 Feb 2006 01:32:06 -0000
@@ -16,7 +16,15 @@
 
 <confdir:pcm/surround40.conf>
 
-AU8830.pcm.surround40.0 "cards.AU8830.pcm.front.0"
+AU8830.pcm.surround40.0 {
+	@args [ CARD ]
+	@args.CARD {
+		type string
+	}
+	type hw
+	card $CARD
+	device 0
+}	
 
 <confdir:pcm/iec958.conf>



We need 

AU8830.pcm.rear.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type hooks
	slave.pcm {
		type hw
		card $CARD
		device 0
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			{

----------------------------------------------------------------------
 Raymond - 02-28-06 04:42 
----------------------------------------------------------------------
xine seem to work but mplayer does not, center can be sent to device 2
instead of device 0

<confdir:pcm/surround51.conf>

AU8830.pcm.surround51.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type multi
	slaves [
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 4
		}
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 1
		}
		{
			pcm {
				@func concat
				strings [
					"cards.AU8830.pcm.surround40.0:CARD=" $CARD
				]
			}
			channels 1
		}
	]
	bindings [
		{ slave 0 channel 0 }
		{ slave 0 channel 1 }
		{ slave 0 channel 2 }
		{ slave 0 channel 3 }
		{ slave 1 channel 0 }
		{ slave 2 channel 0 }
	]
}

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
02-28-06 04:42 Raymond        Note Added: 0008239                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-27 13:09 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-27 13:09 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-27-2006 14:09 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

======================================================================

----------------------------------------------------------------------
 ponchick - 02-27-06 06:57 
----------------------------------------------------------------------
I don't understand what do you mean. Should I use patches from
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0001835
and then place this hook to my .asoundrc? If so what should I test?

----------------------------------------------------------------------
 Raymond - 02-27-06 14:09 
----------------------------------------------------------------------
There is no way to play stereo sound to only rear speakers using the
existing driver.

   snd_pcm_open(handle,"rear",SND_PCM_STREAM_PLAYBACK,SND_PCM_NONBLOCK);




Index: alsa-lib/src/conf/cards/AU8830.conf
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf/cards/AU8830.conf,v
retrieving revision 1.2
diff -u -r1.2 AU8830.conf
--- alsa-lib/src/conf/cards/AU8830.conf	22 Feb 2005 20:23:20 -0000	1.2
+++ alsa-lib/src/conf/cards/AU8830.conf	14 Feb 2006 01:32:06 -0000
@@ -16,7 +16,15 @@
 
 <confdir:pcm/surround40.conf>
 
-AU8830.pcm.surround40.0 "cards.AU8830.pcm.front.0"
+AU8830.pcm.surround40.0 {
+	@args [ CARD ]
+	@args.CARD {
+		type string
+	}
+	type hw
+	card $CARD
+	device 0
+}	
 
 <confdir:pcm/iec958.conf>



We need 

AU8830.pcm.rear.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type hooks
	slave.pcm {
		type hw
		card $CARD
		device 0
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			{

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
02-27-06 14:09 Raymond        Note Added: 0008222                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-27  5:57 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-27  5:57 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-27-2006 06:57 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-26-06 14:08 
----------------------------------------------------------------------
Is it feasible to use a hook in /usr/share/alsa/cards/AU8830.conf to
provide real "front" and "rear" devices using 
pcm volume control https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1835 ?


http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_hooks



      hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "Sigmatel Surround Playback Switch"
                                preserve true
                                lock true
                                optional true
                                value [ 0 ]
                        }
                        {
                                name "PCM Playback Volume"
                                index { @func private_pcm_subdevice }
                                lock true
                                value [ 0 0 -64 -64]
                        }
                ]
        }



----------------------------------------------------------------------
 ponchick - 02-27-06 06:57 
----------------------------------------------------------------------
I don't understand what do you mean. Should I use patches from
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0001835
and then place this hook to my .asoundrc? If so what should I test?

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
02-26-06 14:08 Raymond        Note Edited: 0008200                         
02-27-06 06:57 ponchick       Note Added: 0008216                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-26 12:28 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-26 12:28 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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 13:28 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

======================================================================

----------------------------------------------------------------------
 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.

----------------------------------------------------------------------
 Raymond - 02-26-06 13:28 
----------------------------------------------------------------------
Is it feasible to use the hook to provide real "front" and "rear" devices
using 
pcm volume control https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1835 ?


http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_hooks



      hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "Sigmatel Surround Playback Switch"
                                preserve true
                                lock true
                                optional true
                                value [ 0 ]
                        }
                        {
                                name "PCM Playback Volume"
                                index { @func private_pcm_subdevice }
                                lock true
                                value [ 0 0 -48 -48]
                        }
                ]
        }

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                          
02-26-06 13:28 Raymond        Note Added: 0008200                          
======================================================================




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-26  6:22 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-26  6:22 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-17  2:35 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-17  2:35 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-17-2006 03:35 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-16-06 16:07 
----------------------------------------------------------------------
When some of the critical component cannot be created by the driver.

vortex: FATAL: ResManager: resource type 3 exhausted will appear since
snd_vortex_dev_free() assume all component have been created.

http://lists.nongnu.org/archive/html/openvortex-dev/2005-09/msg00015.html

You need to post all the message in the system log

----------------------------------------------------------------------
 ponchick - 02-17-06 03:35 
----------------------------------------------------------------------
I try aplay and cannot reproduce channel swapping. I think this doesn't
mean that bug is just in speaker-test. When I run speaker-test I interrupt
it with ^C. At this moment driver can be in some state that leads to
swapping channels on next run.
I believe this bugs could be closed. If someone can reproduce "random"
channel swapping in app other then speaker-test there should be separate
bugreport.
About resource exhausting - I post complete logs. Before is just
initializing logs, similar to
ACPI: PCI Interrupt 0000:04:01.0[A] -> GSI 19 (level, low) -> IRQ 225
Vortex: init.... <6>done.
Only interrupts and PCI address are differ. If you want more research I
think you should open new bug.
P.S. If you think that I should test another issues with au88x0 cards you
can mail me to lkabanov at mail dot ru.

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-16 15:07 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-16 15:07 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-16-2006 16:07 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-16-06 10:28 
----------------------------------------------------------------------
There are only 16 SRC on au88x0, this means you can only play 4 instances
of surround40,  8 instances of stereo or 16 instances of mono.

vortex: FATAL: ResManager: resource type x exhausted

0 - dma
1 - src
2 - mixin
3 - mixout

It is quite strange that you get "vortex: FATAL: ResManager: resource type
3 exhausted" since mixout are pre allocated

The driver only dynamically enable the volume control between 32 mixin and
16 mixout on au8830. https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1835



----------------------------------------------------------------------
 Raymond - 02-16-06 16:07 
----------------------------------------------------------------------
When some of the critical component cannot be created by the driver.

vortex: FATAL: ResManager: resource type 3 exhausted will appear since
snd_vortex_dev_free() assume all component have been created.

http://lists.nongnu.org/archive/html/openvortex-dev/2005-09/msg00015.html

You need to post all the message in the system log

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-16  9:12 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-16  9:12 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-16-2006 10:12 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-16-06 08:12 
----------------------------------------------------------------------
To make sure that it is not a bug of speaker-test.

Please use the 4-channels out1lq.wav, out1rq.wav, out2lq.wav out2rq.wav
from MX300/Vortex2 driver CD.

aplay -D hw:0,0 out*q.wav

----------------------------------------------------------------------
 Raymond - 02-16-06 10:12 
----------------------------------------------------------------------
There are only 16 SRC on au88x0, this means you can only play 4 instances
of surround40,  8 instances of stereo or 16 instances of mono.

vortex: FATAL: ResManager: resource type x exhausted

0 - dma
1 - src
2 - mixin
3 - mixout

It is quite strange that you get "vortex: FATAL: ResManager: resource type
3 exhausted" since mixout are pre allocated

The driver only enable the 32 mixin and 16 mixout on au8830.

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-16  7:12 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-16  7:12 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-16-2006 08:12 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

======================================================================

----------------------------------------------------------------------
 ponchick - 02-16-06 05:37 
----------------------------------------------------------------------
I test this patch with 1.0.11rc3 on my Monster Sound 2. Without patch
channels swaps after first use. Patch fix this issue but there is another
one. When run speaker-test several times in a row it swaps channels in
that order:
Front Left become Front Right
Front Right become Rear Left
Rear Right become Front Left
Rear Left become Rear Right
For reproduce this I just run "speaker-test -t wav -c4 -D hw:0,0" for 3 to
17 times in a row. On next run it restores channel order. 

P.S. lspci -vvn of this card:
02:0a.0 0401: 12eb:0002 (rev fe)
        Subsystem: 1092:3003
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1000ns min, 3000ns max), Cache Line Size 04
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at fea80000 (32-bit, non-prefetchable)
[size=256K]
        Region 1: I/O ports at dff0 [size=8]
        Region 2: I/O ports at dfe0 [size=8]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

----------------------------------------------------------------------
 Raymond - 02-16-06 08:12 
----------------------------------------------------------------------
To make sure that it is not a bug of speaker-test.

Please use the 4-channels out1lq.wav, out1rq.wav, out2lq.wav out2rq.wav
from MX300/Vortex2 driver CD.

aplay -D hw:0,0 out*q.wav

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-16  4:37 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-16  4:37 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-16-2006 05:37 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-12-06 07:48 
----------------------------------------------------------------------
Just use alsa-1.0.11rc3 to test whether the swapping of front/rear occur is
due to bug in driver instead of different hardware revision as your au8830
chip is B0AAAA.
			
#ifdef CHIP_AU8830
    .channels_max = 4,
#else

speaker-test -t wav -D hw:0,0 -c 4

Do your hear the female voice "front left" and "front right" after the
driver is loaded ?

You will need to quit the speaker-test and run it again.

Do you hear the the female voice "rear left" and "rear right" ?



----------------------------------------------------------------------
 ponchick - 02-16-06 05:37 
----------------------------------------------------------------------
I test this patch with 1.0.11rc3 on my Monster Sound 2. Without patch
channels swaps after first use. Patch fix this issue but there is another
one. When run speaker-test several times in a row it swaps channels in
that order:
Front Left become Front Right
Front Right become Rear Left
Rear Right become Front Left
Rear Left become Rear Right
For reproduce this I just run "speaker-test -t wav -c4 -D hw:0,0" for 3 to
17 times in a row. On next run it restores channel order. 

P.S. lspci -vvn of this card:
02:0a.0 0401: 12eb:0002 (rev fe)
        Subsystem: 1092:3003
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1000ns min, 3000ns max), Cache Line Size 04
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at fea80000 (32-bit, non-prefetchable)
[size=256K]
        Region 1: I/O ports at dff0 [size=8]
        Region 2: I/O ports at dfe0 [size=8]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-10 12:49 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-10 12:49 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-10-2006 13:49 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-10-06 11:25 
----------------------------------------------------------------------
Refer to your photo, your au8830 has only 1 green jack and WM970x stereo
codec. 

http://www.dearhoney.idv.tw/museum/soundcard-07.php

Please try au88x0_pcm_channels.patch which fix the playback channels in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766 

May need to patch the driver to disable SPDIF (device 1) by checking the
PCI subsystem id for your au8830

----------------------------------------------------------------------
 Raymond - 02-10-06 13:49 
----------------------------------------------------------------------
Just use the cvs version without au88x0_surround40.patch to test whether
the swapping of front/rear occur in some or all au8830 chips as your
au8830 chip is B0AAAA.
			
#ifdef CHIP_AU8830
    .channels_max = 4,
#else

speaker-test -t wav -D hw:0,0 -c 4

Do your hear the female voice "front left" and "front right" after the
driver is loaded ?

You will need to quit the speaker-test and run it again.

Do you hear the the female voice "rear left" and "rear right" ?

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-10 10:25 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-10 10:25 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-10-2006 11:25 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

======================================================================

----------------------------------------------------------------------
 ponchick - 02-10-06 10:50 
----------------------------------------------------------------------
I see very little diffrece between peaks. First time front left/right
sounds a little louder (peaks are little higher) then on second run. Rear
channels always sounds almost equally on any run (peaks are same). 
At home I have another au8830 on 32-bit UP (no hyperthreading) pentium4
but it little outdated. Today I get up-to-date kernel, alsa-* and this
patch and try to play with it a little.

----------------------------------------------------------------------
 Raymond - 02-10-06 11:25 
----------------------------------------------------------------------
Refer to your photo, your au8830 has only 1 green jack and WM970x stereo
codec. 

http://www.dearhoney.idv.tw/museum/soundcard-07.php

Please try au88x0_pcm_channels.patch which fix the playback channels in
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1766 

May need to patch the driver to disable SPDIF (device 1) by checking the
PCI subsystem id for your au8830

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-10  9:50 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-10  9:50 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-10-2006 10:50 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-10-06 06:32 
----------------------------------------------------------------------
Since only the front channels are routed through the equalizer, you may use
the graphic equalizer in the vortex control panel to monitor the peak

http://alsa.opensrc.org/au88x0

----------------------------------------------------------------------
 ponchick - 02-10-06 10:50 
----------------------------------------------------------------------
I see very little diffrece between peaks. First time front left/right
sounds a little louder (peaks are little higher) then on second run. Rear
channels always sounds almost equally on any run (peaks are same). 
At home I have another au8830 on 32-bit UP (no hyperthreading) pentium4
but it little outdated. Today I get up-to-date kernel, alsa-* and this
patch and try to play with it a little.

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-10  5:32 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-10  5:32 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-10-2006 06:32 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

======================================================================

----------------------------------------------------------------------
 ponchick - 02-10-06 05:36 
----------------------------------------------------------------------
Very hard to check this with mono headphone but seems thats right. Tonight
I test it at home and if so I try this patch.

----------------------------------------------------------------------
 Raymond - 02-10-06 06:32 
----------------------------------------------------------------------
Since only the front channels are routed through the equalizer, you may use
the graphic equalizer in the vortex control panel to monitor the peak

http://alsa.opensrc.org/au88x0

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-10  4:36 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-10  4:36 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-10-2006 05:36 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-04-06 06:26 
----------------------------------------------------------------------
Would anyone has au8810, au8820 and au8830 sound card test this patch ?

----------------------------------------------------------------------
 ponchick - 02-10-06 05:36 
----------------------------------------------------------------------
Very hard to check this with mono headphone but seems thats right. Tonight
I test it at home and if so I try this patch.

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-02-04  5:26 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-02-04  5:26 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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-04-2006 06:26 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-04-06 06:26 
----------------------------------------------------------------------
Would anyone has au8810, au8820 and au8830 sound card test this patch ?

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                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830
@ 2006-01-08 16:41 bugtrack
  0 siblings, 0 replies; 24+ messages in thread
From: bugtrack @ 2006-01-08 16:41 UTC (permalink / raw)
  To: alsa-devel


The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1726> 
======================================================================
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:              01-08-2006 17:41 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

======================================================================

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
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

end of thread, other threads:[~2006-04-28  3:27 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17  3:28 [ALSA - driver 0001726]: Front and Rear channels swap after first play when playing Surround40 on au8830 bugtrack
  -- strict thread matches above, loose matches on Subject: below --
2006-04-28  3:27 bugtrack
2006-04-06 14:52 bugtrack
2006-04-03 12:24 bugtrack
2006-03-31  8:22 bugtrack
2006-03-24 14:05 bugtrack
2006-03-03  6:18 bugtrack
2006-02-28  3:42 bugtrack
2006-02-27 13:09 bugtrack
2006-02-27  5:57 bugtrack
2006-02-26 12:28 bugtrack
2006-02-26  6:22 bugtrack
2006-02-17  2:35 bugtrack
2006-02-16 15:07 bugtrack
2006-02-16  9:12 bugtrack
2006-02-16  7:12 bugtrack
2006-02-16  4:37 bugtrack
2006-02-10 12:49 bugtrack
2006-02-10 10:25 bugtrack
2006-02-10  9:50 bugtrack
2006-02-10  5:32 bugtrack
2006-02-10  4:36 bugtrack
2006-02-04  5:26 bugtrack
2006-01-08 16:41 bugtrack

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.