]> git.baikalelectronics.ru Git - kernel.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)
commit4f4af0e315a66017fc711b5744e2cdde3babea8c
tree9c29c81a905113ad95f16d80f03a4635284990a9
parent6b25be4163a5b1c73024d62bc5a2c0411846593f
media: lirc: lirc daemon fails to detect raw IR device

Since commit 0d30e0d67aaa ("media: lirc: implement scancode sending"),
and commit 8ad62b00cf86 ("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