This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] iguanair: advertise the resolution and timeout properly
Author:  Sean Young <[email protected]>
Date:    Mon Aug 13 08:59:41 2012 -0300

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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/rc/iguanair.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=2eec676cd3097bc37618e57c19b17cbeac13cdf4

diff --git a/drivers/media/rc/iguanair.c b/drivers/media/rc/iguanair.c
index 8de690a..9810008 100644
--- a/drivers/media/rc/iguanair.c
+++ b/drivers/media/rc/iguanair.c
@@ -75,6 +75,7 @@ struct iguanair {
 
 #define MAX_PACKET_SIZE                8u
 #define TIMEOUT                        1000
+#define RX_RESOLUTION          21333
 
 struct packet {
        uint16_t start;
@@ -143,7 +144,7 @@ static void process_ir_data(struct iguanair *ir, unsigned 
len)
                        } else {
                                rawir.pulse = (ir->buf_in[i] & 0x80) == 0;
                                rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) *
-                                                                        21330;
+                                                                RX_RESOLUTION;
                        }
 
                        ir_raw_event_store_with_filter(ir->rc, &rawir);
@@ -517,7 +518,9 @@ static int __devinit iguanair_probe(struct usb_interface 
*intf,
        rc->s_tx_carrier = iguanair_set_tx_carrier;
        rc->tx_ir = iguanair_tx;
        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);
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to