Hi, everyone,
has anyone done a writing to and reading from AIC33 inner regs test?
when I did this simple test as follows, I got a worng result.
The code I call at the end of aic33_i2c_init( ):
void test_rw(void)
{
u8 value=0x1f;
u8 result=0;
mdelay(1);
tlv320aic33_write_value(19,value);
aic33_i2c_read_reg(19,&result);
printk("result=%10x\n",result);
}
the result I get is always 0x78 , it is not the value I worte to it (0x1f).
the process I debug as follow,
msg->buf:data=0x13
,msg->addr=0x001b
dev->data=13
icdxrdata=0000
icdrrdata=00ff
icxsrdata=001f
icdrrdata=00ff
icpid1=0105
icpid2=0005
msg->buf:data=0x13
,msg->addr=0x001b
dev->data=13
icdxrdata=001f
icdrrdata=00ff
icxsrdata=0013
icdrrdata=00ff
icpid1=0105
icpid2=0005
msg->buf:data=0x13
,msg->addr=0x001b
dev->data=13
icdxrdata=0013
icdrrdata=0078
icxsrdata=0013
icdrrdata=0078
icpid1=0105
icpid2=0005
data=78
result=78
Could anyone give me a explanation and point out what I have done is wrong?
Thanks very much!
Yours,
Yvonne
---------------------------------
雅虎邮箱传递新年祝福,个性贺卡送亲朋! _______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source