Commit b3e6a5af authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] anysee: fix multibyte I2C read

It can read more than one byte from I2C bus. Allow that.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7ea03d21
...@@ -166,7 +166,7 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, ...@@ -166,7 +166,7 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg,
buf[2] = msg[i].buf[0]; buf[2] = msg[i].buf[0];
buf[3] = 0x00; buf[3] = 0x00;
buf[4] = 0x00; buf[4] = 0x00;
buf[5] = 0x01; buf[5] = msg[i+1].len;
ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf, ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf,
msg[i+1].len); msg[i+1].len);
inc = 2; inc = 2;
......
...@@ -136,7 +136,7 @@ General reply packet(s) are always used if not own reply defined. ...@@ -136,7 +136,7 @@ General reply packet(s) are always used if not own reply defined.
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
| 04 | 0x00 | 04 | 0x00
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
| 05 | 0x01 | 05 | data length
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
| 06-59 | don't care | 06-59 | don't care
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment