Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] rc/streamzap: fix reporting response times

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>

authored by

Jarod Wilson and committed by
Mauro Carvalho Chehab
56b0ec30 5bd9d73c

+2
+2
drivers/media/rc/streamzap.c
··· 273 273 if (sz->timeout_enabled) 274 274 sz_push(sz, rawir); 275 275 ir_raw_event_handle(sz->rdev); 276 + ir_raw_event_reset(sz->rdev); 276 277 } else { 277 278 sz_push_full_space(sz, sz->buf_in[i]); 278 279 } ··· 291 290 } 292 291 } 293 292 293 + ir_raw_event_handle(sz->rdev); 294 294 usb_submit_urb(urb, GFP_ATOMIC); 295 295 296 296 return;