ALSA: powermac - Correct lineout detection on PowerMac G4 DA
authorRisto Suominen <Risto.Suominen@gmail.com>
Thu, 21 Apr 2011 18:54:09 +0000 (21:54 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Apr 2011 11:21:01 +0000 (13:21 +0200)
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>
sound/ppc/tumbler.c

index 961d982976958aaaf0c4dae4906210ad3df0bfb4..9cea84c3e0c65e8d557618a4f82ecc2aa97d06db 100644 (file)
@@ -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 */