linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Sound on an iBook?
@ 2000-12-07 10:46 Christof Petig
  0 siblings, 0 replies; 7+ messages in thread
From: Christof Petig @ 2000-12-07 10:46 UTC (permalink / raw)
  To: linuxppc-dev


Hello,

I got no answer on the debian-ppc list, so I'll try here.

does anybody know a way to get the sound hardware on my iBook working?
Everything else is working fine.

Your's
   Christof

OF says:
# cat
/proc/device-tree/pci@f2000000/mac-io@17/i2s@10000/i2s-a@10000/sound/compatible

daca
# cat
/proc/device-tree/pci@f2000000/mac-io@17/i2s@10000/i2s-a@10000/soun/device_type

soundchip
# cat
/proc/device-tree/pci@f2000000/mac-io@17/i2s@10000/i2s-a@10000/sound/model

353S0228
# cat
/proc/device-tree/pci@f2000000/mac-io@17/i2s@10000/i2s-a@10000/so/sound-objects

feature index 0 model Proj8PowerControlfeature index 1 model
USBSubwooferfeature index 2 model NotifySSprocketsdetect AAPL,address
0x00000064 bit-mask 2 bit-match 2 device 2 index 0 model GPIODetect
registry-name extint-gpio12input icon-id -20183 index 0 name-id -20540
port-connection 2 port-type 0x6D6F646D zero-gain 0 model
NoRecordInputinput index 1 model NoInputoutput device-mask 2
device-match 0 icon-id -16563 index 0 name-id -20525 port-connection 1
port-type 0x6973706b model OutputPortoutput device-mask 2 device-match 2
icon-id -16563 index 1 name-id -20524 port-connection 2 port-type
0x6864706e model OutputPort

# od -tu2
/proc/device-tree/pci@f2000000/mac-io@17/i2s@10000/i2s-a@10000/sound/sample-rates

0000000     0     1 44100     0

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: AW: Sound on an iBook?
@ 2000-12-08 12:05 Iain Sandoe
  2000-12-08 15:01 ` Christof Petig
  0 siblings, 1 reply; 7+ messages in thread
From: Iain Sandoe @ 2000-12-08 12:05 UTC (permalink / raw)
  To: Michael Schmitz, Halfmann, Klaus; +Cc: 'Christof Petig', linuxppc-dev


duh! just read the whole thread...

[...]
> 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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: AW: Sound on an iBook?
  2000-12-08 12:05 AW: Sound on an iBook? Iain Sandoe
@ 2000-12-08 15:01 ` Christof Petig
       [not found]   ` <19341102094519.16548@192.168.1.2>
  0 siblings, 1 reply; 7+ messages in thread
From: Christof Petig @ 2000-12-08 15:01 UTC (permalink / raw)
  To: Iain Sandoe; +Cc: Michael Schmitz, Halfmann, Klaus, linuxppc-dev


Iain Sandoe wrote:

> duh! just read the whole thread...
>
> [...]
> > 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.

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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sound on an iBook?
       [not found]   ` <19341102094519.16548@192.168.1.2>
@ 2000-12-11  8:30     ` Christof Petig
  2000-12-11 10:46       ` Ethan Benson
  2000-12-11 12:58       ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 7+ messages in thread
From: Christof Petig @ 2000-12-11  8:30 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sound on an iBook?
  2000-12-11  8:30     ` Christof Petig
@ 2000-12-11 10:46       ` Ethan Benson
  2000-12-11 12:58       ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 7+ messages in thread
From: Ethan Benson @ 2000-12-11 10:46 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]

On Mon, Dec 11, 2000 at 09:30:49AM +0100, Christof Petig wrote:
> 
> Benjamin Herrenschmidt wrote:
> 
> > >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.
> >
> >   ------------------------------------------------------------------------
> >                   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.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

[-- Attachment #2: Type: application/pgp-signature, Size: 0 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sound on an iBook?
  2000-12-11  8:30     ` Christof Petig
  2000-12-11 10:46       ` Ethan Benson
@ 2000-12-11 12:58       ` Benjamin Herrenschmidt
  2000-12-12  8:06         ` Christof Petig
  1 sibling, 1 reply; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2000-12-11 12:58 UTC (permalink / raw)
  To: Christof Petig, linuxppc-dev


>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/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sound on an iBook?
  2000-12-11 12:58       ` Benjamin Herrenschmidt
@ 2000-12-12  8:06         ` Christof Petig
  0 siblings, 0 replies; 7+ messages in thread
From: Christof Petig @ 2000-12-12  8:06 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

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


[-- Attachment #2: iBook_Sound_2.4.diff --]
[-- Type: text/plain, Size: 794 bytes --]

--- 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 *)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-12-12  8:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-08 12:05 AW: Sound on an iBook? Iain Sandoe
2000-12-08 15:01 ` Christof Petig
     [not found]   ` <19341102094519.16548@192.168.1.2>
2000-12-11  8:30     ` Christof Petig
2000-12-11 10:46       ` Ethan Benson
2000-12-11 12:58       ` Benjamin Herrenschmidt
2000-12-12  8:06         ` Christof Petig
  -- strict thread matches above, loose matches on Subject: below --
2000-12-07 10:46 Christof Petig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).