Re: Remote that breaks current system (was: IR: Port ene driver...) it.

2010-08-02 Thread Jon Smirl
On Mon, Aug 2, 2010 at 11:12 AM, Jarod Wilson ja...@redhat.com wrote: On Sat, Jul 31, 2010 at 05:53:33PM -0400, Jon Smirl wrote: On Sat, Jul 31, 2010 at 2:51 PM, Andy Walls awa...@md.metrocast.net wrote: ... Since these two protocols have such close timings that systematic errors can cause

Re: Remote that breaks current system

2010-08-02 Thread Jon Smirl
On Mon, Aug 2, 2010 at 12:42 PM, Christoph Bartelmus l...@bartelmus.de wrote: Hi! Jon Smirl jonsm...@gmail.com wrote: [...] Got one. The Streamzap PC Remote. Its 14-bit RC5. Can't get it to properly decode in-kernel for the life of me. I got lirc_streamzap 99% of the way ported over

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-08-01 Thread Jon Smirl
On Sun, Aug 1, 2010 at 5:50 AM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 31 Jul 10 at 14:14, Jon Smirl wrote: On Sat, Jul 31, 2010 at 1:47 PM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 31 Jul 10 at 12:25, Jon Smirl wrote: On Sat, Jul 31, 2010 at 11:12 AM, Andy

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-08-01 Thread Jon Smirl
On Sun, Aug 1, 2010 at 10:00 AM, Jon Smirl jonsm...@gmail.com wrote: On Sun, Aug 1, 2010 at 5:50 AM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 31 Jul 10 at 14:14, Jon Smirl wrote: On Sat, Jul 31, 2010 at 1:47 PM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 31 Jul

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-31 Thread Jon Smirl
On Sat, Jul 31, 2010 at 10:28 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Sat, 2010-07-31 at 09:55 -0400, Andy Walls wrote: On Fri, 2010-07-30 at 15:45 +0300, Maxim Levitsky wrote: On Fri, 2010-07-30 at 08:07 -0400, Jon Smirl wrote: On Fri, Jul 30, 2010 at 8:02 AM, Jon Smirl jonsm

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-31 Thread Jon Smirl
. Maybe something like #define sample_period (1 / (32768 * 1000)) Then don't store this constant in a variable since it will cause a round off. Just use it directly in the computation. Regards, Andy -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-31 Thread Jon Smirl
On Sat, Jul 31, 2010 at 1:47 PM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 31 Jul 10 at 12:25, Jon Smirl wrote: On Sat, Jul 31, 2010 at 11:12 AM, Andy Walls awa...@md.metrocast.net wrote: I think you won't be able to fix the problem conclusively either way.  A lot of how

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-30 Thread Jon Smirl
On Fri, Jul 30, 2010 at 7:36 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Thu, 2010-07-29 at 23:46 -0400, Andy Walls wrote: On Thu, 2010-07-29 at 22:39 -0400, Jon Smirl wrote: On Thu, Jul 29, 2010 at 10:17 PM, Maxim Levitsky maximlevit...@gmail.com wrote: note

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-30 Thread Jon Smirl
On Fri, Jul 30, 2010 at 7:54 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Fri, 2010-07-30 at 07:51 -0400, Jon Smirl wrote: On Fri, Jul 30, 2010 at 7:36 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Thu, 2010-07-29 at 23:46 -0400, Andy Walls wrote: On Thu, 2010-07-29 at 22:39

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-30 Thread Jon Smirl
On Fri, Jul 30, 2010 at 8:02 AM, Jon Smirl jonsm...@gmail.com wrote: On Fri, Jul 30, 2010 at 7:54 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Fri, 2010-07-30 at 07:51 -0400, Jon Smirl wrote: On Fri, Jul 30, 2010 at 7:36 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Thu

Re: Can I expect in-kernel decoding to work out of box?

