linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* AW: Sound on an iBook?
@ 2000-12-08  8:38 Halfmann, Klaus
  2000-12-08 11:35 ` Michael Schmitz
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Halfmann, Klaus @ 2000-12-08  8:38 UTC (permalink / raw)
  To: 'Christof Petig'; +Cc: linuxppc-dev


Christof Petig <mailto:christof.petig@wtal.de> wrote:
>
> 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.
>

The iBook has a different Hardware than all other Macs found so far.

There is an (unsupported, ugly ...) version of dmasound that
sometimes works on iBooks, but it provides no control of the
output, it just takes what OF or MacOS left behind. So using
such a Kernel/Module is a kind of russian roulette because it
will block forever when intializing fails.

This issue needs a good assembler-/Forth- Programmer that must
use MacsBug in MacOS or dissassemble the OF to find out whats
going on there. I'd really like to do that but that is nothing
I can do when going to work by train ....

              |          __    hasi@penguinppc.org
+--------+    |   |\  | |  \
| +----+ |    v   | \ | |__/   Klaus Halfmann
| |... | |   .^.  |  \| |      Kirchstraße 24a
| |..  | |  <   >      |       67691 Hochspeyer
| +----+ |   'v'       |
|_____==_|+==-------------==+  GERMANY
 |      | |   --__  __--    |
 +------+ +-------==--------+


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

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

* Re: AW: Sound on an iBook?
  2000-12-08  8:38 AW: Sound on an iBook? Halfmann, Klaus
@ 2000-12-08 11:35 ` Michael Schmitz
  2000-12-08 12:12 ` Benjamin Herrenschmidt
  2000-12-08 14:36 ` Christof Petig
  2 siblings, 0 replies; 11+ messages in thread
From: Michael Schmitz @ 2000-12-08 11:35 UTC (permalink / raw)
  To: Halfmann, Klaus; +Cc: 'Christof Petig', linuxppc-dev


> > 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.
> >
>
> The iBook has a different Hardware than all other Macs found so far.
[...]
> This issue needs a good assembler-/Forth- Programmer that must
> use MacsBug in MacOS or dissassemble the OF to find out whats
> going on there. I'd really like to do that but that is nothing
> I can do when going to work by train ....

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

	Michael


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

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

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


Hi All,

(Michael, this might not make to you... because of the dreaded ORBS
situation - which *still* hasn't been resolved after 4 months).

>> > 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.
>> >
>>
>> The iBook has a different Hardware than all other Macs found so far.
> [...]
>> This issue needs a good assembler-/Forth- Programmer that must
>> use MacsBug in MacOS or dissassemble the OF to find out whats
>> going on there. I'd really like to do that but that is nothing
>> I can do when going to work by train ....
>
> Christof could always resort to petitioning Apple to release the specs, or
> digging though Darwin source code to discover the secret.

There was a guy working on the iBook sound (which was why I'd left it alone
for now).  He said that it only took a couple of lines to get sound out...
although I suspect you'll have to rely on whatever settings MacOS last left
for it.... because...

The "problem" is that the mixer abstraction needs a re-write to talk to the
Micronas chip.

I've been (very) out of circulation and will be until Xmas or so... but if I
have a chance I'll see if I can find the relevant lines (IIRC it only
involves detecting the iBook in init and dealing with the register
assignments... but it's been a while since I looked).

Iain.

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

^ permalink raw reply	[flat|nested] 11+ 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; 11+ 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] 11+ messages in thread

* Re: AW: Sound on an iBook?
  2000-12-08  8:38 AW: Sound on an iBook? Halfmann, Klaus
  2000-12-08 11:35 ` Michael Schmitz
@ 2000-12-08 12:12 ` Benjamin Herrenschmidt
  2000-12-08 14:36 ` Christof Petig
  2 siblings, 0 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2000-12-08 12:12 UTC (permalink / raw)
  To: Halfmann, Klaus, linuxppc-dev


>This issue needs a good assembler-/Forth- Programmer that must
>use MacsBug in MacOS or dissassemble the OF to find out whats
>going on there. I'd really like to do that but that is nothing
>I can do when going to work by train ..

Well, the DACA chip itself seem to be a non-Apple thing, so doc
for it may be available. The issue is more to have an i2c driver
for KeyLargo.

I don't think hacking the forth code is the easiest solution for
that ;) It's probably a lot simpler to look at Darwin driver to
figure out how the chip works ;)

Ben.


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

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

* Re: AW: Sound on an iBook?
  2000-12-08  8:38 AW: Sound on an iBook? Halfmann, Klaus
  2000-12-08 11:35 ` Michael Schmitz
  2000-12-08 12:12 ` Benjamin Herrenschmidt
@ 2000-12-08 14:36 ` Christof Petig
  2 siblings, 0 replies; 11+ messages in thread
