OSDN Git Service

[media] au0828: no need to sleep at the IR code
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 7 Aug 2014 16:10:24 +0000 (13:10 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:05 +0000 (15:25 -0500)
This sleep was doing some debouncing on the original driver.
This is not needed on Linux, because the RC core and the input
layer already takes care of it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/au0828/au0828-input.c

index fd0d3a9..39ddf3c 100644 (file)
@@ -135,8 +135,6 @@ static int au0828_get_key_au8522(struct au0828_rc *ir)
        /* Disable IR */
        au8522_rc_clear(ir, 0xe0, 1 << 4);
 
-       usleep_range(45000, 46000);
-
        /* Enable IR */
        au8522_rc_set(ir, 0xe0, 1 << 4);