2010-07-29 Thread Jon Smirl
. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 13/13] IR: Port ene driver to new IR subsystem and enable it.

2010-07-29 Thread Jon Smirl
in the system boot code to fix the register setting. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
On Wed, Jul 28, 2010 at 2:30 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Tue, 2010-07-27 at 22:33 -0400, Jarod Wilson wrote: On Tue, Jul 27, 2010 at 9:29 PM, Jon Smirl jonsm...@gmail.com wrote: On Tue, Jul 27, 2010 at 7:32 PM, Maxim Levitsky maximlevit...@gmail.com wrote: On Wed

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
zero? -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
On Wed, Jul 28, 2010 at 10:24 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Wed, 2010-07-28 at 10:13 -0300, Mauro Carvalho Chehab wrote: Em 28-07-2010 07:40, Jon Smirl escreveu: On Wed, Jul 28, 2010 at 2:30 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Tue, 2010-07-27 at 22

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
On Wed, Jul 28, 2010 at 11:56 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 28-07-2010 11:41, Jon Smirl escreveu: It's possible to build a Linux IR decoder engine that can be loaded with the old LIRC config files. I think it is a good idea to have a decoder that works

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
On Wed, Jul 28, 2010 at 1:02 PM, Andy Walls awa...@md.metrocast.net wrote: On Wed, 2010-07-28 at 12:42 -0300, Mauro Carvalho Chehab wrote: Em 28-07-2010 11:53, Jon Smirl escreveu: On Wed, Jul 28, 2010 at 10:38 AM, Andy Walls awa...@md.metrocast.net wrote: On Wed, 2010-07-28 at 09:46 -0400

Re: Can I expect in-kernel decoding to work out of box?

2010-07-28 Thread Jon Smirl
On Wed, Jul 28, 2010 at 1:21 PM, Andy Walls awa...@md.metrocast.net wrote: On Wed, 2010-07-28 at 13:04 -0400, Jon Smirl wrote: On Wed, Jul 28, 2010 at 11:56 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 28-07-2010 11:41, Jon Smirl escreveu: Are there any IR protocols less than 20

Re: [PATCH 1/3] IR: add core lirc device interface

2010-06-05 Thread Jon Smirl
On Sat, Jun 5, 2010 at 1:24 PM, Andy Walls awa...@md.metrocast.net wrote: On Fri, 2010-06-04 at 14:57 -0400, Jon Smirl wrote: On Fri, Jun 4, 2010 at 2:38 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 04-06-2010 12:51, Christoph Bartelmus escreveu: Hi Mauro, on 04 Jun 10 at 01

Re: [PATCH 1/3] IR: add core lirc device interface

2010-06-04 Thread Jon Smirl
check for the proper sysfs nodes to know what version of the driver is being used. It will need access sysfs anyway, to enable the lirc decoder. Cheers, Mauro. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message

Re: [PATCH 1/3] IR: add core lirc device interface

2010-06-04 Thread Jon Smirl
On Fri, Jun 4, 2010 at 5:17 PM, Jarod Wilson ja...@wilsonet.com wrote: On Fri, Jun 4, 2010 at 4:17 PM, Jarod Wilson ja...@redhat.com wrote: On Fri, Jun 04, 2010 at 02:57:04PM -0400, Jon Smirl wrote: ... From what I'm seeing, those are the current used ioctls: +#define LIRC_GET_FEATURES

Re: [PATCH 00/15] ir-core: Several improvements to allow adding LIRC and decoder plugins

2010-04-24 Thread Jon Smirl
transaction. I don't remember if I got around to implementing that. That same chardev could also be used to implement TX, once a suitable interface has been fleshed out. The end result might not look exactly like lirc... -- David Härdeman -- Jon Smirl jonsm...@gmail.com -- To unsubscribe

Re: [PATCH 00/15] ir-core: Several improvements to allow adding LIRC and decoder plugins