From: Christof Petig @ 2000-12-08 14:36 UTC (permalink / raw)
  To: Halfmann, Klaus; +Cc: linuxppc-dev


"Halfmann, Klaus" wrote:

> Christof Petig <mailto:christof.petig@wtal.de> wrote:
> >
> > 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.
> >
>
> The iBook has a different Hardware than all other Macs found so far.

Yes, this validates my suspicions.

> There is an (unsupported, ugly ...) version of dmasound that
> sometimes works on iBooks, but it provides no control of the
> output,

read: no volume control, no frequency change? That is not nice but
acceptable.

> it just takes what OF or MacOS left behind. So using
> such a Kernel/Module is a kind of russian roulette because it
> will block forever when intializing fails.

I would love/dare to try it.

> This issue needs a good assembler-/Forth- Programmer that must
> use MacsBug in MacOS or dissassemble the OF to find out whats
> going on there.

Oh no, that sounds really bad. No specs available, no darwin driver?

> I'd really like to do that but that is nothing
> I can do when going to work by train ....

Hmm. It reads like a joke. But I love to work on my computer in a train.

I would offer some time but I don't know any PPC assembly. C and
Linux-kernel are no strangers to me.

Christof


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

^ permalink raw reply	[flat|nested] 11+ 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, 0 replies; 11+ 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] 11+ messages in thread

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


Christof Petig wrote:

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

thanks for the update.

> Thank you very much for this information!

OK.  I think my first reply may have gone astray (it never showed up here
anyway)...

This is what I (think) I know about the "problem".

1/  The output uses dmdma same as the other chips - so fixing up init() to
recognise the iBook and do the necessary register assignments from the OF
tree should be an OK solution (i.e. no more ugly than any other version of
the dmasound driver)... except for:

2/  There is *no* mixer abstraction - because the chip is driven through i2c
(like the sound control chip on the G3/beige - which I *have* played with -
unfortunately a different i2c bus).  Which is why you get whatever OF
leaves..

I suspect that 'freezing' has got nothing to do with the chip per se... but
probably more to do with invalid mixer abstraction code being called.

========

So you will need to:

Fix up the init code - and maybe the register map. although I suspect this
has been done in the hack to which Klaus referred.. don't know which hack
(it's not in mine ;-).

write a mixer abstraction modelled on the ones for awacs and burgundy.  A
little nasty 'cos the code has evolved into something with many arms... ;-)

also there are many bodges to represent the Apple hardware under OSS - which
doesn't really have the API for the resources...  I have an idea to address
this as well - but it will have to wait for a few more weeks.

I have a request...

when I get back on line with the dmasound driver (expect Jan 01) I want to
continue with a code tidy - basically partitioning the source so that one
chip set is dealt with in one file (leaving the common dbdma abstraction
aside).

There are many issues (not least of which is maintaining a common base
across the 68k stuff as well) to address in this split-up but I think it's
long overdue.

So, if you have a go (and think there *are* some bits of useful code in
Darwin)... it would help me if the daca-specific mixer abstraction was
clearly separated from the other stuff.  (better still in a separate source
file from the start ;-)

thanks,
Iain.


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

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

* Re: AW: Sound on an iBook?
@ 2000-12-08 17:19 D.J. Barrow
  0 siblings, 0 replies; 11+ messages in thread
From: D.J. Barrow @ 2000-12-08 17:19 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Michael Schmitz, Halfmann, Klaus, linuxppc-dev

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1798 bytes --]


