]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: lirc: lirc daemon fails to detect raw IR device
authorSean Young <sean@mess.org>
Thu, 28 Dec 2017 19:58:26 +0000 (14:58 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Jan 2018 12:24:01 +0000 (07:24 -0500)
commit02d742f4b209057710ed54f14f24861d94c2cd99
tree9c29c81a905113ad95f16d80f03a4635284990a9
parent04d0e8de8a6a3e4ef4a9e04f23beca6a7a5080b2
media: lirc: lirc daemon fails to detect raw IR device

Since commit 9b6192589be7 ("media: lirc: implement scancode sending"),
and commit de142c324106 ("media: lirc: implement reading scancode")
the lirc features ioctl for raw IR devices advertises two modes for
sending and receiving.

The lirc daemon now fails to detect a raw IR device, both for transmit
and receive.

To fix this, do not advertise the scancode mode in the lirc features
for raw IR devices (however do keep it for scancode devices). The mode
can still be used via the LIRC_SET_{REC,SEND}_MODE ioctl.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/uapi/rc/lirc-get-features.rst
drivers/media/rc/lirc_dev.c