2010-04-24 Thread Jon Smirl
On Sat, Apr 24, 2010 at 10:15 AM, David Härdeman da...@hardeman.nu wrote: On Sat, Apr 24, 2010 at 08:35:48AM -0400, Jon Smirl wrote: On Sat, Apr 24, 2010 at 1:22 AM, David Härdeman da...@hardeman.nu wrote: On Fri, Apr 23, 2010 at 06:20:28PM -0400, Andy Walls wrote: Not that my commit rate

Re: [PATCH 00/15] ir-core: Several improvements to allow adding LIRC and decoder plugins

2010-04-24 Thread Jon Smirl
mappings. My radio receivers show up as network devices. So I have multiple devices too. I don't think we want a 'rc' device. The IR transceiver should be an 'ir' device. My radios are already 'net' devices. So my complaint really is, I don't want an three devices - input, rc and net. -- Jon Smirl

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-10 Thread Jon Smirl
and it is clearly indicated what's mark and what's duration. If all three of you agree on this approach, I'll write a patch to convert ir-core to use it instead. Fine with me. -- David Härdeman -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Jon Smirl
...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Jon Smirl
be a good idea. -- Jarod Wilson ja...@redhat.com -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC3] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-09 Thread Jon Smirl
On Fri, Apr 9, 2010 at 10:00 AM, Mauro Carvalho Chehab mche...@infradead.org wrote: Jon Smirl wrote: +/* macros for ir decoders */ +#define PULSE(units)                         ((units)) +#define SPACE(units)                         (-(units)) Encoding pulse vs space with a negative sign

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2010-04-09 Thread Jon Smirl
pattern match. An enterprising hacker can probably change the firmware in the existing devices. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [RFC2] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-08 Thread Jon Smirl
of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [RFC] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-07 Thread Jon Smirl
of the equipment sees the command in parallel. The protocols are designed so that parallel decode works properly. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [RFC] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-07 Thread Jon Smirl
the entire message into the decoders. -- Cheers, Mauro -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC2] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-07 Thread Jon Smirl
years. So far no one has complained about it (they have complained about my pilot errors using it). -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [RFC2] Teach drivers/media/IR/ir-raw-event.c to use durations

2010-04-07 Thread Jon Smirl
/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 00/15] ir-core: Several improvements to allow adding LIRC and decoder plugins

2010-04-01 Thread Jon Smirl
-- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-15 Thread Jon Smirl
of the ir-common module. Cheers, Mauro. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-15 Thread Jon Smirl
On Tue, Dec 15, 2009 at 3:19 PM, Pavel Machek pa...@ucw.cz wrote: On Tue 2009-12-15 15:14:02, Jon Smirl wrote: On Tue, Dec 15, 2009 at 2:58 PM, Pavel Machek pa...@ucw.cz wrote: Hi!       (11) if none is against renaming IR as RC, I'll do it on a next patch; Call it irc -- infrared

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-15 Thread Jon Smirl
On Tue, Dec 15, 2009 at 3:33 PM, Pavel Machek pa...@ucw.cz wrote: On Tue 2009-12-15 15:29:51, Jon Smirl wrote: On Tue, Dec 15, 2009 at 3:19 PM, Pavel Machek pa...@ucw.cz wrote: On Tue 2009-12-15 15:14:02, Jon Smirl wrote: On Tue, Dec 15, 2009 at 2:58 PM, Pavel Machek pa...@ucw.cz wrote

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-15 Thread Jon Smirl
On Tue, Dec 15, 2009 at 3:45 PM, Jon Smirl jonsm...@gmail.com wrote: On Tue, Dec 15, 2009 at 3:33 PM, Pavel Machek pa...@ucw.cz wrote: Untrue. Like ethernets and wifis, bluetooth devices have unique addresses. Communication is bidirectional. I read a little about how Bluetooth remotes work

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
. -- To unsubscribe from this list: send the line unsubscribe linux-input in the body of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 6:17 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Mon, Dec 7, 2009 at 6:44 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Where is the documentation for the protocol? I'm not sure what you're meaning here. I've started a doc about IR

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
that an address equal to 0x1e is Hauppauge. Cheers, Mauro. -- To unsubscribe from this list: send the line unsubscribe linux-input in the body of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 8:40 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 7:35 AM, Andy Walls awa...@radix.net wrote: On Mon, 2009-12-07 at 20:22 -0800, Dmitry Torokhov wrote: On Mon, Dec 07, 2009 at 09:42:22PM -0500, Andy Walls wrote: So I'll

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 8:59 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:30 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Andy Walls wrote: On Mon, 2009-12-07 at 20:22 -0800, Dmitry Torokhov wrote: On Mon, Dec 07, 2009 at 09:42:22PM

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 9:16 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:40 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 7:35 AM, Andy Walls awa...@radix.net wrote: On Mon, 2009-12-07 at 20:22

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-08 Thread Jon Smirl
. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 9:34 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:59 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:30 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Andy Walls wrote

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 9:40 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 9:16 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:40 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-08 Thread Jon Smirl
can wake the kthread only after 16 events for really simple decoders, or if a timeout event is detected. The number of events to wake may be customized per decoder. Cheers, Mauro. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-12-08 Thread Jon Smirl
On Tue, Dec 8, 2009 at 11:27 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 9:34 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Tue, Dec 8, 2009 at 8:59 AM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-07 Thread Jon Smirl
On Mon, Dec 7, 2009 at 6:44 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Let me add my view for those questions. Jon Smirl wrote: On Sun, Dec 6, 2009 at 3:34 PM, Krzysztof Halasa k...@pm.waw.pl wrote: Jon Smirl jonsm...@gmail.com writes: Once again: how about agreement about the LIRC

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-07 Thread Jon Smirl
. Decoding down to the scancodes probably happens over in the networking code. After an in-kernel IR decoder runs it needs to hand off the scancodes into the input subsystem. This same API can be used by the networking code to hand off RF scancodes. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-06 Thread Jon Smirl
On Sun, Dec 6, 2009 at 7:12 AM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 04 Dec 09 at 19:28, Jon Smirl wrote: BTW, I just came across a XMP remote that seems to generate 3x64 bit scan codes. Anyone here has docs on the XMP protocol? Assuming a general purpose receiver

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-06 Thread Jon Smirl
-complete design for an in-kernel IR system before anything is merged from any source. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-06 Thread Jon Smirl
On Sun, Dec 6, 2009 at 3:34 PM, Krzysztof Halasa k...@pm.waw.pl wrote: Jon Smirl jonsm...@gmail.com writes: Once again: how about agreement about the LIRC interface (kernel-userspace) and merging the actual LIRC code first? In-kernel decoding can wait a bit, it doesn't change any kernel-user

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-04 Thread Jon Smirl
be extracted from the LIRC code and turned into modules. Where are IR repeat bits going to be handled? -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-04 Thread Jon Smirl
to transmit. My goal was to make it simple for people to do really basic tasks like using a remote to pause their music player. Something like: plug in MSMCE receiver, program remote to send codes for Sony CR-114 mp3 player, hit pause button, music stops. -- Jon Smirl jonsm...@gmail.com

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-04 Thread Jon Smirl
On Fri, Dec 4, 2009 at 8:48 PM, Andy Walls awa...@radix.net wrote: On Fri, 2009-12-04 at 19:28 -0500, Jon Smirl wrote: On Fri, Dec 4, 2009 at 6:01 PM, Christoph Bartelmus l...@bartelmus.de wrote: BTW, I just came across a XMP remote that seems to generate 3x64 bit scan codes. Anyone here

Re: [RFC v2] Another approach to IR

