diff options
author | Igor M. Liplianin <liplianin@me.by> | 2011-02-25 16:41:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 19:32:26 -0400 |
commit | 5a530cbecaa5a21d185e0549ea9a866483661f6f (patch) | |
tree | c37866a3a0077f69821823f524984ce31ee4832a /drivers/media/dvb/dvb-usb/dw2102.c | |
parent | 52c506e09cd624cbf7d21d9c16283f3e8b32f4bc (diff) |
[media] dw2102: fix TeVii s660 remote control
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dw2102.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dw2102.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/dvb/dvb-usb/dw2102.c b/drivers/media/dvb/dvb-usb/dw2102.c index 0ab377e3d6f2..893149170faa 100644 --- a/drivers/media/dvb/dvb-usb/dw2102.c +++ b/drivers/media/dvb/dvb-usb/dw2102.c | |||
@@ -495,10 +495,10 @@ static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], | |||
495 | for (j = 0; j < num; j++) { | 495 | for (j = 0; j < num; j++) { |
496 | switch (msg[j].addr) { | 496 | switch (msg[j].addr) { |
497 | case (DW2102_RC_QUERY): { | 497 | case (DW2102_RC_QUERY): { |
498 | u8 ibuf[4]; | 498 | u8 ibuf[5]; |
499 | ret = dw210x_op_rw(d->udev, 0xb8, 0, 0, | 499 | ret = dw210x_op_rw(d->udev, 0xb8, 0, 0, |
500 | ibuf, 4, DW210X_READ_MSG); | 500 | ibuf, 5, DW210X_READ_MSG); |
501 | memcpy(msg[j].buf, ibuf + 1, 2); | 501 | memcpy(msg[j].buf, ibuf + 3, 2); |
502 | break; | 502 | break; |
503 | } | 503 | } |
504 | case (DW2102_VOLTAGE_CTRL): { | 504 | case (DW2102_VOLTAGE_CTRL): { |
@@ -1123,6 +1123,7 @@ static int stv0288_frontend_attach(struct dvb_usb_adapter *d) | |||
1123 | static int ds3000_frontend_attach(struct dvb_usb_adapter *d) | 1123 | static int ds3000_frontend_attach(struct dvb_usb_adapter *d) |
1124 | { | 1124 | { |
1125 | struct s6x0_state *st = (struct s6x0_state *)d->dev->priv; | 1125 | struct s6x0_state *st = (struct s6x0_state *)d->dev->priv; |
1126 | u8 obuf[] = {7, 1}; | ||
1126 | 1127 | ||
1127 | d->fe = dvb_attach(ds3000_attach, &dw2104_ds3000_config, | 1128 | d->fe = dvb_attach(ds3000_attach, &dw2104_ds3000_config, |
1128 | &d->dev->i2c_adap); | 1129 | &d->dev->i2c_adap); |
@@ -1132,6 +1133,9 @@ static int ds3000_frontend_attach(struct dvb_usb_adapter *d) | |||
1132 | 1133 | ||
1133 | st->old_set_voltage = d->fe->ops.set_voltage; | 1134 | st->old_set_voltage = d->fe->ops.set_voltage; |
1134 | d->fe->ops.set_voltage = s660_set_voltage; | 1135 | d->fe->ops.set_voltage = s660_set_voltage; |
1136 | |||
1137 | dw210x_op_rw(d->dev->udev, 0x8a, 0, 0, obuf, 2, DW210X_WRITE_MSG); | ||
1138 | |||
1135 | info("Attached ds3000+ds2020!\n"); | 1139 | info("Attached ds3000+ds2020!\n"); |
1136 | 1140 | ||
1137 | return 0; | 1141 | return 0; |