• Sean Young's avatar
    media: lirc: when transmitting scancodes, block until transmit is done · dde7edff
    Sean Young authored
    The semantics for lirc IR transmit with raw IR is that the write call
    should block until the IR is transmitted. Some drivers have no idea
    when this actually is (e.g. mceusb), so there is a wait.
    
    This is useful for userspace, as it might want to send a IR button press,
    a gap of a predefined number of milliseconds, and then send a repeat
    message.
    
    It turns out that for transmitting scancodes this feature is even more
    useful, as user space has no idea how long the IR is. So, maintain
    the existing semantics for IR scancode transmit.
    Signed-off-by: default avatarSean Young <sean@mess.org>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    dde7edff
lirc-write.rst 2.14 KB