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 <hkallwe...@gmail.com> 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 tha

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

2015-08-07 Thread Antti Seppälä
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ä a.sepp...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message

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 da...@hardeman.nu 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

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 da...@hardeman.nu wrote: On 2015-05-22 07:27, Antti Seppälä wrote: On 21 May 2015 at 22:40, David Härdeman da...@hardeman.nu 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 da

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 da...@hardeman.nu 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 da...@hardeman.nu 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

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 da...@hardeman.nu wrote: On 2015-05-21 09:53, Antti Seppälä wrote: On 20 May 2015 at 23:45, David Härdeman da...@hardeman.nu 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 da

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 da...@hardeman.nu wrote: On 2015-05-21 13:51, Antti Seppälä wrote: On 21 May 2015 at 12:14, David Härdeman da...@hardeman.nu wrote: I'm talking about ir_raw_encode_scancode() which is entirely broken in its current state. It will, given more than one

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 da...@hardeman.nu 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 da...@hardeman.nu wrote: On 2015-05-21 13:51, Antti Seppälä wrote: On 21 May 2015 at 12:14, David Härdeman da...@hardeman.nu

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 da...@hardeman.nu wrote: On Tue, Mar 31, 2015 at 08:48:06PM +0300, Antti Seppälä wrote: From: James Hogan ja...@albanarts.com Add a callback to raw ir handlers for encoding and modulating a scancode to a set of raw events. This could be used for transmit

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 da...@hardeman.nu 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 da...@hardeman.nu wrote: On Tue, Mar 31, 2015 at 08:48:06PM +0300, Antti Seppälä wrote: From: James Hogan ja...@albanarts.com

[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ä a.sepp...@gmail.com Signed-off-by: James Hogan ja...@albanarts.com Cc: Jarod Wilson ja...@redhat.com --- Notes: Changes in v3: - Ported to apply against latest media-tree - Checkpatch.pl fixes Changes in v2 (James Hogan): - Handle new -ENOBUFS when IR

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

2015-03-31 Thread Antti Seppälä
From: James Hogan ja...@albanarts.com 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 ja...@albanarts.com Signed-off-by: Antti Seppälä

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

2015-03-31 Thread Antti Seppälä
of raw IR encoders. As 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 ja...@albanarts.com Signed-off-by: Antti Seppälä

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

2015-03-31 Thread Antti Seppälä
-by: James Hogan ja...@albanarts.com Signed-off-by: Antti Seppälä a.sepp...@gmail.com Cc: David Härdeman da...@hardeman.nu --- 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

[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ä a.sepp...@gmail.com Cc: James Hogan ja...@albanarts.com Cc: David Härdeman da...@hardeman.nu --- Notes: Changes in v3

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

2015-03-31 Thread Antti Seppälä
that it can continue the 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 ja...@albanarts.com Signed-off-by: Antti Seppälä a.sepp...@gmail.com Cc: David Härdeman da...@hardeman.nu --- Notes

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

2015-03-31 Thread Antti Seppälä
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 ja...@albanarts.com Cc: David Härdeman da...@hardeman.nu Antti Seppälä (3): rc: rc

[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ä a.sepp...@gmail.com Signed-off-by: James Hogan ja...@albanarts.com Cc: David Härdeman da...@hardeman.nu --- Notes: Changes in v3

[RFC PATCH] mn88472: reduce firmware download chunk size

2015-02-19 Thread Antti Seppälä
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. Signed-off-by: Antti

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 benja...@southpole.se 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_config.i2c_wr_max) to 2

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 cr...@iki.fi wrote: On 02/19/2015 06:01 PM, Antti Seppälä wrote: On 19 February 2015 at 17:38, Antti Palosaari cr...@iki.fi wrote: On 02/19/2015 12:21 PM, Antti Seppälä wrote: On 19 February 2015 at 11:43, Benjamin Larsson benja...@southpole.se

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 cr...@iki.fi wrote: On 02/19/2015 12:21 PM, Antti Seppälä wrote: On 19 February 2015 at 11:43, Benjamin Larsson benja...@southpole.se wrote: On 2015-02-19 10:13, Antti Seppälä wrote: It seems that currently the firmware download

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

2014-03-26 Thread Antti Seppälä
discussion... Here's the original discussion: On Monday 10 February 2014 21:45:30 Antti Seppälä wrote: On 10 February 2014 11:58, James Hogan james.ho...@imgtec.com wrote: On Saturday 08 February 2014 13:30:01 Antti Seppälä wrote: Also adding the scancode filter to it would demonstrate its

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 ja...@albanarts.com 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

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 ja...@albanarts.com 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

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

2014-03-16 Thread Antti Seppälä
for hardware 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 rc5-sz and nuvoton-cir

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 ja...@albanarts.com wrote: From: Antti Seppälä a.sepp...@gmail.com 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ä a.sepp...@gmail.com Signed-off

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 ja...@albanarts.com wrote: From: Antti Seppälä a.sepp...@gmail.com 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

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 ja...@albanarts.com 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) Do we want to be so restrictive here? In my

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

2014-03-05 Thread Antti Seppälä
...@suse.cz Cc: Antti Seppälä a.sepp...@gmail.com After reviewing the series and porting my nuvoton changes to it I haven't noticed any errors worth mentioning. In fact I think this series is very well written and should be merged. James, I hope you also have the time to submit the ir encoder

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

2014-02-16 Thread Antti Seppälä
. Signed-off-by: Antti Seppälä a.sepp...@gmail.com Cc: Mauro Carvalho Chehab m.che...@samsung.com Cc: Jarod Wilson ja...@redhat.com --- 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

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

2014-02-16 Thread Antti Seppälä
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: Add

[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ä a.sepp...@gmail.com --- drivers/media/rc/ir-raw.c | 56 + drivers/media/rc/rc-core-priv.h | 16

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 james.ho...@imgtec.com 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 a bit more

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 james.ho...@imgtec.com 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

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 james.ho...@imgtec.com 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. The mechanism used here

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 james.ho...@imgtec.com 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 Seppälä a.sepp

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 james.ho...@imgtec.com 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: Antti Seppälä a.sepp

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 james.ho...@imgtec.com 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

[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ä a.sepp...@gmail.com --- drivers/media/rc/ir-raw.c | 44 + drivers/media/rc/rc-core-priv.h | 14

[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ä a.sepp...@gmail.com --- 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

[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 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ä a.sepp...@gmail.com --- drivers/media/rc/ir-rc5-sz-decoder.c | 35 +++ 1 file changed, 35 insertions(+) diff

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 james.ho...@imgtec.com 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 and not a scancode. James's approach

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 m.che...@samsung.com wrote: Em Thu, 23 Jan 2014 21:11:09 +0200 Antti Seppälä a.sepp...@gmail.com escreveu: On 23 January 2014 00:01, Mauro Carvalho Chehab m.che...@samsung.com wrote: Not sure if you saw it, but there's already another patchset

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 s...@mess.org 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 using module

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

2014-01-26 Thread Antti Seppälä
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-core: Add

[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ä a.sepp...@gmail.com --- drivers/media/rc/rc-loopback.c | 40 1 file changed, 40 insertions(+) diff --git a/drivers/media/rc

[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ä a.sepp...@gmail.com --- drivers/media

[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ä a.sepp...@gmail.com --- include/media/rc-core.h | 17 + 1 file changed

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

2014-01-26 Thread Antti Seppälä
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ä a.sepp...@gmail.com --- drivers/media/rc/rc-main.c | 179 + 1 file changed

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

2014-01-25 Thread Antti Seppälä
=threaded#post12461912 Reported-by: Bruno Maire bruno.ma...@besonet.ch Tested-by: Bruno Maire bruno.ma...@besonet.ch Signed-off-by: Antti Seppälä a.sepp...@gmail.com --- drivers/media/rc/nuvoton-cir.c | 4 drivers/media/rc/nuvoton-cir.h | 1 - 2 files changed, 5 deletions(-) diff --git a/drivers

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 m.che...@samsung.com 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

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 s...@mess.org 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 previous patch

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 s...@mess.org wrote: On Wed, Jan 22, 2014 at 05:46:28PM +0200, Antti Seppälä wrote: On 21 January 2014 14:28, Sean Young s...@mess.org wrote: On Mon, Jan 20, 2014 at 09:39:43PM +0200, Antti Seppälä wrote: This patch series introduces a simple sysfs file

[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ä a.sepp...@gmail.com --- 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

[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ä a.sepp...@gmail.com --- drivers/media/rc/rc-loopback.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/media/rc/rc

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

2014-01-20 Thread Antti Seppälä
0x3 /sys/class/rc/rc?/wakeup_scancodes Signed-off-by: Antti Seppälä a.sepp...@gmail.com --- 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ä
. 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 sysfs

[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ä a.sepp...@gmail.com --- drivers/media/rc/nuvoton-cir.c | 81 ++ drivers/media/rc/nuvoton-cir.h | 2 ++ 2 files changed, 83

[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ä a.sepp...@gmail.com --- drivers/media/rc/nuvoton-cir.c | 65 +++--- drivers/media/rc/nuvoton-cir.h | 6

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

2011-02-13 Thread Antti Seppälä
-by: Antti Seppälä a.sepp...@gmail.com --- 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 @@ -850,7