Skip to content

Commit

Permalink
[media] rc/streamzap: fix reporting response times
Browse files Browse the repository at this point in the history
The streamzap driver has relatively low sampling resolution, and any
delays in reporting events seem to cause some minor problems for the
likes of irw when using the lirc bridge driver, resulting in a single
keypress registering as multiple independent ones, rather than as a
single press with repeats. If we call ir_raw_event_handle() more
frequently and reset the rawir kfifo at end-of-signal, the behavior
improves quite a bit.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Jan 31, 2011
1 parent 5bd9d73 commit 56b0ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/rc/streamzap.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ static void streamzap_callback(struct urb *urb)
if (sz->timeout_enabled)
sz_push(sz, rawir);
ir_raw_event_handle(sz->rdev);
ir_raw_event_reset(sz->rdev);
} else {
sz_push_full_space(sz, sz->buf_in[i]);
}
Expand All @@ -290,6 +291,7 @@ static void streamzap_callback(struct urb *urb)
}
}

ir_raw_event_handle(sz->rdev);
usb_submit_urb(urb, GFP_ATOMIC);

return;
Expand Down

0 comments on commit 56b0ec3

Please sign in to comment.