All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] media: rc: core: expose raw packet data via sysfs
@ 2016-02-07 20:13 Heiner Kallweit
  0 siblings, 0 replies; only message in thread
From: Heiner Kallweit @ 2016-02-07 20:13 UTC (permalink / raw
  To: Mauro Carvalho Chehab; +Cc: linux-media

This patch series adds functionality for exposing raw data via sysfs
to the core. Up to 128 bytes received since the last break of >= 1s
can be read via a binary sysfs attribute.

There are two major use cases:
- getting raw data to be used for defining a wakeup sequence on chips
  supporting wakeup via RC (e.g. nuvoton-cir)
- debugging and raw data analysis purposes

First user of this new feature is the nuvoton-cir driver.

Motivation for this extension is to allow for an easy way to set
wakeup sequences. There have been some attempts in the past for the
nuvoton driver but AFAICS it was never finished.

This patch series is going to be complemented with a patch for the
nuvoton-cir driver adding functionality to set a wakeup sequence
via sysfs.

Eventually setting a wakeup sequence would be as easy as:
- press key to be used for wakeup
- read raw key data from sysfs
- cut raw data after sequence length to be used
- write raw wakeup sequence to sysfs

Works fine here on a Zotac CI321 with nuvoton-cir.

Heiner Kallweit (3):
  media: rc: add core functionality to store the most recent raw data
  media: rc: expose most recent raw packet via sysfs
  media: rc: nuvoton: expose most recent raw packet via sysfs

 drivers/media/rc/nuvoton-cir.c  |  2 ++
 drivers/media/rc/rc-core-priv.h |  6 +++++
 drivers/media/rc/rc-ir-raw.c    | 34 ++++++++++++++++++++++++++
 drivers/media/rc/rc-main.c      | 53 +++++++++++++++++++++++++++++++++++++++++
 include/media/rc-core.h         |  5 +++-
 5 files changed, 99 insertions(+), 1 deletion(-)

-- 
2.7.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-07 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-07 20:13 [PATCH 0/3] media: rc: core: expose raw packet data via sysfs Heiner Kallweit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.