Re: snd-aoa on PowerMac 8,2
Now the question why it doesn't respond... Maybe we have to set the
hw-reset before trying to find it? That's going to suck. Well, the
i2sbus could turn it on. Hrmm
Can you try the latest code?
Sure. Could you add the lines:
MODULE_ALIAS("sound-layout-86");
and
/* PowerMac8,2 */
{ .layout_id = 86, .codecs[0] = "onyx", .codecs[1] = "topaz" },
to your code? Unless there is a chance they are wrong. I got the 86 by doing
# hd /proc/device-tree/ht\@0\,f2000000/pci\@2/mac-io\@7/i2s\@0/i2s-a\@10000/sound/layout-id
00000000 00 00 00 56 |...V|
00000004
The result from the latest code:
Mar 30 19:36:43 mapache kernel: low_i2c:xfer() chan=11, addrdir=0x93, mode=4, subsize=1, subaddr=0x0, 2 bytes, bus /smu@0,0/smu-i2c-control@0/i2c-bus@b
Mar 30 19:36:46 mapache kernel: i2sbus: mapped i2s control registers
Mar 30 19:36:46 mapache kernel: i2sbus: control register contents:
Mar 30 19:36:46 mapache kernel: i2sbus: fcr0 = 0x8000056
Mar 30 19:36:46 mapache kernel: i2sbus: cell_control = 0x5b43b71a
Mar 30 19:36:46 mapache kernel: i2sbus: fcr2 = 0xe7030000
Mar 30 19:36:46 mapache kernel: i2sbus: fcr3 = 0x7200d607
Mar 30 19:36:46 mapache kernel: i2sbus: clock_control = 0x0
Mar 30 19:36:46 mapache kernel: i2sbus: found i2s controller
Mar 30 19:36:46 mapache kernel: ** pmf_call_one(/ht@0,f2000000/pci@2/mac-io@7/gpio@50/hw-reset@34/hw-reset) **
Mar 30 19:36:46 mapache kernel: Do write 0x07 to GPIO /ht@0,f2000000/pci@2/mac-io@7/gpio@50/hw-reset@34 (d000080080041084)
Mar 30 19:36:46 mapache kernel: ** pmf_call_one(/ht@0,f2000000/pci@2/mac-io@7/cell-enable) **
Mar 30 19:36:46 mapache kernel: ** pmf_call_one(/ht@0,f2000000/pci@2/mac-io@7/enable) **
Mar 30 19:36:46 mapache kernel: ** pmf_call_one(/ht@0,f2000000/pci@2/mac-io@7/clock-enable) **
Mar 30 19:36:46 mapache kernel: serial format: 0x41190000
Mar 30 19:36:46 mapache kernel: dws: 0x2000200
Mar 30 19:36:46 mapache kernel: snd-aoa-fabric-layout: found bus with layout 86(using)
Mar 30 19:36:46 mapache kernel: snd-aoa-codec-onyx: found k2-i2c, checking if onyx chip is on it
Mar 30 19:36:46 mapache kernel: low_i2c:xfer() chan=0, addrdir=0x47, mode=4, subsize=1, subaddr=0x43, 1 bytes, bus /ht@0,f2000000/pci@2/mac-io@7/i2c@18000
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_addr, isr: 6)
Mar 30 19:36:46 mapache kernel: low_i2c:KW: NAK on address
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 6)
Mar 30 19:36:46 mapache kernel: KW: wrong state. Got KW_I2C_IRQ_ADDR, state: state_stop (isr: 06)
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 4)
Mar 30 19:36:46 mapache kernel: low_i2c:xfer error -5
Mar 30 19:36:46 mapache kernel: snd-aoa-codec-onyx: failed to read control register
Mar 30 19:36:46 mapache kernel: low_i2c:xfer() chan=0, addrdir=0x47, mode=4, subsize=1, subaddr=0x43, 1 bytes, bus /ht@0,f2000000/pci@2/mac-io@7/i2c@18000
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_addr, isr: 6)
Mar 30 19:36:46 mapache kernel: low_i2c:KW: NAK on address
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 6)
Mar 30 19:36:46 mapache kernel: KW: wrong state. Got KW_I2C_IRQ_ADDR, state: state_stop (isr: 06)
Mar 30 19:36:46 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 4)
Mar 30 19:36:46 mapache kernel: low_i2c:xfer error -5
Mar 30 19:36:46 mapache kernel: snd-aoa-codec-onyx: failed to read control register
Mar 30 19:36:48 mapache kernel: low_i2c:xfer() chan=11, addrdir=0x93, mode=4, subsize=1, subaddr=0x0, 2 bytes, bus /smu@0,0/smu-i2c-control@0/i2c-bus@b
Reply to: