Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753810AbZK0CxX (ORCPT ); Thu, 26 Nov 2009 21:53:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753751AbZK0CxW (ORCPT ); Thu, 26 Nov 2009 21:53:22 -0500 Received: from mail-in-05.arcor-online.net ([151.189.21.45]:33520 "EHLO mail-in-05.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbZK0CxU (ORCPT ); Thu, 26 Nov 2009 21:53:20 -0500 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-10.arcor-online.net 0C18B28ECC3 Subject: Re: [RFC] Should we create a raw input interface for IR's ? - Was: Re: [PATCH 1/3 v2] lirc core device driver infrastructure From: hermann pitton To: Trent Piepho Cc: Mauro Carvalho Chehab , Krzysztof Halasa , Jarod Wilson , Dmitry Torokhov , linux-kernel@vger.kernel.org, Mario Limonciello , linux-input@vger.kernel.org, linux-media@vger.kernel.org, Janne Grunau , Christoph Bartelmus In-Reply-To: References: <200910200956.33391.jarod@redhat.com> <200910200958.50574.jarod@redhat.com> <4B0A765F.7010204@redhat.com> <4B0A81BF.4090203@redhat.com> <4B0AC65C.806@redhat.com> <4B0E765C.2080806@redhat.com> <4B0ED238.6060306@redhat.com> Content-Type: text/plain Date: Fri, 27 Nov 2009 03:50:13 +0100 Message-Id: <1259290213.3253.11.camel@pc07.localdom.local> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-5.fc8) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2425 Lines: 54 Am Donnerstag, den 26.11.2009, 14:59 -0800 schrieb Trent Piepho: > On Thu, 26 Nov 2009, Mauro Carvalho Chehab wrote: > > >> See above. Also, several protocols have a way to check if a keystroke were > > >> properly received. When handling just one protocol, we can use this to double > > >> check the key. However, on a multiprotocol mode, we'll need to disable this > > >> feature. > > > > > > I don't think so. We can pass the space/mark data to all (configured, > > > i.e. with active mapping) protocol handlers at once. Should a check > > > fail, we ignore the data. Perhaps another protocol will make some sense > > > out of it. > > > > What happens if it succeeds on two protocol handlers? > > Then you use the protocol that fits best. For instance decoding with one > protocol might produce a scancode that isn't assigned to any key, while > another protocol produces an assigned scancode. Clearly then the latter is > most likely to be correct. It also possible to have a space/mark length > that is within the allowable tolerances for one remote, but is even closer > another remote. You don't want to just find *a* match, you want to find > the *best* match. > > The in kernel code in v4l is very simple in that it is only designed to > work with one procotol and one remote. Once you have multiple remotes of > any type things become much more complicted. Keep in mind that remotes > that aren't even intended to be used with the computer but are used in the > same room will still be received by the receiver. It's not enough to > decode the signals you expect to receive, you must also not get confused by > random signals destined for somewhere else. Giving some random living room these days, likely open to the kids rooms, you have to take that into account. Another point, if decoding from IRQs generated by the remote, there is flawed hardware around, needing to poll IRQs in some timely manner to get it to something at all. This will break such remotes. Never seen? For me the first priority is, that existing remotes are not broken. Don't tell you have done a nice job just now, but are unfortunately in need of testers ... Cheers, Hermann -- 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/