2009-12-03 Thread Jon Smirl
) to implement Jon's filter idea of splitting one evdev interface into several evdevs interface, one for each address. We should not forget that simple IR's don't have any key to select the address, so the produced codes there will never have KEY_TV/KEY_DVD, etc. Cheers, Mauro. -- Jon Smirl

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-12-03 Thread Jon Smirl
to 32 bits (keeping compatibility of course) - Maybe adding new ioctl to zap the keymap table - Adding more key EV_KEY/KEY_* definitons, if needed Aren't EV_IR events needed so that an app for building keymaps can be written? Normal apps would not use EV_IR events. -- Jon Smirl jonsm

Re: [RFC v2] Another approach to IR

2009-12-02 Thread Jon Smirl
to transmit IR codes. Cheers, Mauro. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC v2] Another approach to IR

2009-12-02 Thread Jon Smirl
On Wed, Dec 2, 2009 at 2:50 PM, Jon Smirl jonsm...@gmail.com wrote: On Wed, Dec 2, 2009 at 2:33 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Dmitry Torokhov wrote: The raw interface applies only to the devices that doesn't have a hardware decoder (something between 40%-60

Re: [RFC v2] Another approach to IR

2009-12-02 Thread Jon Smirl
On Wed, Dec 2, 2009 at 3:04 PM, Jarod Wilson ja...@wilsonet.com wrote: On Dec 2, 2009, at 2:56 PM, Dmitry Torokhov wrote: On Wed, Dec 02, 2009 at 02:22:18PM -0500, Jarod Wilson wrote: On 12/2/09 12:30 PM, Jon Smirl wrote: (for each remote/substream that they can recognize). I'm assuming

Re: [RFC v2] Another approach to IR

2009-12-02 Thread Jon Smirl
On Wed, Dec 2, 2009 at 9:22 PM, Mauro Carvalho Chehab mche...@redhat.com wrote: Jon Smirl wrote: On Wed, Dec 2, 2009 at 3:04 PM, Jarod Wilson ja...@wilsonet.com wrote: On Dec 2, 2009, at 2:56 PM, Dmitry Torokhov wrote: On Wed, Dec 02, 2009 at 02:22:18PM -0500, Jarod Wilson wrote: On 12/2/09

Re: [RFC v2] Another approach to IR

2009-12-02 Thread Jon Smirl
device codes. Using things like Alt-Tab to switch apps is impossible. There's no screen to look at. -- Jarod Wilson ja...@wilsonet.com -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

[RFC v2] Another approach to IR

2009-12-01 Thread Jon Smirl
decode engines are in the kernel. The raw data will come in, run through the engines, and pop out as evdev messages with a vendor/device/command triplet. Devices that decode in hardware will just send vendor/device/command triplets. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list

Re: [RFC v2] Another approach to IR

2009-12-01 Thread Jon Smirl
On Tue, Dec 1, 2009 at 10:47 AM, Maxim Levitsky maximlevit...@gmail.com wrote: On Tue, 2009-12-01 at 10:08 -0500, Jon Smirl wrote: While reading all of these IR threads another way of handling IR occurred to me that pretty much eliminates the need for LIRC and configuration files in default

Re: [RFC v2] Another approach to IR

2009-12-01 Thread Jon Smirl
protocols. I'm not sure if you can write those bits back into evdev to turn a feature off/on. If not its something that could be added to evdev. I agree that there is no consistency in the existing driver implementations. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-30 Thread Jon Smirl
-- To unsubscribe from this list: send the line unsubscribe linux-input in the body of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-30 Thread Jon Smirl
...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-30 Thread Jon Smirl
On Sun, Nov 29, 2009 at 7:01 AM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 27 Nov 09 at 12:49, Jon Smirl wrote: [...] Christoph, take what you know from all of the years of working on LIRC and design the perfect in-kernel system. This is the big chance to redesign IR support

Re: [IR-RFC PATCH v4 2/6] Core IR module

