[media] media: rc: nuvoton: support reading / writing wakeup sequence via sysfs
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 8 Feb 2016 19:25:59 +0000 (17:25 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 11:28:41 +0000 (08:28 -0300)
commit449c1fcd86f5077d5076a955e65c07a7c4cbbf9d
tree9a430bdd64f68372ff995ee22e1600a57861cad2
parent5ed08a8649ddb95860fcf6d8d2e0f34b338043a5
[media] media: rc: nuvoton: support reading / writing wakeup sequence via sysfs

This patch adds a binary attribute /sys/class/rc/rc?/wakeup_data which
allows to read / write the wakeup sequence.

In combination with the core extension for exposing the most recent raw
packet this allows to easily define and set a wakeup sequence.

At least on my Zotac CI321 the BIOS resets the wakeup sequence at each boot
to a factory default. Therefore I use a udev rule
SUBSYSTEM=="rc", DRIVERS=="nuvoton-cir", ACTION=="add", RUN+="<script>"
with the script basically doing
cat <stored wakeup sequence> >/sys${DEVPATH}/wakeup_data

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/nuvoton-cir.c
drivers/media/rc/nuvoton-cir.h
This page took 0.037492 seconds and 5 git commands to generate.