Apple Tumbler and Snapper audio: looking for testers

Marco Trillo marcotrillo at gmail.com
Thu Oct 9 09:40:56 UTC 2008


Hi all,

I've implemented audio output for the "Tumbler" and "Snapper" Apple
I2S-based audio devices.

The machine I have is a eMac G4, but these devices are found on a lot
of G3 and G4 systems.
In particular, all iMac G4's, all eMacs, all iBook G4's and most of
PowerBook G4's have either "Tumbler" or "Snapper".

The following is a more detailed list. Anyone interested in testing
it?  Below is more information on how to obtain it.

Thanks a lot!

iMacs:
- "PowerMac4,2" iMac G4 (2002) [tumbler]
- "PowerMac4,5" iMac G4 17'' [tumbler]
- "PowerMac6,1" iMac G4 17'' (2003) [tumbler?]
- "PowerMac6,3" iMac G4 20'' (Nov 2003) [snapper?]

eMacs:
- "PowerMac4,4" eMac G4 (2002, 2003) [snapper]
- "PowerMac6,4" eMac G4 (2004, 2005) [snapper]

iBooks:
- "PowerBook4,1" iBook G3 (May 2001) [tumbler]
- "PowerBook4,2" iBook G3 [tumbler?]
- "PowerBook4,3" iBook G3 (2002, 2003) [tumbler]
- "PowerBook6,3" iBook G4 (2003) [snapper]
- "PowerBook6,5" iBook G4 (2004) [snapper]
- "PowerBook6,7" iBook G4 (2005) [snapper]

PowerMacs:
- "PowerMac3,4" PowerMac G4 "Digital audio" [tumbler]
- "PowerMac3,5" PowerMac G4 "QuickSilver" [tumbler]
- "PowerMac3,6" PowerMac G4 "Mirrored drive doors" [snapper]

PowerBooks:
- "PowerBook3,3" PowerBook G4 "Gigabit ethernet" [tumbler]
- "PowerBook3,4" PowerBook G4 "DVI" [snapper]
- "PowerBook3,5" PowerBook G4 [snapper]
- "PowerBook5,1" PowerBook G4 [snapper]
- "PowerBook5,2" PowerBook G4 [snapper]
- "PowerBook5,3" PowerBook G4 [snapper]
- "PowerBook5,4" PowerBook G4 [snapper]
- "PowerBook5,5" PowerBook G4 [snapper]
- "PowerBook5,6" PowerBook G4 [snapper]
- "PowerBook5,7" PowerBook G4 [snapper?]
- "PowerBook6,1" PowerBook G4 [snapper]
- "PowerBook6,2" PowerBook G4 [snapper]
- "PowerBook6,4" PowerBook G4 [snapper]
- "PowerBook6,7" PowerBook G4 [snapper]
- "PowerBook6,8" PowerBook G4 [snapper]

The driver can be obtained in the following tarball:
<http://www.telefonica.net/web2/marco2z/fbsd/aoa1.tgz>

It includes the "sound/" and "powermac/" subdirectories to include in
the kernel,  something like this:
$ cp -R sound/macio /usr/src/sys/dev/sound/macio
$ cp powermac/* /usr/src/sys/powerpc/powermac/

In addition, the "patches/" subdirectory contains the following patches:
 - macio.patch to apply in /usr/src/sys/powerpc/powermac
 - files.patch to apply in /usr/src/sys/conf
 - generic.patch to apply in /usr/src/sys/powerpc/conf, for the GENERIC kernel.

If you don't use the GENERIC kernel you can also enable it manually by
including the following lines:

device sound
device davbus
device i2s

And of course, some dmesg output from my machine. It's very verbose
due to debug being enabled:

pcm0: <i2s> mem 0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq
30,1,2,31,3,4 on macio0
interrupting at irq 1
pcm0: [ITHREAD]
GPIO <headphone-mute>: addr 0x6f
GPIO <amp-mute>: addr 0x70
GPIO <audio-hw-reset>: addr 0x75
interrupting at irq 61
pcm0: [ITHREAD]
GPIO <headphone-detect>: addr 0x67
enabled outputs: SPEAKER
resetting codec
[...]
kiic0: <Keywest I2C controller> mem 0x18000-0x18fff irq 26 on macio0
[...]
pcm0: codec: <snapper> at address 6Ah on kiic0

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/powerpc)
Installed devices:
pcm0: <i2s> at i2s [GIANT] (1p:1v/0r:0v channels default)


Thanks and regards!
Marco


More information about the freebsd-ppc mailing list