I guess that should relate the "base register" somehow. Maybe something like
ONYX_REG_BASE + 0
Then I could set my base register at 0x46 and the rest would work. Maybe.
No, you're confusing registers and i2c addresses :)
Ok, it was a wild guess actually, I don't have a clue. Thanks for the
explanation.
So this is the output with the latest code, I'll let you debug it :). I added
the port to the printk, just to check if both 0x46 and 0x47 were being tried.
Mar 30 16:33:03 mapache kernel: i2sbus: mapped i2s control registers
Mar 30 16:33:03 mapache kernel: i2sbus: control register contents:
Mar 30 16:33:03 mapache kernel: i2sbus: fcr0 = 0x8000056
Mar 30 16:33:03 mapache kernel: i2sbus: cell_control = 0x5b43b71a
Mar 30 16:33:03 mapache kernel: i2sbus: fcr2 = 0xe7030000
Mar 30 16:33:03 mapache kernel: i2sbus: fcr3 = 0x7200d607
Mar 30 16:33:03 mapache kernel: i2sbus: clock_control = 0x0
Mar 30 16:33:03 mapache kernel: i2sbus: found i2s controller
Mar 30 16:33:03 mapache kernel: ** pmf_call_one(/[EMAIL
PROTECTED],f2000000/[EMAIL PROTECTED]/[EMAIL PROTECTED]/cell-enable) **
Mar 30 16:33:03 mapache kernel: ** pmf_call_one(/[EMAIL
PROTECTED],f2000000/[EMAIL PROTECTED]/[EMAIL PROTECTED]/enable) **
Mar 30 16:33:03 mapache kernel: ** pmf_call_one(/[EMAIL
PROTECTED],f2000000/[EMAIL PROTECTED]/[EMAIL PROTECTED]/clock-enable) **
Mar 30 16:33:03 mapache kernel: serial format: 0x41190000
Mar 30 16:33:03 mapache kernel: dws: 0x2000200
Mar 30 16:33:03 mapache kernel: snd-aoa-fabric-layout: found bus with layout
86(using)
Mar 30 16:33:03 mapache kernel: snd-aoa-codec-onyx: found k2-i2c, checking if
onyx chip is on it (0x46)
Mar 30 16:33:03 mapache kernel: low_i2c:xfer() chan=0, addrdir=0x47, mode=4,
subsize=1, subaddr=0x43, 1 bytes, bus /[EMAIL PROTECTED],f2000000/[EMAIL
PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_addr, isr: 6)
Mar 30 16:33:03 mapache kernel: low_i2c:KW: NAK on address
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 6)
Mar 30 16:33:03 mapache kernel: KW: wrong state. Got KW_I2C_IRQ_ADDR, state:
state_stop (isr: 06)
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 4)
Mar 30 16:33:03 mapache kernel: low_i2c:xfer error -5
Mar 30 16:33:03 mapache kernel: snd-aoa-codec-onyx: failed to read control
register
Mar 30 16:33:03 mapache kernel: snd-aoa-codec-onyx: found k2-i2c, checking if
onyx chip is on it (0x47)
Mar 30 16:33:03 mapache kernel: low_i2c:xfer() chan=0, addrdir=0x47, mode=4,
subsize=1, subaddr=0x43, 1 bytes, bus /[EMAIL PROTECTED],f2000000/[EMAIL
PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_addr, isr: 6)
Mar 30 16:33:03 mapache kernel: low_i2c:KW: NAK on address
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 6)
Mar 30 16:33:03 mapache kernel: KW: wrong state. Got KW_I2C_IRQ_ADDR, state:
state_stop (isr: 06)
Mar 30 16:33:03 mapache kernel: low_i2c:kw_handle_interrupt(state_stop, isr: 4)
Mar 30 16:33:03 mapache kernel: low_i2c:xfer error -5
Mar 30 16:33:03 mapache kernel: snd-aoa-codec-onyx: failed to read control
register
When I download the modules I get the following error:
Mar 30 16:35:10 mapache kernel: freeing i2sbus device
Mar 30 16:35:10 mapache kernel: Trying to free nonexistent resource
<80000000-80000050>
Mar 30 16:35:10 mapache kernel: i2sbus control destroyed
Eduardo.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]