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

sound on PowerBook G4 and iBook G4



Hi,

for some time audio has been broken on my PowerPC laptops (a PowerBook G4 12" 
identified as PowerBook6,4 and an iBook G4 12" identified as PowerBook6,5).

After some trial and error I managed to get snd-aoa working for both of them 
with the attached patch against kernel 3.12-rc1.

I have no idea if the patch is correct at all, but I thought it might be 
useful for other people experiencing the same problem on their PowerBooks.

For some reason I had to add snd-aoa-i2sbus to /etc/modules to make sure the 
snd-aoa-* modules are loaded at startup.

greetings,
stefan
--- a/sound/aoa/fabrics/layout.c	2013-09-18 21:09:41.910672970 +0200
+++ b/sound/aoa/fabrics/layout.c	2013-09-18 23:23:58.230511273 +0200
@@ -113,6 +113,8 @@
 MODULE_ALIAS("aoa-device-id-14");
 MODULE_ALIAS("aoa-device-id-22");
 MODULE_ALIAS("aoa-device-id-35");
+MODULE_ALIAS("aoa-device-id-38");
+MODULE_ALIAS("aoa-device-id-40");
 MODULE_ALIAS("aoa-device-id-44");
 
 /* onyx with all but microphone connected */
@@ -362,7 +364,20 @@
 		.connections = tas_connections_nolineout,
 	  },
 	},
+	/* PowerBook6,4 */
+	{ .device_id = 40,
+	  .codecs[0] = {
+		.name = "tas",
+		.connections = tas_connections_all,
+	  },
+	},
 	/* PowerBook6,5 */
+	{ .device_id = 38,
+	  .codecs[0] = {
+		.name = "tas",
+		.connections = tas_connections_all,
+	  },
+	},
 	{ .device_id = 44,
 	  .codecs[0] = {
 		.name = "tas",
--- a/sound/aoa/soundbus/i2sbus/core.c	2013-09-18 20:24:03.962348741 +0200
+++ b/sound/aoa/soundbus/i2sbus/core.c	2013-09-18 23:34:41.934550116 +0200
@@ -201,7 +201,7 @@
 			 * so restrict to those we do handle for now.
 			 */
 			if (id && (*id == 22 || *id == 14 || *id == 35 ||
-				   *id == 44)) {
+				   *id == 44 || *id == 40 || *id == 38)) {
 				snprintf(dev->sound.modalias, 32,
 					 "aoa-device-id-%d", *id);
 				ok = 1;

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: