Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752614AbZK1Qps (ORCPT ); Sat, 28 Nov 2009 11:45:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752249AbZK1Qpr (ORCPT ); Sat, 28 Nov 2009 11:45:47 -0500 Received: from qw-out-2122.google.com ([74.125.92.27]:4588 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbZK1Qpq (ORCPT ); Sat, 28 Nov 2009 11:45:46 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lqJhawJuz9naLTdS8wHOnP+9O3E3rse40b+kBTi106D+tWobUI9TwSRwS3XOWsM4kT UexD3OwkpF83jmtFpjR+oLtyaMcFv5SaKa6zeSZI5kmVuqiGoq7CvQfFcshxATwAjziw kiiQRr6i/y3ljqoyNjldYbWmB6pCKYIg7EVI8= MIME-Version: 1.0 In-Reply-To: <1259422559.18747.6.camel@maxim-laptop> References: <9e4733910911270757j648e39ecl7487b7e6c43db828@mail.gmail.com> <4B104971.4020800@s5r6.in-berlin.de> <1259370501.11155.14.camel@maxim-laptop> <1259419368.18747.0.camel@maxim-laptop> <1259422559.18747.6.camel@maxim-laptop> Date: Sat, 28 Nov 2009 11:45:51 -0500 Message-ID: <9e4733910911280845y5cf06836l1640e9fc8b1740cf@mail.gmail.com> Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? From: Jon Smirl To: Maxim Levitsky Cc: Krzysztof Halasa , Stefan Richter , Christoph Bartelmus , jarod@wilsonet.com, awalls@radix.net, dmitry.torokhov@gmail.com, j@jannau.net, jarod@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@redhat.com, superm1@ubuntu.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2340 Lines: 57 On Sat, Nov 28, 2009 at 10:35 AM, Maxim Levitsky wrote: > On Sat, 2009-11-28 at 16:25 +0100, Krzysztof Halasa wrote: >> Maxim Levitsky writes: >> >> >> And that's good. Especially for a popular and simple protocol such as >> >> RC5. >> >> Actually, it's not about adding the decoder. It's about fixing it. >> >> I can fix it. >> > >> > This is nonsense. >> >> You forgot to say why do you think so. > > Because frankly, I am sick of this discussion. > Generic decoder that lirc has is actually much better and more tolerant > that protocol specific decoders that you propose, Porting the decoder engine from lirc into the kernel is also a possibility. I'm asking to have an architecture design discussion, not to pick one of the various implementations. This is something that we have to live with for twenty years and it is a giant pain to change if we get wrong initially. > You claim you 'fix' the decoder, right? > But what about all these lirc userspace drivers? > How they are supposed to use that 'fixed' decoder. Some of that user space hardware belongs in the trash can and will never work reliably in a modern system. For example - sitting in a tight user space loop reading the DTS bit from a serial port or parallel port and then using the system clock to derive IR timings. That process is going to be inaccurate or it is going to make video frames drop. Big banging from user space is completely unreliable. If you really want to use your microphone input as a DAC channel, run a little app that reads the ALSA input and converts it to a timing stream and then inject this data into the kernel input system using uevent. Both of these are hobbyist class solutions. They are extremely cheap but they are unreliable and create large CPU loads. But some people want 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 jonsmirl@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/