Comment 3 for bug 1926030

Revision history for this message
Paul Harrison (mythtv-paulh) wrote :

This bug has been discussed on the MythTV mailing list and the problem commit has been found.
https://lists.archive.carbon60.com/mythtv/users/636833

In summary the bad commit is this one:-

media: rc: fix timeout handling after switch to microsecond durations
BugLink: https://bugs.launchpad.net/bugs/1918516
commit 06b831588b639ad9d94e4789b0250562228722c2 upstream.

Commit 528222d853f92 ("media: rc: harmonize infrared durations to
microseconds") missed to switch some timeout calculations from
nanoseconds to microseconds. This resulted in spurious key_up+key_down
events at the last scancode if the rc device uses a long timeout
(eg 100ms on nuvoton-cir) as the device timeout wasn't properly
accounted for in the keyup timeout calculation.

Fix this by applying the proper conversion functions.