On Friday 29 August 2003 5:13, Frank Murphy wrote:
> On Friday 29 August 2003 4:55, Frank Murphy wrote:
> > I'm on Debain sid with default kernel-image-2.4.21-powerpc and alsa-base
> > (0.9.6-2), alsa-modules-2 (0.9.6-1), alsa-source (0.9.6-2), and
> > alsa-utils (0.9.6-1).
>
> I forgot to say that I'm on an original Apple iBook and the module that
> gets loaded is snd-powermac. In alsamixer, it says "PowerMac DACA".
>
> Frank

So, I've located and fixed the problem. Left channel should have been 0, not 
1. Patch attached. Please apply.

Frank
--- daca.c.dist	2003-09-01 13:01:57.000000000 +0200
+++ daca.c	2003-09-01 12:34:32.000000000 +0200
@@ -74,14 +74,14 @@
 	if (! mix->i2c.client)
 		return -ENODEV;
   
-	if (mix->right_vol > DACA_VOL_MAX)
+	if (mix->left_vol > DACA_VOL_MAX)
 		data[0] = DACA_VOL_MAX;
 	else
-		data[0] = mix->right_vol;
-	if (mix->left_vol > DACA_VOL_MAX)
+		data[0] = mix->left_vol;
+	if (mix->right_vol > DACA_VOL_MAX)
 		data[1] = DACA_VOL_MAX;
 	else
-		data[1] = mix->left_vol;
+		data[1] = mix->right_vol;
 	data[1] |= mix->deemphasis ? 0x40 : 0;
 	if (snd_pmac_keywest_write(&mix->i2c, DACA_REG_AVOL, 2, data) < 0) {
 		snd_printk("failed to set volume \n");  

Reply via email to