No I2C is as old as the hills, I2C is a philips serial
bus standard for talking to upto 256 devices on the
one two wire bus. It is pretty crappy simple & slow &
philips generally used it to talk to digital tuners on
radios.


It is also commonly used in embedded stuff, I wrote a
driver for apples tv tuner card on a performa 630 when
I was working for them.

I didn't talk i2c directly but talked to the cuda
manager on the mac os, however, I made a fake i2c bus
via 2 pins on the paralell port of a pc.

If you want to know more about this look for specs on
the cuda chip if you can find them. However I suspect
a
few things have changed since I did my stuff since
Apple loves moving asics around to keep chip designers
mentally masturbating :-).

--- Christof Petig <christof.petig@wtal.de> wrote:
>
> 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
>
>
>


=====
D.J. Barrow Linux for S/390 kernel developer
eMail: djbarrow@de.ibm.com,barrow_dj@yahoo.com
Phone: +49-(0)7031-16-2583
IBM Germany Lab, Schönaicherstr. 220, 71032 Böblingen


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

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

* Re: AW: Sound on an iBook?
@ 2000-12-08 19:34 Iain Sandoe
  2000-12-12 19:01 ` Michel Lanners
  0 siblings, 1 reply; 11+ messages in thread
From: Iain Sandoe @ 2000-12-08 19:34 UTC (permalink / raw)
  To: D.J. Barrow, linuxppc-dev; +Cc: Michael Schmitz, Halfmann, Klaus, linuxppc-dev


D.J. Barrow wrote:

> No I2C is as old as the hills, I2C is a philips serial
> bus standard for talking to upto 256 devices on the
> one two wire bus. It is pretty crappy simple & slow &
> philips generally used it to talk to digital tuners on
> radios.

well, there are other versions faster and with bigger address ranges... but
that wasn't my point.

we are all quite familiar with i2c.

the new thing here is the particular Apple hardware, registers etc. used to
implement the bus interface... another set of stuff we may have to deduce
the hard way.

it's not the cuda - the iBook doesn't have a cuda - AFAIK.  (PMU, I expect).

and... actually, I think the asics are more there to keep costs down... but
each to his own ;-)


Iain.

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

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

* Re: AW: Sound on an iBook?
  2000-12-08 19:34 Iain Sandoe
@ 2000-12-12 19:01 ` Michel Lanners
  0 siblings, 0 replies; 11+ messages in thread
From: Michel Lanners @ 2000-12-12 19:01 UTC (permalink / raw)
  To: iain; +Cc: barrow_dj, linuxppc-dev, schmitz, khalfmann


Hi all,

On   8 Dec, this message from Iain Sandoe echoed through cyberspace:
> we are all quite familiar with i2c.
>
> the new thing here is the particular Apple hardware, registers etc. used to
> implement the bus interface... another set of stuff we may have to deduce
> the hard way.
>
> it's not the cuda - the iBook doesn't have a cuda - AFAIK.  (PMU, I expect).

You might want to look for the aproach Apple used when implementing I2C
in the planb ASIC (that was in the 7500/8500 machines, back around
'94-'95). This I2C interface talks to a single chip on the bus (the
SAA7196 video decoder), and it goes like this: write the target device
register subaddress into some register, wait a bit, write the data into
another register, and off it goes into the target device.

There is a third register that monitors the SAA7196's only readable
register, a status register.

FWIW, register address is at 0x200, data is at 0x204, and status at
0x208 into planb's address space.

Of course, KeyLargo might work in an entirely different way...

Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


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

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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-08  8:38 AW: Sound on an iBook? Halfmann, Klaus
2000-12-08 11:35 ` Michael Schmitz
2000-12-08 12:12 ` Benjamin Herrenschmidt
2000-12-08 14:36 ` Christof Petig
  -- strict thread matches above, loose matches on Subject: below --
2000-12-08 11:56 Iain Sandoe
2000-12-08 12:05 Iain Sandoe
2000-12-08 15:01 ` Christof Petig
2000-12-08 15:36 Iain Sandoe
2000-12-08 17:19 D.J. Barrow
2000-12-08 19:34 Iain Sandoe
2000-12-12 19:01 ` Michel Lanners

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