Commit ea023df5 authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab

V4L/DVB (9797): Fix stv0299 support in dw2102 USB DVB-S/S2 driver

register 0x00 contains 0xa1 for STV0299 and STV0299B
register 0x00 might contain 0x80 when returning from standby
Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Acked-by: default avatarSergey Silkin <neovision@rambler.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a8782f66
...@@ -660,7 +660,7 @@ static int dw2102_load_firmware(struct usb_device *dev, ...@@ -660,7 +660,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
/* check STV0299 frontend */ /* check STV0299 frontend */
dw210x_op_rw(dev, 0xb5, 0, 0, &reset16[0], 2, dw210x_op_rw(dev, 0xb5, 0, 0, &reset16[0], 2,
DW210X_READ_MSG); DW210X_READ_MSG);
if (reset16[0] == 0xa1) { if ((reset16[0] == 0xa1) || (reset16[0] == 0x80)) {
dw2102_properties.i2c_algo = &dw2102_i2c_algo; dw2102_properties.i2c_algo = &dw2102_i2c_algo;
dw2102_properties.adapter->tuner_attach = &dw2102_tuner_attach; dw2102_properties.adapter->tuner_attach = &dw2102_tuner_attach;
break; break;
......
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