Commit 882b82ca authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] anysee: add support for two byte I2C address



After that Anysee I2C adapter is capable of one and two byte long
I2C addresses in case of read from I2C bus.

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e82eea79
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -186,8 +186,8 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg,
			buf[0] = CMD_I2C_READ;
			buf[0] = CMD_I2C_READ;
			buf[1] = (msg[i].addr << 1) | 0x01;
			buf[1] = (msg[i].addr << 1) | 0x01;
			buf[2] = msg[i].buf[0];
			buf[2] = msg[i].buf[0];
			buf[3] = 0x00;
			buf[3] = msg[i].buf[1];
			buf[4] = 0x00;
			buf[4] = msg[i].len-1;
			buf[5] = msg[i+1].len;
			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);