Re: haupauge remote keycode for av7110_loadkeys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 20, 2009 at 6:01 PM, Mauro Carvalho Chehab
<mchehab@xxxxxxxxxxxxx> wrote:
>> * It doesn't work with all drivers (like the dib0700)
>
> Unfortunately, dib0700 doesn't properly implement the input interface.

This is something I wanted to rework but had not gotten around to it yet.

>> * The interactions with lircd is inconsistent across drivers.
>
> I've stopped using LIRC a long time ago. It used to be hard to configure, and
> to produce huge dumps of errors, if the device got disconnected by removing the
> module or the usb stick. Not sure what changed on lirc since then.

You may not be using lircd, but I am quite confident that others do,
based on the traffic on the ML.  In fact, some use lircd to work
around their devices not working with dib0700, so any change to make
dib0700 more consistent with some of the other devices will likely
result in breakage for those users.

> I agree that the IR tables need some adjustments to make they more consistent.
> For example, IMO, it is a really bad idea to map any IR key into KEY_POWER,
> since, if you press it wanting to stop your video app, it will, instead, power
> down the machine. KEY_POWER2 is better, since it can be handled only at the
> video apps.

Does this approach handle things like keymaps that are not for RC5
based remote controls?  Also, how does this approach allow for telling
the IR receiver what format to capture in (NEC/RC5/RC6)?

Admittedly I don't know the answers to these questions myself, which
is why both the dib0700 and em28xx drivers only support RC5, even
though both chips support other formats (the dib0700 supports RC5/RC6
and the em28xx supports NEC/RC5/RC6).  If we had a consistent scheme
for specifying what format a keymap is in, I could make sure the chip
is in the correct mode (I have all the relevant information for both
chips).

The real question lies in where to draw the line between what should
be done in userland versus what should be done in the kernel?  At one
end of the spectrum, you could argue that the kernel should really be
representing the devices as RC5/RC6 receivers, and all the translation
to keycodes should be done in userland by something such as lircd, and
on the other end of the spectrum is that everything should be in
kernel and there should never be a need for lircd and there should
just be an API for loading any lirc keymap into the kernel.

The whole topic is a *huge* source of confusion for most people,
including the developers, given that the approach varies by device and
the variety of ways people workaround the condition of "my remote
doesn't work", some of which involve the use of lircd.

Devin

-- 
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux