From: Risto Suominen <Risto.Suominen@gmail.com>
Date: Thu, 21 Apr 2011 18:54:09 +0000 (+0300)
Subject: ALSA: powermac - Correct lineout detection on PowerMac G4 DA
X-Git-Tag: firefly_0821_release~7613^2~1041^2~14^2~33
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=30282f96d1eef33be774d4ecf4bddba30a6152ec;p=firefly-linux-kernel-4.4.55.git

ALSA: powermac - Correct lineout detection on PowerMac G4 DA

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

Signed-off-by: Risto Suominen <Risto.Suominen@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---

diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c
index 961d98297695..9cea84c3e0c6 100644
--- a/sound/ppc/tumbler.c
+++ b/sound/ppc/tumbler.c
@@ -1000,7 +1000,7 @@ static void device_change_handler(struct work_struct *work)
 				   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 */