linux-uconsole/include/uapi
Sean Young 23d520c7b6 UPSTREAM: media: lirc: implement scancode sending
This introduces a new lirc mode: scancode. Any device which can send raw IR
can now also send scancodes.

int main()
{
	int mode, fd = open("/dev/lirc0", O_RDWR);

        mode = LIRC_MODE_SCANCODE;
	if (ioctl(fd, LIRC_SET_SEND_MODE, &mode)) {
		// kernel too old or lirc does not support transmit
	}
	struct lirc_scancode scancode = {
		.scancode = 0x1e3d,
		.rc_proto = RC_PROTO_RC5,
	};
	write(fd, &scancode, sizeof(scancode));
	close(fd);
}

The other fields of lirc_scancode must be set to 0.

Note that toggle (rc5, rc6) and repeats (nec) are not implemented. Nor is
there a method for holding down a key for a period.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
(cherry picked from commit 9b6192589b)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-12-10 20:36:24 +08:00
..
asm-generic rk: revert to v3.10 2015-11-11 15:57:28 +08:00
drm BACKPORT: drm: Add an encoder and connector type enum for DPI. 2018-11-26 21:16:13 +08:00
linux UPSTREAM: media: lirc: implement scancode sending 2018-12-10 20:36:24 +08:00
misc soc: rockchip: fix flash vendor structure error 2018-07-10 16:38:48 +08:00
mtd
rdma Initial 4.4 merge window submission 2015-11-07 13:33:07 -08:00
scsi cxlflash: Fix to avoid virtual LUN failover failure 2016-09-15 08:27:49 +02:00
sound rk: revert to v3.10 2015-11-11 15:57:28 +08:00
video video: rockchip: vpu: fix set power idle failed 2017-12-27 15:47:31 +08:00
xen
Kbuild