linux-uconsole/drivers
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
..
accessibility
acpi Merge branch 'linux-linaro-lsk-v4.4' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-09-07 17:34:34 +08:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-02 07:53:42 -07:00
android 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
ata 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
atm atm: zatm: Fix potential Spectre v1 2018-07-22 14:25:52 +02:00
auxdisplay
base Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-10-03 15:00:28 +05:30
bcma UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
block BACKPORT: zram: drop max_zpage_size and use zs_huge_class_size() 2018-10-04 14:17:09 +05:30
bluetooth drivers/bluetooth: remove unused vflash driver 2018-11-03 13:45:01 +08:00
bus bus: brcmstb_gisb: correct support for 64-bit address output 2018-04-13 19:50:05 +02:00
cdrom cdrom: Fix info leak/OOB read in cdrom_ioctl_drive_status 2018-09-05 09:18:41 +02:00
char Merge branch 'linux-linaro-lsk-v4.4' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-09-07 17:34:34 +08:00
clk clk: rockchip: px30: Export clk id for sclk_i2s0_tx/rx mux 2018-12-05 18:16:28 +08:00
clocksource LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
connector
cpufreq drivers/cpufreq: remove unused rockchip_big_little driver 2018-11-03 18:19:29 +08:00
cpuidle Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-07-05 11:05:40 +01:00
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
dca
devfreq PM / devfreq: rockchip_dmc: support DPI connector 2018-11-26 21:16:13 +08:00
dio
dma 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
dma-buf
edac EDAC, mv64x60: Fix an error handling path 2018-04-13 19:50:23 +02:00
eisa
extcon
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-05-30 07:48:52 +02:00
firmware LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
fmc
fpga
gpio drivers: remove unused rt5025 drivers 2018-11-02 15:31:20 +08:00
gpu drm/rockchip: rk618: remove unused files 2018-12-07 11:05:03 +08:00
headset_observe drivers/headset_observe/rk_headset_irq_hook_adc: remove include adc.h 2018-11-01 15:11:58 +08:00
hid UPSTREAM: media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_* 2018-12-10 20:36:18 +08:00
hsi HSI: ssi_protocol: double free in ssip_pn_xmit() 2018-03-24 10:58:42 +01:00
hv Drivers: hv: vmbus: fix build warning 2018-02-25 11:03:46 +01:00
hwmon drivers/hwmon: remove unused rockchip-hwmon driver 2018-11-05 09:35:10 +08:00
hwspinlock hwspinlock: rockchip: add hardware spinlock driver 2018-10-11 12:01:02 +08:00
hwtracing This is the 4.4.159 stable release 2018-10-01 12:13:41 +01:00
i2c i2c: rk3x: Fix the smatch warning 2018-10-26 11:02:12 +08:00
ide cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
idle idle: i7300: add PCI dependency 2018-02-25 11:03:51 +01:00
iio iio: light: vl6180: add something initialization from vendor 2018-10-11 18:36:09 +08:00
infiniband iw_cxgb4: only allow 1 flush on user qps 2018-09-29 03:08:55 -07:00
input drivers/mfd: remove unused wm831x driver 2018-11-05 09:49:50 +08:00
iommu 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
ipack
irqchip 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
isdn isdn: Disable IIOCDBGVAR 2018-08-22 07:48:38 +02:00
leds drivers/leds: remove unused att1272 driver 2018-11-05 09:52:39 +08:00
lguest
lightnvm
macintosh macintosh/via-pmu: Add missing mmio accessors 2018-09-19 22:48:57 +02:00
mailbox
mcb
md 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
media UPSTREAM: media: lirc: implement scancode sending 2018-12-10 20:36:24 +08:00
memory memory: tegra: Apply interrupts mask per SoC 2018-08-06 16:24:38 +02:00
memstick
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-30 07:48:58 +02:00
mfd Revert "drm/rockchip: inno_hdmi: add support for rk618" 2018-11-27 17:44:33 +08:00
misc drivers/misc: remove unused tcc_bt_dev driver 2018-11-03 13:21:04 +08:00
mmc drivers/mmc/host: remove unused rk_sdmmc_dbg 2018-11-05 10:27:41 +08:00
mtd drivers/mtd/nand: remove unused rk29_nand driver 2018-11-05 10:36:02 +08:00
net drivers/net/wireless/rockchip_wlan: remove unused rtl8812au driver 2018-11-06 19:57:05 +08:00
nfc Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-04-08 18:28:30 +08:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-05-30 07:48:55 +02:00
nubus
nvdimm linvdimm, pmem: Preserve read-only setting for pmem devices 2018-07-03 11:21:31 +02:00
nvme nvme: make partition type depend on saved command line 2018-08-09 14:12:30 +08:00
nvmem nvmem: rockchip-otp: Add support for rk3308-otp 2018-06-13 14:16:35 +08:00
of LSK 18.07 v4.4-android 2018-08-03 10:09:13 +08:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:49:10 +02:00
parport parport: sunbpp: fix error return code 2018-09-26 08:35:09 +02:00
pci PCI: rockchip: Add Rockchip DW PCIe controller support 2018-11-21 16:32:09 +08:00
pcmcia
perf Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-04-08 18:28:30 +08:00
phy phy: rockchip-inno-combphy: disable lane 0 for usb3 to save power 2018-11-29 10:15:23 +08:00
pinctrl pinctrl: rockchip: Split the SoC data initialization into two functions 2018-11-01 16:44:12 +08:00
platform 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
pnp
power power: rk816-battery: ac/usb implement "input_current_limit" sysfs node 2018-12-07 14:53:16 +08:00
powercap PowerCap: Fix an error code in powercap_register_zone() 2018-04-13 19:50:05 +02:00
pps
ps3
ptp ptp: fix missing break in switch 2018-07-25 10:18:17 +02:00
pwm 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
rapidio
ras
regulator regulator: rk809 & rk817: fix up the is_enable return error 2018-12-07 14:51:34 +08:00
remoteproc
reset drivers/reset: remove unused reset-rockchip driver 2018-11-05 16:21:11 +08:00
rk_nand drivers: rk_nand: zftl: fix spectek nand flash read error data issue 2018-11-12 10:47:02 +08:00
rkflash drivers: rkflash: support 4KB page size slc nand 2018-12-03 11:31:20 +08:00
rpmsg
rtc drivers/rtc: remove unused s35392a driver 2018-11-05 16:21:12 +08:00
s390 s390/qeth: reset layer2 attribute on layer switch 2018-09-26 08:35:06 +02:00
sbus
scsi Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-10-03 15:00:28 +05:30
sfi
sh
smc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sn
soc soc: rockchip: support rk1808 pm config 2018-11-30 10:27:33 +08:00
spi spi: rockchip: support to set lsb into ROCKCHIP_SPI_CTRLR0 2018-10-23 18:03:06 +08:00
spmi
ssb ssb: mark ssb_bus_register as __maybe_unused 2018-02-25 11:03:44 +01:00
staging UPSTREAM: [media] lirc_dev: remove sampling kthread 2018-12-10 20:36:12 +08:00
switch rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
target scsi: target: iscsi: Use hex2bin instead of a re-implementation 2018-09-29 03:08:53 -07:00
tc
tee BACKPORT: tee: shm: Potential NULL dereference calling tee_shm_register() 2018-03-05 21:58:40 +05:30
testcode rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
thermal drivers/thermal: remove unused rk driver 2018-11-05 16:21:12 +08:00
thunderbolt thunderbolt: Resume control channel after hibernation image is created 2018-04-24 09:32:07 +02:00
tty 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
uio uio: potential double frees if __uio_register_device() fails 2018-09-19 22:48:57 +02:00
usb usb: host: ehci-platform: Add basic runtime PM support 2018-12-10 20:09:34 +08:00
uwb
vfio vfio/pci: Virtualize Maximum Read Request Size 2018-04-24 09:32:09 +02:00
vhost vhost_net: validate sock before trying to put its fd 2018-07-22 14:25:53 +02:00
video video: rockchip: vpu: Add clean cache for rkvdec 2018-12-05 15:25:27 +08:00
virt
virtio virtio_balloon: fix another race between migration and ballooning 2018-08-06 16:24:42 +02:00
vlynq
vme
w1 Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-07-05 11:05:40 +01:00
watchdog drivers/watchdog: remove unused rk29_wdt driver 2018-11-03 15:09:11 +08:00
xen xen: Remove unnecessary BUG_ON from __unbind_from_irq() 2018-07-03 11:21:34 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:49:11 +02:00
Kconfig drivers: rkflash: add rkflash drivers 2018-05-23 09:26:14 +08:00
Makefile drivers: rkflash: add rkflash drivers 2018-05-23 09:26:14 +08:00