[PATCH 001a/001] snd-powermac: enable headphone detection on older kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So this is not for kernel tree, but alsa-driver.

Risto
From: Risto Suominen <Risto.Suominen@xxxxxxxxx>

Enable port change interrupt while initialising AWACS, Screamer, and
Burgundy chipsets. Older kernels.

Signed-off-by: Risto Suominen <Risto.Suominen@xxxxxxxxx>
---
Kernel version < 2.6.16

--- ppc/pmac_old.c.orig	2008-02-05 11:23:23.000000000 +0200
+++ ppc/pmac_old.c	2008-04-15 20:05:56.000000000 +0300
@@ -1258,9 +1258,9 @@ int __init snd_pmac_new(struct snd_card 
 
 	snd_pmac_sound_feature(chip, 1);
 
-	/* reset */
-	if (chip->model == PMAC_AWACS)
-		out_le32(&chip->awacs->control, 0x11);
+	/* reset & enable interrupts */
+	if (chip->model <= PMAC_BURGUNDY)
+		out_le32(&chip->awacs->control, chip->control_mask);
 
 	/* Powerbooks have odd ways of enabling inputs such as
 	   an expansion-bay CD or sound from an internal modem
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux