Sound on an iBook?

Christof Petig christof.petig at wtal.de
Tue Dec 12 19:06:26 EST 2000


Benjamin Herrenschmidt wrote:

> No you can't. Darwin is using a different licence that is not compatible
> with the GPL. You can "use" the Apple code as a reference to how the
> hardware works, but you can't re-use it "as is".

Ok. Understood. I vaguely remember RMStallman warning of the apple source
license.
Another time to reimplement the wheel.

Here is a port of the unofficial hack to 2.4. It works well for me (booting via
OF without Apple OS).
Volume setting still needs to be resolved. I'll try it via linux' IIC layer.

Christof

-------------- next part --------------
--- dmasound_awacs.c.orig	Mon Dec 11 22:35:59 2000
+++ dmasound_awacs.c	Mon Dec 11 22:49:24 2000
@@ -1978,7 +1978,7 @@
 		 * with a child called "sound".
 		 */
 		struct device_node *sound;
-		np = find_devices("davbus");
+		np = find_devices("i2s-a");
 		sound = find_devices("sound");
 		if (sound != 0 && sound->parent == np) {
 			unsigned int *prop, l, i;
@@ -2029,8 +2029,9 @@
 		int vol;
 		dmasound.mach = machPMac;

-		awacs = (volatile struct awacs_regs *)
-			ioremap(np->addrs[0].address, 0x80);
+		/* awacs = (volatile struct awacs_regs *)
+			ioremap(np->addrs[0].address, 0x80); */
+		awacs = kmalloc(sizeof(struct awacs_regs),GFP_KERNEL);
 		awacs_txdma = (volatile struct dbdma_regs *)
 			ioremap(np->addrs[1].address, 0x100);
 		awacs_rxdma = (volatile struct dbdma_regs *)


More information about the Linuxppc-dev mailing list