Skip to contentSkip to conversation

Sound on an iBook?

DISCUSSION Iain Sandoe 4 participants 6 messages Dec 8, 2000 – Dec 12, 2000 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

duh! just read the whole thread...

[...]

Quoted 2 lines

Christof could always resort to petitioning Apple to release the specs, or digging though Darwin source code to discover the secret.

the chip specs are freely available:

http://www.micronas.com/documentation/data_sheet/dac3550a_1ds.pdf

Ben H might know something about driving the iBook i2c busses - I think that they are the new Apple "cereal" style which are also present on the PCI host bridges... but not quite sure.

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 6 lines · Iain Sandoe

duh! just read the whole thread...

[...]

Quoted 2 lines

Christof could always resort to petitioning Apple to release the specs, or digging though Darwin source code to discover the secret.

Quoted 7 lines

the chip specs are freely available:

http://www.micronas.com/documentation/data_sheet/dac3550a_1ds.pdf

Ben H might know something about driving the iBook i2c busses - I think that they are the new Apple "cereal" style which are also present on the PCI host bridges... but not quite sure.

The link is dead, but
http://www.micronas.com/products/documentation/consumer/dac3550a/index.php
works for me well.

Thank you very much for this information!

Christof

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 12 lines · Benjamin Herrenschmidt
Quoted 5 lines

The link is dead, but
http://www.micronas.com/products/documentation/consumer/dac3550a/index.php
works for me well.

Thank you very much for this information!

Enclosed is Darwin's source for the audio and the I2C controller.

You'll notice that they have 2 copies of the I2C code (one in the audio driver itself and one separate). A quick look shows they are identical (or very similar), but you should diff them to be sure.

Quoted 6 lines

Ben.

------------------------------------------------------------------------
Name: Archive.sit
Archive.sit Type: Macintosh StuffIt Archive (application/x-stuffit)
Encoding: base64

Thank you very much!

Darwin is GPL, isn't it? So I can copy and modify the code for linux-kernel?

Christof

PS: I cc'd linuxppc to tell the public that I started hacking on it (in whatever free time is left to me).

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#4 lore raw
Quoted 17 lines · Christof Petig
Quoted 14 lines · Benjamin Herrenschmidt
Quoted 5 lines

The link is dead, but
http://www.micronas.com/products/documentation/consumer/dac3550a/index.php
works for me well.

Thank you very much for this information!

Enclosed is Darwin's source for the audio and the I2C controller.

You'll notice that they have 2 copies of the I2C code (one in the audio driver itself and one separate). A quick look shows they are identical (or very similar), but you should diff them to be sure.

Ben.

Quoted 8 lines
Quoted 4 lines

------------------------------------------------------------------------
Name: Archive.sit
Archive.sit Type: Macintosh StuffIt Archive (application/x-stuffit)
Encoding: base64

Thank you very much!

Darwin is GPL, isn't it? So I can copy and modify the code for linux-kernel?

it most certainly is not, Darwin is under a non-free licence known as the APSL. it is not compatible with the GPL and may not be used in any GPLed projects. it is not free software.

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/
#5 lore raw
In reply to Christof Petig
Quoted 8 lines

Thank you very much!

Darwin is GPL, isn't it? So I can copy and modify the code for linux-kernel?

Christof

PS: I cc'd linuxppc to tell the public that I started hacking on it (in

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".

ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
Quoted 3 lines · Benjamin Herrenschmidt

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

dmasound_awacs.c renamed from dmasound_awacs.c.orig +4 -3
@@ -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 *)