2009-11-29 Thread Jon Smirl
-send.buffer[ir-send.count++] = abs(delta); +     } + +     ir-xmit(ir-private, ir-send.buffer, ir-send.count, ir-raw.carrier, ir-raw.xmitter); + +     return count; +} What type of data are you expecting here?  More than one value? thanks, greg k-h -- Jon Smirl jonsm...@gmail.com

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-29 Thread Jon Smirl
keyboard and mouse drivers. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-29 Thread Jon Smirl
input layer IR interface, does it? -- Krzysztof Halasa -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
to use a $300 CPU to eliminate $2 worth of IR hardware. This type of hardware will continue to work via event injection. But neither of these solutions belong in the kernel. What are other examples of user space IR drivers? -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
- put IR on equal footing. 2) Specific tools (xmodmap, setkeycodes, etc or the LIRC ones) or generic tools (ls, mkdir, echo) for configuration Once consensus is reached in those two areas everything else should be much easier. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 12:35 PM, Krzysztof Halasa k...@pm.waw.pl wrote: Jon Smirl jonsm...@gmail.com writes: There are two very basic things that we need to reach consensus on first. 1) Unification with mouse/keyboard in evdev - put IR on equal footing. 2) Specific tools (xmodmap

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 1:45 PM, Maxim Levitsky maximlevit...@gmail.com wrote: On Sat, 2009-11-28 at 11:45 -0500, Jon Smirl wrote: What are other examples of user space IR drivers? many libusb based drivers? If these drivers are for specific USB devices it is straight forward to turn them

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 1:17 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: There are two very basic things that we need to reach consensus on first. 1) Unification with mouse/keyboard in evdev - put IR on equal footing. 2) Specific tools (xmodmap, setkeycodes, etc

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 2:30 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: If these drivers are for specific USB devices it is straight forward to turn them into kernel based drivers. If we are going for plug and play this needs to happen. All USB device drivers can

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 2:45 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: Also, how do you create the devices for each remote? You would need to create these devices before being able to do EVIOCSKEYCODE to them. The input subsystem creates devices on behalf of input

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 2:55 PM, Krzysztof Halasa k...@pm.waw.pl wrote: Jon Smirl jonsm...@gmail.com writes: EVIOCSKEYCODE is lacking, first parameter is an INT. Some decoded IR codes are over 32b. Christoph posted an example that needs 128b. This only means that the existing interface

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 3:29 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: On Sat, Nov 28, 2009 at 2:45 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: Also, how do you create the devices for each remote? You would need to create these devices

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
On Sat, Nov 28, 2009 at 4:46 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: On Sat, Nov 28, 2009 at 3:29 PM, Stefan Richter stef...@s5r6.in-berlin.de wrote: Jon Smirl wrote: We have one IR receiver device and multiple remotes. How does the input system know how many

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-28 Thread Jon Smirl
into the five apps? I did it by creating five evdev devices each mapping 40 scancodes. That's lets me reuse KP_1 for each of the five apps. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-11-27 Thread Jon Smirl
On Fri, Nov 27, 2009 at 2:33 AM, Christoph Bartelmus l...@bartelmus.de wrote: Hi Jon, on 27 Nov 09 at 00:06, Jon Smirl wrote: [...] code for the fun of it, I have no commercial interest in IR. I was annoyed with how LIRC handled Sony remotes on my home system. Can you elaborate

[RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-27 Thread Jon Smirl
. When designing the key mapping in the kernel you should be aware that there are remotes out there that send a sequence of scan codes for some buttons, e.g. http://lirc.sourceforge.net/remotes/pioneer/CU-VSX159 This is good input. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-27 Thread Jon Smirl
integrated with Linux - put IR on equal footing with the keyboard and mouse as it should be. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [RFC] What are the goals for the architecture of an in-kernel IR system?

2009-11-27 Thread Jon Smirl
On Fri, Nov 27, 2009 at 2:03 PM, Ferenc Wagner wf...@niif.hu wrote: Jon Smirl jonsm...@gmail.com writes: On Fri, Nov 27, 2009 at 12:29 PM, Christoph Bartelmus l...@bartelmus.de wrote: Maybe we decide to take the existing LIRC system as is and not integrate it into the input subsystem

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-11-26 Thread Jon Smirl
as if the event originated in the kernel. - Sure you could push the protocol decoding code (RC5, etc) into user space. Seems like a lot of hassle to move about 3KB of code out of the kernel. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-11-26 Thread Jon Smirl
with a device specific user space interface for IR. I believe all new input devices should implement the evdev framework. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info

[IR-RFC PATCH v4 1/6] Minimal changes to the core input system

2009-11-26 Thread Jon Smirl
Minimal changes to the core input system. The bulk of IR support loads as a module. These changes are passive if the rest of IR isn't loaded. Jon Smirl jonsm...@gmail.com --- drivers/input/input.c | 17 + include/linux/input.h | 75

[IR-RFC PATCH v4 6/6] Microsoft mceusb2 driver for in-kernel IR subsystem

2009-11-26 Thread Jon Smirl
USB device commonly found on Microsoft Media Center boxes. Hardware can send and recieve at all common IR frequencies - 36K, 38K, 40K, 56K --- drivers/input/ir/Kconfig |6 drivers/input/ir/Makefile |1 drivers/input/ir/ir-mceusb2.c | 745

[IR-RFC PATCH v4 5/6] Example of PowerPC device tree support for GPT based IR

2009-11-26 Thread Jon Smirl
--- arch/powerpc/boot/dts/dspeak01.dts | 19 --- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/boot/dts/dspeak01.dts b/arch/powerpc/boot/dts/dspeak01.dts index 429bb2f..50cc247 100644 --- a/arch/powerpc/boot/dts/dspeak01.dts +++

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-11-26 Thread Jon Smirl
from IR hex codes to keycodes that an app is interested in. Usually there is a 1:1 correspondence between remote and app but there doesn't have to be. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

Re: [IR-RFC PATCH v4 0/6] In-kernel IR support using evdev

2009-11-26 Thread Jon Smirl
. The same idea is behind getting rid of IOCTLs and using sysfs. Normal Unix commands can manipulate sysfs. IOCTLs have problems with strace, endianess and the size of int (32/64b). -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body

Re: [IR-RFC PATCH v4 0/6] In-kernel IR support using evdev

2009-11-26 Thread Jon Smirl
strategy, even more so than a hybrid approach. The in-kernel implementation will then be free to evolve without the constraint of legacy APIs. As people become happy with it they can switch over. -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux

Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure

2009-11-26 Thread Jon Smirl
step up and own this. They are the ones that would benefit the most. Jarod would probably be open to some consulting, right? -- Jon Smirl jonsm...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo

Re: RFC: proposal for new i2c.h macro to initialize i2c address lists on the fly

2009-06-07 Thread Jon Smirl
On Sun, Jun 7, 2009 at 2:35 AM, Hans Verkuilhverk...@xs4all.nl wrote: On Sunday 07 June 2009 00:20:26 Jon Smirl wrote: On Sat, Jun 6, 2009 at 9:00 AM, Hans Verkuilhverk...@xs4all.nl wrote: Hi all, For video4linux we sometimes need to probe for a single i2c address. Normally you would do

Re: RFC: proposal for new i2c.h macro to initialize i2c address lists on the fly

2009-06-07 Thread Jon Smirl
On Sun, Jun 7, 2009 at 9:25 AM, Jon Smirljonsm...@gmail.com wrote: On Sun, Jun 7, 2009 at 2:35 AM, Hans Verkuilhverk...@xs4all.nl wrote: On Sunday 07 June 2009 00:20:26 Jon Smirl wrote: On Sat, Jun 6, 2009 at 9:00 AM, Hans Verkuilhverk...@xs4all.nl wrote: Hi all, For video4linux we

  1   2   >