Commit f8931f56 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Mauro Carvalho Chehab

[media] DM04/QQBOX Update V1.76 - use 32 bit remote decoding

Use 32 bit decoding to add support for more than one variant of remote
control.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3286dac1
...@@ -204,7 +204,7 @@ static int lme2510_stream_restart(struct dvb_usb_device *d) ...@@ -204,7 +204,7 @@ static int lme2510_stream_restart(struct dvb_usb_device *d)
rbuff, sizeof(rbuff)); rbuff, sizeof(rbuff));
return ret; return ret;
} }
static int lme2510_remote_keypress(struct dvb_usb_adapter *adap, u16 keypress) static int lme2510_remote_keypress(struct dvb_usb_adapter *adap, u32 keypress)
{ {
struct dvb_usb_device *d = adap->dev; struct dvb_usb_device *d = adap->dev;
...@@ -250,7 +250,8 @@ static void lme2510_int_response(struct urb *lme_urb) ...@@ -250,7 +250,8 @@ static void lme2510_int_response(struct urb *lme_urb)
case 0xaa: case 0xaa:
debug_data_snipet(1, "INT Remote data snipet in", ibuf); debug_data_snipet(1, "INT Remote data snipet in", ibuf);
lme2510_remote_keypress(adap, lme2510_remote_keypress(adap,
(u16)(ibuf[4]<<8)+ibuf[5]); (u32)(ibuf[2] << 24) + (ibuf[3] << 16) +
(ibuf[4] << 8) + ibuf[5]);
break; break;
case 0xbb: case 0xbb:
switch (st->tuner_config) { switch (st->tuner_config) {
......
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