Commit 2eec676c authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

[media] iguanair: advertise the resolution and timeout properly

With the timeout supplied the interface can go idle. The keymap is
the same one as other drivers which do not come with a remote.
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 116e4f59
...@@ -75,6 +75,7 @@ struct iguanair { ...@@ -75,6 +75,7 @@ struct iguanair {
#define MAX_PACKET_SIZE 8u #define MAX_PACKET_SIZE 8u
#define TIMEOUT 1000 #define TIMEOUT 1000
#define RX_RESOLUTION 21333
struct packet { struct packet {
uint16_t start; uint16_t start;
...@@ -143,7 +144,7 @@ static void process_ir_data(struct iguanair *ir, unsigned len) ...@@ -143,7 +144,7 @@ static void process_ir_data(struct iguanair *ir, unsigned len)
} else { } else {
rawir.pulse = (ir->buf_in[i] & 0x80) == 0; rawir.pulse = (ir->buf_in[i] & 0x80) == 0;
rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) *
21330; RX_RESOLUTION;
} }
ir_raw_event_store_with_filter(ir->rc, &rawir); ir_raw_event_store_with_filter(ir->rc, &rawir);
...@@ -517,7 +518,9 @@ static int __devinit iguanair_probe(struct usb_interface *intf, ...@@ -517,7 +518,9 @@ static int __devinit iguanair_probe(struct usb_interface *intf,
rc->s_tx_carrier = iguanair_set_tx_carrier; rc->s_tx_carrier = iguanair_set_tx_carrier;
rc->tx_ir = iguanair_tx; rc->tx_ir = iguanair_tx;
rc->driver_name = DRIVER_NAME; rc->driver_name = DRIVER_NAME;
rc->map_name = RC_MAP_EMPTY; rc->map_name = RC_MAP_RC6_MCE;
rc->timeout = MS_TO_NS(100);
rc->rx_resolution = RX_RESOLUTION;
iguanair_set_tx_carrier(rc, 38000); iguanair_set_tx_carrier(rc, 38000);
......
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