Subject: Re: Snapper on spring 2005 PowerBooks
To: =?ISO-8859-1?Q?Johan_Wall=E9n?= <johan.wallen+lists@tkk.fi>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 09/12/2007 14:56:43
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 12, 2007, at 14:35, Johan Wall=E9n wrote:

> Michael Lorenz <macallan@netbsd.org> writes:
>
>> I guess you tried things like mpg123? In most newer Apple laptops the
>> CDROM has no analog audio connection to the sound chip so cdplay
>> doesn't produce any sound.
>
> No success with mpg123 either.

Thought so but had to be sure.

>> Besides that, please post your ofctl -p output so we know what exact
>> kind of hardware we're talking about.
>
> Ok.  Here is the output.

Let's see, the interesting stuff starts here:

> ff985d68: /pci@f2000000/mac-io@17/i2s@0/i2s-a@10000/sound
>
> built-in
> compatible              414f4162 61736500 ........ ........   =20
> "AOAbase"
> device_type             736f756e 64636869 7000.... ........   =20
> "soundchip"
> layout-id               00000046 ........ ........ ........   ...F
> name                    736f756e 6400.... ........ ........   "sound"
> object-model-version    00000002 ........ ........ ........   ....
> platform-tas-codec-ref  ff98cbc8 ........ ........ ........   ....
> vendor-id               0000106b ........ ........ ........   ...k

Hmm, doesn't claim to be a snapper.

> ff98cbc8: /pci@f2000000/mac-io@17/i2c@18000/i2c-bus@0/codec@6a
>
> built-in
> compatible              74617333 30303400 ........ ........   =20
> "tas3004"
>             0008:       636f6465 6300.... ........ ........   "codec"
>             000e:       00...... ........ ........ ........   ""
> device_type             636f6465 6300.... ........ ........   "codec"
> name                    636f6465 6300.... ........ ........   "codec"
> platform-do-tas-codec-ref
>                         ff985d68 08000000 00000027 ........   ..]=20
> h.......'
> reg                     0000006a ........ ........ ........   ...j

It is the right codec though, the i2s stuff is little more than a DMA =20=

backend so it /should/ work.

So, do you see periodic interrupts from when playing or recording =20
audio? Do you get noise when reading from /dev/audio? If you see =20
interrupts then at least the DMA is working.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBRug2a8pnzkX8Yg2nAQIIlwf+I1xf4WIj6mxg8krb9CkhKxpTmLJ4oZvt
QPVlBaGgYDzu4asqlNYstphkc636eHvUV24EOqAJUQF80XghVJCUW/58TIhRGN9+
2WN4BfzzEpC/zwBy2n07AbRielyAANcZJBK3qu634Wl2aAvyOYDMdyL+ItBNfopX
CPeeTdzXxhdUIiVGJo5JXPRViriMy0h5dtf9IMAmzeXf0bSmqpxGBgMPcPDx0/fG
EGTFhTPUYw5PG9/cCfDt2mi6dBhJakNw+igu9z1MlgSGuAJDfBu8K1QfIO/0frQk
3h6REw5U8WKv/YcYLxy2StbebZ3fTiVWq4YXv2KGiI25/ASu0pCv7w=3D=3D
=3Dmeef
-----END PGP SIGNATURE-----