bttv9 + saa7134 + IR + input layer ...

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



  Hi,

People following the snapshots closely might have noticed already that
I've started adding input layer support for the infrared remote
controls to the drivers.  For bttv this new stuff will coexist with the
current lirc drivers.  For saa7134 it very likely will be the only way
to receive input from the remote control.  I'm not going to add a very
hackish gpio interface for other kernel modules again.

What is there now:

 * [both] a ir-common.[ch] module with some common code for IR remote
   controls.
 * [bttv] a ir-kbd-i2c.c module which supports i2c IR chips (i.e.
   replaces lirc_i2c).  Currently supports Hauppauge only, others
   need fixes.  Requires a 2.6.x kernel.
 * [bttv] there is a new bttv-input.c source file with gpio remote
   control support.  Avermedia should work, others need fixes.
 * [saa7134] there is a new saa7134-input.c file ...
   That one has a debug printk only for now which should print
   something into the kernel log for flyvideo cards.

If you press a key on the remote these events will be passed as key
press and release events to the input layer.  The IR remote will act
very much like a keyboard, with auto-repeat and all that.  auto-repeat
can be disabled through (repeat=0 insmod option for ir-common).

If you want to play with / debug that stuff you might want to download
http://bytesex.org/snapshot/input-<date>.tar.gz with some input layer
userspace tools (list devices, dump input events, change keycode maps,
...).  Don't forget to load the evdev module for that.

If you prefere to have your IR keys processed by lircd, not as keyboard
key strokes, you might check out the latest lirc cvs.  lircd recently
got support for receiving input from /dev/input/event<n>.  I havn't
tested that myself yet through.

To build the latest driver snapshots you either need a 2.4.0-test[34]
kernel or a 2.4.22 kernel with bytesex.org patches.

Comments?  Questions?  Flames?  Patches?

  Gerd

-- 
You have a new virus in /var/mail/kraxel




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux