Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261547
b: refs/heads/master
c: 709d920
h: refs/heads/master
i:
  261545: 185e052
  261543: 3c93406
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 1d8d9a7 commit c6a543e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 16b2dc2a8b44ec796791af9f69cce22f7cde0410
refs/heads/master: 709d92083af0b0529f6e1d11d17718c9a1da8f01
12 changes: 12 additions & 0 deletions trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate.
}

if (num > i + 1 && (msg[i+1].flags & I2C_M_RD)) {
if (msg[i].len > 3 || msg[i+1].len > 61) {
ret = -EOPNOTSUPP;
goto error;
}
if (msg[i].addr ==
af9015_af9013_config[0].demod_address)
req.cmd = READ_MEMORY;
Expand All @@ -306,6 +310,10 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate.
ret = af9015_ctrl_msg(d, &req);
i += 2;
} else if (msg[i].flags & I2C_M_RD) {
if (msg[i].len > 61) {
ret = -EOPNOTSUPP;
goto error;
}
if (msg[i].addr ==
af9015_af9013_config[0].demod_address) {
ret = -EINVAL;
Expand All @@ -321,6 +329,10 @@ Due to that the only way to select correct tuner is use demodulator I2C-gate.
ret = af9015_ctrl_msg(d, &req);
i += 1;
} else {
if (msg[i].len > 21) {
ret = -EOPNOTSUPP;
goto error;
}
if (msg[i].addr ==
af9015_af9013_config[0].demod_address)
req.cmd = WRITE_MEMORY;
Expand Down

0 comments on commit c6a543e

Please sign in to comment.