Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbZK1Qs0 (ORCPT ); Sat, 28 Nov 2009 11:48:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752331AbZK1QsY (ORCPT ); Sat, 28 Nov 2009 11:48:24 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:64823 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752161AbZK1QsW (ORCPT ); Sat, 28 Nov 2009 11:48:22 -0500 Date: 28 Nov 2009 17:47:00 +0100 From: lirc@bartelmus.de (Christoph Bartelmus) To: khc@pm.waw.pl Cc: awalls@radix.net Cc: dmitry.torokhov@gmail.com Cc: j@jannau.net Cc: jarod@redhat.com Cc: jarod@wilsonet.com Cc: jonsmirl@gmail.com Cc: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: maximlevitsky@gmail.com Cc: mchehab@redhat.com Cc: stefanr@s5r6.in-berlin.de Cc: superm1@ubuntu.com Message-ID: In-Reply-To: Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? User-Agent: OpenXP/4.10.7369 (Linux) (i386) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Provags-ID: V01U2FsdGVkX19gf7pUprOCGXVmNNuk/Qwv/14YTlk5vWw19wY w2rpuhOfwKXmY+JKosNIiBqBJ/NpSqTop/SFatVVgoL2/Hw4Hk 2oNnDCxZST6C7Uyopn0xKr5pMI3932J Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1939 Lines: 42 Hi Krzysztof and Maxim, on 28 Nov 09 at 16:44, Krzysztof Halasa wrote: > Maxim Levitsky writes: >> Generic decoder that lirc has is actually much better and more tolerant >> that protocol specific decoders that you propose, > Actually, it is not the case. Why do you think it's better (let alone > "much better")? Have you at least seen my RC5 decoder? Nobody here doubts that you can implement a working RC-5 decoder. It's really easy. I'll give you an example why Maxim thinks that the generic LIRC approach has advantages: Look at the Streamzap remote (I think Jarod submitted the lirc_streamzap driver in his patchset): http://lirc.sourceforge.net/remotes/streamzap/PC_Remote This remote uses RC-5. But some of the developers must have thought that it may be a smart idea to use 14 bits instead the standard 13 bits for this remote. In LIRC you won't care, because this is configurable and irrecord will figure it out automatically for you. In the proposed kernel decoders I have seen until now, you will have to treat this case specially in the decoder because you expect 13 bits for RC-5, not 14. Well, it can be done. But you'll have to add another IR protocol define for RC-5_14, which will become very ugly with many non-standard protocol variations. @Maxim: I think Mauro is right. We need to find an approach that makes everybody happy. We should take the time now to discuss all the possibilities and choose the best solution. LIRC has lived so long outside the kernel, that we can wait another couple of weeks/months until we agreed on something which will be a stable API hopefully for many years to come. Christoph -- 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/