summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-05-21 17:09:24 +0000
committerPatrick Boettcher <devnull@localhost>2005-05-21 17:09:24 +0000
commit28f63358e32dfd5fbf995b687cf7eebc9415a835 (patch)
tree098851ca785a598b44bd19e709e4d06b67868885
parent94897285be983e7fb8336e09fe0c405fa2cdbced (diff)
downloadmediapointer-dvb-s2-28f63358e32dfd5fbf995b687cf7eebc9415a835.tar.gz
mediapointer-dvb-s2-28f63358e32dfd5fbf995b687cf7eebc9415a835.tar.bz2
Fixed litte/big-endian conversion for raw remote-control keys. Thanks to Martin Loschwitz for discovering the problem.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Martin Loschwitz <madkiss@madkiss.org>
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 1c1384805..d079a9155 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -706,6 +706,8 @@ static void cinergyt2_query_rc (void *data)
for (n=0; len>0 && n<(len/sizeof(rc_events[0])); n++) {
int i;
+/* dprintk(1,"rc_events[%d].value = %x, type=%x\n",n,le32_to_cpu(rc_events[n].value),rc_events[n].type);*/
+
if (rc_events[n].type == CINERGYT2_RC_EVENT_TYPE_NEC &&
rc_events[n].value == ~0)
{
@@ -721,7 +723,7 @@ static void cinergyt2_query_rc (void *data)
cinergyt2->rc_input_event = KEY_MAX;
for (i=0; i<sizeof(rc_keys)/sizeof(rc_keys[0]); i+=3) {
if (rc_keys[i+0] == rc_events[n].type &&
- rc_keys[i+1] == rc_events[n].value)
+ rc_keys[i+1] == le32_to_cpu(rc_events[n].value))
{
cinergyt2->rc_input_event = rc_keys[i+2];
break;