Skip to contentSkip to conversation

Correct lineout detection on PowerMac G4 DA

PATCH In review Risto Suominen 2 participants 2 messages Apr 21, 2011 – Apr 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Correct lineout detection on PowerMac G4 DA

From: Risto Suominen <[email protected]>

Correct lineout (Pro Speaker) detection on PowerMac G4 Digital Audio (Tumbler).

---
Kernel version 2.6.32 (probably any 2.6), ALSA 1.0.23.

The patch is available here: too:
http://ristosu.wippiespace.com/pub/alsa-tumbler-1.0.23-p1.diff

alsa-kernel/ppc/tumbler.c renamed from alsa-kernel/ppc/tumbler.c.org +1 -1
@@ -1000,7 +1000,7 @@ static void device_change_handler(struct
 				   chip->lineout_sw_ctl);
 		if (mix->anded_reset)
 			msleep(10);
-		check_mute(chip, &mix->amp_mute, 1, mix->auto_mute_notify,
+		check_mute(chip, &mix->amp_mute, !IS_G4DA, mix->auto_mute_notify,
 			   chip->speaker_sw_ctl);
 	} else {
 		/* unmute speaker, mute others */
#1 lore raw

At Thu, 21 Apr 2011 21:54:09 +0300,

Quoted 6 lines · Risto Suominen

From: Risto Suominen <[email protected]>

Correct lineout (Pro Speaker) detection on PowerMac G4 Digital Audio (Tumbler).

Applied now. Thanks.

Takashi

Quoted 18 lines

---
Kernel version 2.6.32 (probably any 2.6), ALSA 1.0.23.

The patch is available here: too:
http://ristosu.wippiespace.com/pub/alsa-tumbler-1.0.23-p1.diff

alsa-kernel/ppc/tumbler.c renamed from alsa-kernel/ppc/tumbler.c.org +1 -1
@@ -1000,7 +1000,7 @@ static void device_change_handler(struct
 				   chip->lineout_sw_ctl);
 		if (mix->anded_reset)
 			msleep(10);
-		check_mute(chip, &mix->amp_mute, 1, mix->auto_mute_notify,
+		check_mute(chip, &mix->amp_mute, !IS_G4DA, mix->auto_mute_notify,
 			   chip->speaker_sw_ctl);
 	} else {
 		/* unmute speaker, mute others */