| Date | Mon, 27 Jun 2005 14:06:01 +0200 | From | Johannes Stezenbach <> | Subject | [DVB patch 01/51] cinergyT2: endianness fix for raw remote-control keys |
| |
From: Martin Loschwitz <madkiss@madkiss.org>
Fixed litte/big-endian conversion for raw remote-control keys.
Signed-off-by: Martin Loschwitz <madkiss@madkiss.org> Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
drivers/media/dvb/cinergyT2/cinergyT2.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6.12-git8/drivers/media/dvb/cinergyT2/cinergyT2.c =================================================================== --- linux-2.6.12-git8.orig/drivers/media/dvb/cinergyT2/cinergyT2.c 2005-06-17 21:48:29.000000000 +0200 +++ linux-2.6.12-git8/drivers/media/dvb/cinergyT2/cinergyT2.c 2005-06-27 13:22:35.000000000 +0200 @@ -699,6 +699,8 @@ static void cinergyt2_query_rc (void *da 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) { @@ -714,7 +716,7 @@ static void cinergyt2_query_rc (void *da 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; --
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|