Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932518AbZLDXPa (ORCPT ); Fri, 4 Dec 2009 18:15:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755084AbZLDXP1 (ORCPT ); Fri, 4 Dec 2009 18:15:27 -0500 Received: from mail-yx0-f187.google.com ([209.85.210.187]:36960 "EHLO mail-yx0-f187.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbZLDXP0 (ORCPT ); Fri, 4 Dec 2009 18:15:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Y9xJX/eTGVurC8au0+yXXwt265McnLm+KTBA61jSBYwI9cZ6LYsyqtSrMhJMUfMtG4 3gpQ7TLwX8RDCVpKkN35fXAOsFr4FUDSBJYanMtgDPH3MsPJN3fvS5ASQSvji5dIS1+G WZ6dPAUt/Q+BJRJKKAap5fTO9GII6eiCcerZU= Date: Fri, 4 Dec 2009 15:15:28 -0800 From: Dmitry Torokhov To: Christoph Bartelmus Cc: awalls@radix.net, j@jannau.net, jarod@redhat.com, jarod@wilsonet.com, jonsmirl@gmail.com, khc@pm.waw.pl, kraxel@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@redhat.com, superm1@ubuntu.com Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? Message-ID: <20091204231527.GA3682@core.coreip.homeip.net> References: <20091204220708.GD25669@core.coreip.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2362 Lines: 56 On Sat, Dec 05, 2009 at 12:01:00AM +0100, Christoph Bartelmus wrote: > Hi Dmitry, > > on 04 Dec 09 at 14:07, Dmitry Torokhov wrote: > > On Fri, Dec 04, 2009 at 10:46:00PM +0100, Christoph Bartelmus wrote: > >> Hi Mauro, > >> > >> on 04 Dec 09 at 12:33, Mauro Carvalho Chehab wrote: > >>> Christoph Bartelmus wrote: > >>>>>> Consider passing the decoded data through lirc_dev. > >> [...] > >>>> Consider cases like this: > >>>> http://lirc.sourceforge.net/remotes/lg/6711A20015N > >>>> > >>>> This is an air-conditioner remote. > >>>> The entries that you see in this config file are not really separate > >>>> buttons. Instead the remote just sends the current settings for e.g. > >>>> temperature encoded in the protocol when you press some up/down key. You > >>>> really don't want to map all possible temperature settings to KEY_* > >>>> events. For such cases it would be nice to have access at the raw scan > >>>> codes from user space to do interpretation of the data. > >>>> The default would still be to pass the data to the input layer, but it > >>>> won't hurt to have the possibility to access the raw data somehow. > >> > >>> Interesting. IMHO, the better would be to add an evdev ioctl to return the > >>> scancode for such cases, instead of returning the keycode. > >> > >> That means you would have to set up a pseudo keymap, so that you can get > >> the key event which you could than react on with a ioctl. Or are you > >> generating KEY_UNKNOWN for every scancode that is not mapped? > >> What if different scan codes are mapped to the same key event? How do you > >> retrieve the scan code for the key event? > >> I don't think it can work this way. > >> > > > EV_MSC/MSC_SCAN. > > How would I get the 64 bit scan codes that the iMON devices generate? > How would I know that the scan code is 64 bit? > input_event.value is __s32. > I suppose we could add MSC_SCAN_END event so that we can transmit "scancodes" of arbitrary length. You'd get several MSC_SCAN followed by MSC_SCAN_END marker. If you don't get MSC_SCAN_END assume the code is 32 bit. FWIW there is MSC_RAW as well. -- Dmitry -- 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/