diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-07-13 17:26:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:55:59 -0400 |
commit | 68b2a69d10bf29cf5dcd779be18f96c8be8326d5 (patch) | |
tree | 25e2358f908995e84340b02ca3f7b605607259c3 /drivers/media/rc | |
parent | f5f2cc646af13b0cf74b9d676408473123c9ea76 (diff) |
[media] redrat3: sending extra trailing space was useless
We already add a trailing space, this wasn't doing anything useful, and
actually confused lirc userspace a bit. Rip it out.
CC: Chris Dodge <chris@redrat.co.uk>
CC: Andrew Vincer <andrew.vincer@redrat.co.uk>
CC: Stephen Cox <scox_nz@yahoo.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/redrat3.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 4582ef72d963..95a9436a2731 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c | |||
@@ -414,20 +414,10 @@ static u32 redrat3_us_to_len(u32 microsec) | |||
414 | 414 | ||
415 | } | 415 | } |
416 | 416 | ||
417 | /* timer callback to send long trailing space on receive timeout */ | 417 | /* timer callback to send reset event */ |
418 | static void redrat3_rx_timeout(unsigned long data) | 418 | static void redrat3_rx_timeout(unsigned long data) |
419 | { | 419 | { |
420 | struct redrat3_dev *rr3 = (struct redrat3_dev *)data; | 420 | struct redrat3_dev *rr3 = (struct redrat3_dev *)data; |
421 | DEFINE_IR_RAW_EVENT(rawir); | ||
422 | |||
423 | rawir.pulse = false; | ||
424 | rawir.duration = rr3->rc->timeout; | ||
425 | rr3_dbg(rr3->dev, "storing trailing space with duration %d\n", | ||
426 | rawir.duration); | ||
427 | ir_raw_event_store_with_filter(rr3->rc, &rawir); | ||
428 | |||
429 | rr3_dbg(rr3->dev, "calling ir_raw_event_handle\n"); | ||
430 | ir_raw_event_handle(rr3->rc); | ||
431 | 421 | ||
432 | rr3_dbg(rr3->dev, "calling ir_raw_event_reset\n"); | 422 | rr3_dbg(rr3->dev, "calling ir_raw_event_reset\n"); |
433 | ir_raw_event_reset(rr3->rc); | 423 | ir_raw_event_reset(rr3->rc); |