Skip to contentSkip to conversation

BUG: Balance inverted on ppc with PowerMac DACA

DISCUSSION Applied Frank Murphy 2 participants 3 messages Aug 29, 2003 – Sep 2, 2003

lore
Share & tools
lore
#0 lore raw

I originally noticed this with ALSA 0.9.4, but it exists with ALSA 0.9.6 as well.

When playing sounds and adjusting the left/right balance, left is right and right is left. This is true in xmms as well as when using alsamixer.

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 should be able to do some testing, if needed.

Frank

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 9 lines · Frank Murphy
Quoted 3 lines · Frank Murphy

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 renamed from daca.c.dist +4 -4
@@ -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");  
Applied
#2 lore raw

At Mon, 1 Sep 2003 13:05:22 +0200,

Quoted 8 lines · Frank Murphy

[1 <text/plain; iso-8859-1 (7bit)>]

Quoted 5 lines · Frank Murphy
Quoted 3 lines · Frank Murphy

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

Quoted 7 lines
Quoted 4 lines

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.

applied to cvs.
thanks!

Takashi

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf