Re: Recent nuvoton-cir changes introduce a hang with nct6775

2016-07-06 Thread Antti Seppälä
On 7 July 2016 at 00:25, Heiner Kallweit wrote: > Am 06.07.2016 um 08:51 schrieb Antti Seppälä: >> Hello. >> >> I recently updated my kernel to a newer version but couldn't boot it >> because it hangs. >> >> It turns out that your patch[1] to nuvoto

Re: [PATCH 0/7] rc-core: Revert encoding patchset

2015-08-07 Thread Antti Seppälä
Härdeman > Almost missed this... Yes, after discussing with David I think we can do the wakeup with even better API than with the one we currently have. So without further ado: Acked-by: Antti Seppälä -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-06-17 Thread Antti Seppälä
On 14 June 2015 at 02:44, David Härdeman wrote: > One idea that I've had in the back of my head for a long time is to use the > "flags" member of "struct rc_keymap_entry" in the new EVIOC[GS]KEYCODE_V2 > ioctl variant (see http://www.spinics.net/lists/linux-media/msg88452.html). > > If a RC_POWER

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-23 Thread Antti Seppälä
On 22 May 2015 at 13:33, David Härdeman wrote: > On 2015-05-22 07:27, Antti Seppälä wrote: >> >> On 21 May 2015 at 22:40, David Härdeman wrote: >>> >>> On Thu, May 21, 2015 at 05:22:08PM +0300, Antti Seppälä wrote: >>>> >>>> On 21 May 201

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-21 Thread Antti Seppälä
On 21 May 2015 at 22:40, David Härdeman wrote: > On Thu, May 21, 2015 at 05:22:08PM +0300, Antti Seppälä wrote: >>On 21 May 2015 at 15:30, David Härdeman wrote: >>> On 2015-05-21 13:51, Antti Seppälä wrote: >>>> >>>> On 21 May 2015 at 12:14, David Härd

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-21 Thread Antti Seppälä
On 21 May 2015 at 15:30, David Härdeman wrote: > On 2015-05-21 13:51, Antti Seppälä wrote: >> >> On 21 May 2015 at 12:14, David Härdeman wrote: >>> >>> I'm talking about ir_raw_encode_scancode() which is entirely broken in >>> its >>> curr

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-21 Thread Antti Seppälä
On 21 May 2015 at 12:14, David Härdeman wrote: > On 2015-05-21 09:53, Antti Seppälä wrote: >> >> On 20 May 2015 at 23:45, David Härdeman wrote: >>> >>> On Wed, May 20, 2015 at 10:26:54PM +0300, Antti Seppälä wrote: >>>> >>>> On 20 May 2015

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-21 Thread Antti Seppälä
On 20 May 2015 at 23:45, David Härdeman wrote: > On Wed, May 20, 2015 at 10:26:54PM +0300, Antti Seppälä wrote: >>On 20 May 2015 at 21:29, David Härdeman wrote: >>> On Wed, May 20, 2015 at 07:46:21PM +0300, Antti Seppälä wrote: >>>>On 19 May 2015 at 23:38, David

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-20 Thread Antti Seppälä
On 20 May 2015 at 21:29, David Härdeman wrote: > On Wed, May 20, 2015 at 07:46:21PM +0300, Antti Seppälä wrote: >>On 19 May 2015 at 23:38, David Härdeman wrote: >>> On Tue, Mar 31, 2015 at 08:48:06PM +0300, Antti Seppälä wrote: >>>>From: James Hogan >>>

Re: [PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-05-20 Thread Antti Seppälä
On 19 May 2015 at 23:38, David Härdeman wrote: > On Tue, Mar 31, 2015 at 08:48:06PM +0300, Antti Seppälä wrote: >>From: James Hogan >> >>Add a callback to raw ir handlers for encoding and modulating a scancode >>to a set of raw events. This could be used for tran

[PATCH v3 5/7] rc: rc-core: Add support for encode_wakeup drivers

2015-03-31 Thread Antti Seppälä
well as updating the sysfs interface to know which wakeup protocols are allowed for encode_wakeup drivers, also ensure that the IR decoders/encoders are loaded when an encode_wakeup driver is registered. Signed-off-by: James Hogan Signed-off-by: Antti Seppälä Cc: David Härdeman --- Notes

[PATCH v3 7/7] rc: nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback

2015-03-31 Thread Antti Seppälä
-by: Antti Seppälä Signed-off-by: James Hogan Cc: Jarod Wilson --- Notes: Changes in v3: - Ported to apply against latest media-tree - Checkpatch.pl fixes Changes in v2 (James Hogan): - Handle new -ENOBUFS when IR encoding buffer isn't long enough and r

[PATCH v3 6/7] rc: rc-loopback: Add loopback of filter scancodes

2015-03-31 Thread Antti Seppälä
From: James Hogan Add the s_wakeup_filter callback to the rc-loopback driver, which instead of setting the filter just feeds the scancode back through the input device so that it can be verified. Signed-off-by: James Hogan Signed-off-by: Antti Seppälä Cc: David Härdeman --- Notes

[PATCH v3 1/7] rc: rc-ir-raw: Add scancode encoder callback

2015-03-31 Thread Antti Seppälä
-by: Antti Seppälä Cc: David Härdeman --- Notes: Changes in v3: - Ported to apply against latest media-tree Changes in v2: - Alter encode API to return -ENOBUFS when there isn't enough buffer space. When this occurs all buffer contents must have been wr

[PATCH v3 0/7] rc: Add IR encode based wakeup filtering

2015-03-31 Thread Antti Seppälä
es since v2: - Ported to apply against latest media-tree - Fixed new checkpatch.pl warnings - Dropped nec scancode support for now - Merged separate encoders for rc-5 and rc5-sz into single encoder - Added rc-6 encoder Cc: James Hogan Cc: David Härdeman Antti Seppälä (3): rc: rc-ir-raw: Add

[PATCH v3 4/7] rc: ir-rc6-decoder: Add encode capability

2015-03-31 Thread Antti Seppälä
several times with various timings so that RC-6 header preamble, the header, header trailing bit and the data itself can be modulated correctly. Signed-off-by: Antti Seppälä Cc: James Hogan Cc: David Härdeman --- Notes: Changes in v3: - New patch drivers/media/rc/ir-rc6-decoder.c | 122

[PATCH v3 3/7] rc: ir-rc5-decoder: Add encode capability

2015-03-31 Thread Antti Seppälä
space. The encoding in RC-5-SZ first inserts a pulse and then simply utilizes the generic Manchester encoder available in rc-core. Signed-off-by: James Hogan Signed-off-by: Antti Seppälä Cc: David Härdeman --- Notes: Changes in v3: - Ported to apply with latest media-tree - Merged

[PATCH v3 2/7] rc: rc-ir-raw: Add Manchester encoder (phase encoder) helper

2015-03-31 Thread Antti Seppälä
Adding a simple Manchester encoder to rc-core. Manchester coding is used by at least RC-5 and RC-6 protocols and their variants. Signed-off-by: Antti Seppälä Signed-off-by: James Hogan Cc: David Härdeman --- Notes: Changes in v3: - Ported to apply against latest media-tree

Re: [RFC PATCH] mn88472: reduce firmware download chunk size

2015-02-19 Thread Antti Seppälä
On 19 February 2015 at 18:14, Antti Palosaari wrote: > On 02/19/2015 06:01 PM, Antti Seppälä wrote: >> >> On 19 February 2015 at 17:38, Antti Palosaari wrote: >>> >>> On 02/19/2015 12:21 PM, Antti Seppälä wrote: >>>> >>>> O

Re: [RFC PATCH] mn88472: reduce firmware download chunk size

2015-02-19 Thread Antti Seppälä
On 19 February 2015 at 17:38, Antti Palosaari wrote: > > > On 02/19/2015 12:21 PM, Antti Seppälä wrote: >> >> On 19 February 2015 at 11:43, Benjamin Larsson >> wrote: >>> >>> On 2015-02-19 10:13, Antti Seppälä wrote: >>>> >>>>

Re: [RFC PATCH] mn88472: reduce firmware download chunk size

2015-02-19 Thread Antti Seppälä
On 19 February 2015 at 11:43, Benjamin Larsson wrote: > On 2015-02-19 10:13, Antti Seppälä wrote: >> >> It seems that currently the firmware download on the mn88472 is >> somehow wrong for my Astrometa HD-901T2. >> >> Reducing the download chunk size (mn88472_con

[RFC PATCH] mn88472: reduce firmware download chunk size

2015-02-19 Thread Antti Seppälä
0: i2c reg write failed -32 [8.212038] rtl2832 7-0010: i2c reg write failed -32 I'm obviously not too happy about this patch as it slows down the firmware download but I have not found a way to keep larger chunks in place and have a working firmware download at the same time. Signe

Re: [PATCH 1/5] rc-main: add generic scancode filtering

2014-03-26 Thread Antti Seppälä
t; I'm kind of sceptical...and given how difficult it is to remove > functionality that is in a released kernel...I think that particular > part (i.e. the software filtering) should be removed until it has had > further discussion... > >>Here's the original discussion: &g

Re: [PATCH v2 0/9] rc: Add IR encode based wakeup filtering

2014-03-17 Thread Antti Seppälä
Hi James, On 17 March 2014 00:41, James Hogan wrote: > > Yeh I'm in two minds about this now. It's actually a little awkward since some > of the protocols have multiple variants (i.e. "rc-5" = RC5+RC5X), but an > encoded message is only ever a single variant, so technically if you're going > to d

Re: [PATCH v2 6/9] rc: ir-rc5-sz-decoder: Add ir encoding support

2014-03-17 Thread Antti Seppälä
On 16 March 2014 23:18, James Hogan wrote: > Fair enough. So changing the minimum rc5-sz masks to 0x3fff sounds reasonable > to allow toggle to be controlled. > > Just to clarify though, so you mean that the remote uses toggle=1 first (and > in repeat codes) unless you press it a second time (new

Re: [PATCH v2 6/9] rc: ir-rc5-sz-decoder: Add ir encoding support

2014-03-16 Thread Antti Seppälä
Hi James. On 16 March 2014 13:50, James Hogan wrote: > Hi Antti, > > On Sunday 16 March 2014 10:34:31 Antti Seppälä wrote: >> > + >> > + /* all important bits of scancode should be set in mask */ >> > + if (~scancode->mask & 0x2fff) >&g

Re: [PATCH v2 9/9] rc: nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback

2014-03-16 Thread Antti Seppälä
On 15 March 2014 01:04, James Hogan wrote: > From: Antti Seppälä > > Nuvoton-cir utilizes the encoding capabilities of rc-core to convert > scancodes from user space to pulse/space format understood by the > underlying hardware. > > Converted samples are then written to

Re: [PATCH v2 6/9] rc: ir-rc5-sz-decoder: Add ir encoding support

2014-03-16 Thread Antti Seppälä
On 15 March 2014 01:04, James Hogan wrote: > From: Antti Seppälä > > The encoding in rc5-sz first inserts a pulse and then simply utilizes the > generic Manchester encoder available in rc-core. > > Signed-off-by: Antti Seppälä > Signed-off-by: James Hogan > Cc: Mau

Re: [PATCH v2 0/9] rc: Add IR encode based wakeup filtering

2014-03-16 Thread Antti Seppälä
ardware with a low level wake filter (on the > level of pulse/space durations) can still easily implement the higher > level scancode interface that is proposed. > > I posted an RFC patchset showing how this could work, and Antti Seppälä > posted additional patches to support r

Re: [PATCH 0/5] rc: scancode filtering improvements

2014-03-05 Thread Antti Seppälä
r: pass errors to userland" should > probably be applied first. > > An updated img-ir v4 patchset which depends on this one will follow > soon. > > Cc: Mauro Carvalho Chehab > Cc: "Bruno Prémont" > Cc: Maxim Levitsky > Cc: Sean Young > Cc: "David Härd

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-16 Thread Antti Seppälä
On 12 February 2014 01:39, James Hogan wrote: > On Tuesday 11 February 2014 20:14:19 Antti Seppälä wrote: >> Are you working on the wakeup protocol selector sysfs interface? > > I gave it a try yesterday, but it's a bit of a work in progress at the moment. > It's also

[RFCv2 PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core

2014-02-16 Thread Antti Seppälä
Adding a simple Manchester encoder to rc-core. Manchester coding is used by at least RC-5 protocol and its variants. Signed-off-by: Antti Seppälä --- drivers/media/rc/ir-raw.c | 56 + drivers/media/rc/rc-core-priv.h | 16 2 files

[RFCv2 PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-16 Thread Antti Seppälä
The encoding in rc5-sz first inserts a pulse and then simply utilizes the generic Manchester encoder available in rc-core. Signed-off-by: Antti Seppälä --- drivers/media/rc/ir-rc5-sz-decoder.c | 39 1 file changed, 39 insertions(+) diff --git a/drivers

[RFCv2 PATCH 3/3] nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback

2014-02-16 Thread Antti Seppälä
-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c | 119 + drivers/media/rc/nuvoton-cir.h | 1 + include/media/rc-core.h| 1 + 3 files changed, 121 insertions(+) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c

[RFCv2 PATCH 0/3] rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir

2014-02-16 Thread Antti Seppälä
x27;t completely fit - Check filter mask in encoder - Append some trailing ir silence to the encoded result - Some cleanups and readability improvements Antti Seppälä (3): rc-core: Add Manchester encoder (phase encoder) support to rc-core ir-rc5-sz: Add ir encoding support nuvoton-cir

[PATCH] nuvoton-cir: Activate PNP device when probing

2014-02-16 Thread Antti Seppälä
. Signed-off-by: Antti Seppälä Cc: Mauro Carvalho Chehab Cc: Jarod Wilson --- drivers/media/rc/nuvoton-cir.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index b41e52e..b81325d 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-11 Thread Antti Seppälä
On 10 February 2014 22:50, James Hogan wrote: >> > I suspect it needs some more space at the end too, to be sure that no >> > more bits afterwards are accepted. >> >> I'm sorry but I'm not sure I completely understood what you meant >> here. For RC-5-SZ the entire scancode gets encoded and nothing

Re: [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-10 Thread Antti Seppälä
Hi James. On 10 February 2014 12:30, James Hogan wrote: > Hi Antti, > > On 08/02/14 12:07, Antti Seppälä wrote: >> The encoding in rc5-sz first inserts a pulse and then simply utilizes the >> generic Manchester encoder available in rc-core. >> >> Signed-off-by:

Re: [RFC PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core

2014-02-10 Thread Antti Seppälä
Hi James. On 10 February 2014 12:25, James Hogan wrote: > Hi Antti, > > On 08/02/14 12:07, Antti Seppälä wrote: >> Adding a simple Manchester encoder to rc-core. >> Manchester coding is used by at least RC-5 protocol and its variants. >> >> Signed-off-by: Antti

Re: [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode

2014-02-10 Thread Antti Seppälä
On 10 February 2014 11:58, James Hogan wrote: > Hi Antti, > > On 08/02/14 11:30, Antti Seppälä wrote: >>> The first patch adds an encode callback to the existing raw ir handler >>> struct and a helper function to encode a scancode for a given protocol. >>> >

[RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support

2014-02-08 Thread Antti Seppälä
The encoding in rc5-sz first inserts a pulse and then simply utilizes the generic Manchester encoder available in rc-core. Signed-off-by: Antti Seppälä --- drivers/media/rc/ir-rc5-sz-decoder.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/drivers/media

[RFC PATCH 0/3] rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir

2014-02-08 Thread Antti Seppälä
from sysfs and utilize encoding to convert the scancodes to format understood by the underlying hardware. Antti Seppälä (3): rc-core: Add Manchester encoder (phase encoder) support to rc-core ir-rc5-sz: Add ir encoding support nuvoton-cir: Add support for writing wakeup samples via sysfs

[RFC PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core

2014-02-08 Thread Antti Seppälä
Adding a simple Manchester encoder to rc-core. Manchester coding is used by at least RC-5 protocol and its variants. Signed-off-by: Antti Seppälä --- drivers/media/rc/ir-raw.c | 44 + drivers/media/rc/rc-core-priv.h | 14 + 2 files

[RFC PATCH 3/3] nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback

2014-02-08 Thread Antti Seppälä
. Signed-off-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c | 121 + drivers/media/rc/nuvoton-cir.h | 1 + include/media/rc-core.h| 1 + 3 files changed, 123 insertions(+) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton

Re: [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode

2014-02-08 Thread Antti Seppälä
On 6 February 2014 21:59, James Hogan wrote: > A recent discussion about proposed interfaces for setting up the > hardware wakeup filter lead to the conclusion that it could help to have > the generic capability to encode and modulate scancodes into raw IR > events so that drivers for hardware wit

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-02-05 Thread Antti Seppälä
On 5 February 2014 11:42, James Hogan wrote: > On 05/02/14 09:39, James Hogan wrote: >> Hi Antti, >> >> On 05/02/14 07:03, Antti Seppälä wrote: >>> To wake up with nuvoton-cir we need to program several raw ir >>> pulse/space lengths to the hardware a

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-02-04 Thread Antti Seppälä
On 4 February 2014 19:54, Mauro Carvalho Chehab wrote: > Em Thu, 23 Jan 2014 21:11:09 +0200 > Antti Seppälä escreveu: > >> On 23 January 2014 00:01, Mauro Carvalho Chehab wrote: >> > Not sure if you saw it, but there's already another patchset proposing >> >

Re: [RFCv2 PATCH 5/5] winbond-cir: Add support for reading/writing wakeup scancodes via sysfs

2014-01-31 Thread Antti Seppälä
On 30 January 2014 21:24, Sean Young wrote: > On Sun, Jan 26, 2014 at 11:50:26PM +0200, Antti Seppälä wrote: >> This patch adds support for reading/writing wakeup scancodes via sysfs >> to nuvoton-cir hardware. >> >> The existing mechanism of setting wakeup scancodes by

[RFCv2 PATCH 1/5] rc-core: Add defintions needed for sysfs callback

2014-01-26 Thread Antti Seppälä
Introduce a list for wake code values and add callback for reading / writing it via sysfs. Also introduce bitfields for setting which protocols are allowed and enabled for wakeup. Signed-off-by: Antti Seppälä --- include/media/rc-core.h | 17 + 1 file changed, 17 insertions

[RFCv2 PATCH 2/5] rc-core: Add support for reading/writing wakeup codes via sysfs

2014-01-26 Thread Antti Seppälä
aces. How to read: cat /sys/class/rc/rc?/wakeup_codes How to write: echo "rc-6" > /sys/class/rc/rc?/wakeup_protocols echo "0xd1ab" > /sys/class/rc/rc?/wakeup_codes Signed-off-by: Antti Seppälä --- drivers/media/rc/rc-main.c | 179 ++

[RFCv2 PATCH 5/5] winbond-cir: Add support for reading/writing wakeup scancodes via sysfs

2014-01-26 Thread Antti Seppälä
This patch adds support for reading/writing wakeup scancodes via sysfs to nuvoton-cir hardware. The existing mechanism of setting wakeup scancodes by using module parameters is left untouched. If set the module parameters function as default values for sysfs files. Signed-off-by: Antti Seppälä

[RFCv2 PATCH 4/5] nuvoton-cir: Add support for reading/writing wakeup samples via sysfs

2014-01-26 Thread Antti Seppälä
This patch adds support for reading/writing wakeup samples via sysfs to nuvoton-cir hardware. The sysfs interface for nuvoton-cir contains raw IR pulse/space lengths. If value is negative it is a space, otherwise it is a pulse. Signed-off-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c

[RFCv2 PATCH 0/5] rc: Add generic sysfs interface for handling wakeup codes

2014-01-26 Thread Antti Seppälä
- Added wakeup_protocols file to control which protocol to use with wakeup - Renamed interface to wakeup_code - Clean-up device attribute registration - Ported winbond-cir to use this interface - Brought interface closer to https://patchwork.linuxtv.org/patch/21625/ Antti Seppälä (5): rc-

[RFCv2 PATCH 3/5] rc-loopback: Add support for reading/writing wakeup scancodes via sysfs

2014-01-26 Thread Antti Seppälä
This patch adds sample support for reading/writing the wakeup scancodes to rc-loopback device driver. Signed-off-by: Antti Seppälä --- drivers/media/rc/rc-loopback.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/media/rc/rc-loopback.c b

[PATCH] nuvoton-cir: Don't touch PS/2 interrupts while initializing

2014-01-25 Thread Antti Seppälä
amp;mode=threaded#post12461912 Reported-by: Bruno Maire Tested-by: Bruno Maire Signed-off-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c | 4 drivers/media/rc/nuvoton-cir.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-01-23 Thread Antti Seppälä
On 23 January 2014 00:01, Mauro Carvalho Chehab wrote: > Not sure if you saw it, but there's already another patchset proposing > that, that got submitted before this changeset: > https://patchwork.linuxtv.org/patch/21625/ I actually didn't notice that until now. Seems quite a similar kin

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-01-22 Thread Antti Seppälä
On 22 January 2014 18:29, Sean Young wrote: > On Wed, Jan 22, 2014 at 05:46:28PM +0200, Antti Seppälä wrote: >> On 21 January 2014 14:28, Sean Young wrote: >> > On Mon, Jan 20, 2014 at 09:39:43PM +0200, Antti Seppälä wrote: >> >> This patch series introduces a s

Re: [RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-01-22 Thread Antti Seppälä
On 21 January 2014 14:28, Sean Young wrote: > On Mon, Jan 20, 2014 at 09:39:43PM +0200, Antti Seppälä wrote: >> This patch series introduces a simple sysfs file interface for reading >> and writing wakeup scancodes to rc drivers. >> >> This is an improved version of my

[RFC PATCH 4/4] nuvoton-cir: Add support for reading/writing wakeup scancodes via sysfs

2014-01-20 Thread Antti Seppälä
This patch adds support for reading/writing wakeup scancodes via sysfs to nuvoton-cir hardware. Signed-off-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c | 81 ++ drivers/media/rc/nuvoton-cir.h | 2 ++ 2 files changed, 83 insertions(+) diff --git

[RFC PATCH 3/4] rc-loopback: Add support for reading/writing wakeup scancodes via sysfs

2014-01-20 Thread Antti Seppälä
This patch adds sample support for reading/writing the wakeup scancodes to rc-loopback device driver. Signed-off-by: Antti Seppälä --- drivers/media/rc/rc-loopback.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/media/rc/rc-loopback.c b/drivers

[RFC PATCH 2/4] rc-core: Add support for reading/writing wakeup scancodes via sysfs

2014-01-20 Thread Antti Seppälä
1 0x2 0x3" > /sys/class/rc/rc?/wakeup_scancodes Signed-off-by: Antti Seppälä --- drivers/media/rc/rc-main.c | 129 + 1 file changed, 129 insertions(+) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 02e2f38..a2a68f3

[RFC PATCH 0/4] rc: Adding support for sysfs wakeup scancodes

2014-01-20 Thread Antti Seppälä
odule. Antti Seppälä (4): rc-core: Add defintions needed for sysfs callback rc-core: Add support for reading/writing wakeup scancodes via sysfs rc-loopback: Add support for reading/writing wakeup scancodes via sysfs nuvoton-cir: Add support for reading/writing wakeup scancodes via

[RFC PATCH 1/4] rc-core: Add defintions needed for sysfs callback

2014-01-20 Thread Antti Seppälä
Introduce a list for wake scancode values and add callback for sysfs reads/writes. Signed-off-by: Antti Seppälä --- include/media/rc-core.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/media/rc-core.h b/include/media/rc-core.h index 2f6f1f7..6ee68ac 100644 --- a

[PATCH] nuvoton-cir: Add support for user configurable wake-up codes

2014-01-03 Thread Antti Seppälä
value difference between a single wake-up byte and a sample read from IR to be still considered a match. Default is 5. Signed-off-by: Antti Seppälä --- drivers/media/rc/nuvoton-cir.c | 65 +++--- drivers/media/rc/nuvoton-cir.h | 6 ++-- 2 files changed

[PATCH] Fix sysfs rc protocol lookup for rc-5-sz

2011-02-13 Thread Antti Seppälä
ocol. Signed-off-by: Antti Seppälä --- drivers/media/rc/rc-main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 512a2f4..5b4422e 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -85