diff options
author | Sean Young <sean@mess.org> | 2012-08-13 07:59:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-13 15:19:10 -0400 |
commit | 2eec676cd3097bc37618e57c19b17cbeac13cdf4 (patch) | |
tree | e8c66987e7a59652bb65c9db13a1503bcdb83a12 /drivers/media/rc/iguanair.c | |
parent | 116e4f592a4d207031b2eaf9dacb57de587146ef (diff) |
[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: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/iguanair.c')
-rw-r--r-- | drivers/media/rc/iguanair.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c index 8de690aa2c7e..9810008b41d4 100644 --- a/drivers/media/rc/iguanair.c +++ b/drivers/media/rc/iguanair.c | |||
@@ -75,6 +75,7 @@ struct iguanair { | |||
75 | 75 | ||
76 | #define MAX_PACKET_SIZE 8u | 76 | #define MAX_PACKET_SIZE 8u |
77 | #define TIMEOUT 1000 | 77 | #define TIMEOUT 1000 |
78 | #define RX_RESOLUTION 21333 | ||
78 | 79 | ||
79 | struct packet { | 80 | struct packet { |
80 | uint16_t start; | 81 | uint16_t start; |
@@ -143,7 +144,7 @@ static void process_ir_data(struct iguanair *ir, unsigned len) | |||
143 | } else { | 144 | } else { |
144 | rawir.pulse = (ir->buf_in[i] & 0x80) == 0; | 145 | rawir.pulse = (ir->buf_in[i] & 0x80) == 0; |
145 | rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * | 146 | rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * |
146 | 21330; | 147 | RX_RESOLUTION; |
147 | } | 148 | } |
148 | 149 | ||
149 | ir_raw_event_store_with_filter(ir->rc, &rawir); | 150 | ir_raw_event_store_with_filter(ir->rc, &rawir); |
@@ -517,7 +518,9 @@ static int __devinit iguanair_probe(struct usb_interface *intf, | |||
517 | rc->s_tx_carrier = iguanair_set_tx_carrier; | 518 | rc->s_tx_carrier = iguanair_set_tx_carrier; |
518 | rc->tx_ir = iguanair_tx; | 519 | rc->tx_ir = iguanair_tx; |
519 | rc->driver_name = DRIVER_NAME; | 520 | rc->driver_name = DRIVER_NAME; |
520 | rc->map_name = RC_MAP_EMPTY; | 521 | rc->map_name = RC_MAP_RC6_MCE; |
522 | rc->timeout = MS_TO_NS(100); | ||
523 | rc->rx_resolution = RX_RESOLUTION; | ||
521 | 524 | ||
522 | iguanair_set_tx_carrier(rc, 38000); | 525 | iguanair_set_tx_carrier(rc, 38000); |
523 | 526 | ||