Subject: Sound and battery on powerbook
To: None <port-macppc@netbsd.org>
From: None <ehainry@free.fr>
List: port-macppc
Date: 01/09/2006 13:27:00
Dear NetBSD guys,

I just installed NetBSD-3.0 on a powerbook 12'' (from 2004, not the latest but the one just before). After some tries, I still cannot make it play sounds. I have included awacs, ki2c and snapper in the kernel, but I still get some "device not configured" errors.
Also, I am afraid that the battery is not well handled.


Excerpt from dmesg: 

NetBSD 3.0 (MILOSH) #1: Sat Jan  7 13:37:14 CET 2006
	root@haing4:/usr/src/sys/arch/macppc/compile/MILOSH
total memory = 768 MB
avail memory = 732 MB
mainbus0 (root)
cpu0 at mainbus0: 7447A (Revision 1.1), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,EICE,NAP,DPM,ICE,DCE,SGE,BTIC,FBIOB,ABE,BHT>
cpu0: 668.73 MHz, 512KB L2 cache
[...]
obio0 at pci1 dev 23 function 0: addr 0x80000000
[...]
awacs0 at obio0 offset 0x10000: irq 30,1,2
audio at awacs0 not configured
adb0 at obio0 offset 0x16000 irq 47: 3 targets
[..]
apm0 at adb0: battery flags 0x55, 0% charged
battery at obio0 offset 0x0 not configured
backlight at obio0 offset 0xf300 not configured
uhidev2: Apple Computer product 0x1000, rev 1.10/12.41, addr 2, iclass 3/1
[...]


What openfirmware says: 

0 > pwd /pci@f2000000/mac-io@17/i2c@18000/deq@6a ok
0 > .properties 
name                    deq
device_type             deq
reg                     0000006a  
i2c-address             0000006a 

[snip]

0 > pwd /pci@f2000000/mac-io@17/i2s@10000 ok
0 > ls 
ff973bb8: /i2s-a@10000
ff973ed0:   /sound        
ff9f2828: /i2s-b@11000
 ok

0 > dev i2s-a  ok
0 > .properties 
name                    i2s-a
device_type             soundbus
compatible              i2sbus
built-in                
reg                     00010000  00001000 
                        00008000  00000100 
                        00008100  00000100 
interrupts              0000001e 00000001 00000001 00000000 00000002 00000000 
interrupt-parent        ff96f960 
AAPL,requested-priorities 00000002 00000004 00000004 
AAPL,clock-id           69327330 69303435 69303439 69303138 
AAPL,clock-data         02b11000 0000003c 00003400 00000044 00004000 00000044 
                        00000400 00000044 00000004 69303439 6e756c6c 00000000 
                        02ee0000 0000003c 00003400 00000044 00004000 00000044 
                        00000200 00000044 00000002 69303435 6e756c6c 00000000 
                        01194000 0000003c 00003000 0000003c 00000400 00000044 
                        00004000 00000000 00000000 6e756c6c 6e756c6c 00000000 

 ok
0 > dev sound  ok
0 > .properties 
name                    pseudo-sound
 ok

[snip]

0 > pwd /pci@f2000000/mac-io@17/i2s@10000/i2s-b@11000 ok
0 > .properties 
name                    i2s-b
device_type             i2s-b
compatible              i2s-modem
built-in                
reg                     00011000  00001000 
                        00008200  00000100 
                        00008300  00000100 
interrupts              0000001f 00000001 00000003 00000000 00000004 00000000 
interrupt-parent        ff96f960 
sw-reset-enable         00000000 

 ok


Is there any hope that I could have sound on this machine?

Best regards, 
Emmanuel