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

sound on pb5,8



Hi

I try to get sound support on my new powerbook 5,8 (Oct 2005, 15"). If I
add the layout-id of my sound chip in sound/ppc/pmac.c (see attached
patch). The beep starts working and I see 2 other outputs in alsamixer,
but they are muted and I can't increase their volumes. Any ideas what
needs to be fixed?

Gaudenz


diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c
index aa57170..a3e5298 100644
--- a/sound/ppc/pmac.c
+++ b/sound/ppc/pmac.c
@@ -983,6 +983,7 @@ static int __init snd_pmac_detect(struct
 			chip->control_mask = MASK_IEPC | 0x11;/* disable IEE */
 			break;
 		case 0x3a:
+		case 0x52:
 			chip->num_freqs = ARRAY_SIZE(tumbler_freqs);
 			chip->model = PMAC_TOONIE;
 			chip->can_byte_swap = 0; /* FIXME: check this */
diff --git a/sound/ppc/toonie.c b/sound/ppc/toonie.c
index 053b8f2..a126e06 100644
--- a/sound/ppc/toonie.c
+++ b/sound/ppc/toonie.c
@@ -33,7 +33,7 @@
 #include <asm/pmac_feature.h>
 #include "pmac.h"
 
-#undef DEBUG
+#define DEBUG
 
 #ifdef DEBUG
 #define DBG(fmt...) printk(fmt)
@@ -211,7 +211,7 @@ static void toonie_detect_handler(void *
 
 	headphone = toonie_detect_headphone(chip);
 
-	DBG("headphone: %d, lineout: %d\n", headphone, lineout);
+	DBG("headphone: %d", headphone);
 
 	if (headphone) {
 		/* unmute headphone/lineout & mute speaker */
-- 
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~



Reply to: