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
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
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
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
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
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
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
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
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
>>>
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
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
-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
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
-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
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
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
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
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
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
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:
>>>>
>>>>
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
.
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
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
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:
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
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.
>>>
>
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
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
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
.
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
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
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
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
>> >
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
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
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 ++
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ä
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
- 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-
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
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
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
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
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
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
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
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
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
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
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
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
65 matches
Mail list logo