diff options
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c index b3c65224f..70d133076 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-remote.c @@ -31,8 +31,10 @@ static void dvb_usb_read_remote_control(void *data) case REMOTE_NO_KEY_PRESSED: break; case REMOTE_KEY_PRESSED: + deb_rc("key pressed\n"); d->last_event = event; case REMOTE_KEY_REPEAT: + deb_rc("key repeated\n"); input_event(&d->rc_input_dev, EV_KEY, event, 1); input_event(&d->rc_input_dev, EV_KEY, d->last_event, 0); input_sync(&d->rc_input_dev); @@ -92,11 +94,14 @@ int dvb_usb_remote_init(struct dvb_usb_device *d) d->rc_input_dev.evbit[0] = BIT(EV_KEY); d->rc_input_dev.keycodesize = sizeof(unsigned char); d->rc_input_dev.keycodemax = KEY_MAX; - d->rc_input_dev.name = "Remote control inside an USB DVB receiver"; + d->rc_input_dev.name = "IR-receiver inside an USB DVB receiver"; /* set the bits for the keys */ - for (i = 0; i < sizeof(d->props.rc_key_map)/sizeof(struct dvb_usb_rc_key); i++) + deb_rc("key map size: %d\n",d->props.rc_key_map_size); + for (i = 0; i < d->props.rc_key_map_size; i++) { + deb_rc("setting bit for event %d item %d\n",d->props.rc_key_map[i].event, i); set_bit(d->props.rc_key_map[i].event, d->rc_input_dev.keybit); + } /* Start the remote-control polling. */ if (d->props.rc_interval < 40) |