linux-uconsole/include
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
..
acpi
asm-generic Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-10-03 15:00:28 +05:30
clocksource
crypto Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-10-10 19:37:13 +08:00
drm UPSTREAM: drm/dsi: Implement DCS set/get display brightness 2018-10-08 16:32:58 +08:00
dt-bindings clk: rockchip: px30: Export clk id for sclk_i2s0_tx/rx mux 2018-12-05 18:16:28 +08:00
keys
kvm
linux UPSTREAM: timer: Prepare to change timer callback argument type 2018-12-10 20:35:57 +08:00
math-emu
media UPSTREAM: media: lirc: implement scancode sending 2018-12-10 20:36:24 +08:00
memory
misc
net Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-10-10 19:37:13 +08:00
pcmcia
ras
rdma IB/core: Make testing MR flags for writability a static inline function 2018-08-15 17:42:06 +02:00
rxrpc
scsi scsi: sg: disable SET_FORCE_LOW_DMA 2018-01-23 19:50:14 +01:00
soc PM / devfreq: rockchip_dmc: add support for rk1808 2018-11-16 15:09:32 +08:00
sound ASoC: rockchip: vad: add snd_pcm_vad_memcpy 2018-08-24 14:55:33 +08:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:35:31 +01:00
trace LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
uapi UPSTREAM: media: lirc: implement scancode sending 2018-12-10 20:36:24 +08:00
video Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-10-10 19:37:13 +08:00
xen
Kbuild