[PATCH 0/3] ir-core: add imon device driver

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

 



The following series adds a new device driver for the SoundGraph iMON and
Antec Veris IR/display devices commonly found in many home theater pc
cases and as after-market case additions.

This driver was previously submitted as a pure input layer driver, but I
was convinced to port it to the new ir-core infrastructure, so this patch
is against http://git.linuxtv.org/mchehab/ir.git.

With only some minor modifications to ir-core (making an already exported
function public) and reasonably little porting driver-side, I've managed
to finish at least the initial conversion. There's still a local key
release timer in use in the driver that needs to be converted to use
ir-core's keyup timer, and I'm not using ir_keydown due to some serious
quirks in the way the imon hardware decodes IR signals (I need to do my
own key release detection, as there are three different ways a key release
is identified even on the exact same device...), but it does use all the
ir-core keymap loading and parsing code, ir_input_dev, ir_dev_props, etc.

Something I wasn't too sure about... Where exactly should an IR-only device
driver live in the tree? I've put it at drivers/media/IR/imon.c for the
moment, but it might make sense to have a drivers/media/IR/hardware/
directory to drop things like this and the forthcoming lirc_mceusb port
into, rather than intermingling with the core bits.

The most important part: I've tested this out w/actual imon hardware, and
it even works. :)

---

Jarod Wilson (3)
	ir-core: make ir_g_keycode_from_table a public function
	ir-core: add imon pad and mce keymaps
	ir-core: add imon driver

 drivers/media/IR/Kconfig               |   12 +
 drivers/media/IR/Makefile              |    3 +
 drivers/media/IR/imon.c                | 2417 ++++++++++++++++++++++++++++++++
 drivers/media/IR/ir-core-priv.h        |    7 -
 drivers/media/IR/keymaps/Makefile      |    2 +
 drivers/media/IR/keymaps/rc-imon-mce.c |  142 ++
 drivers/media/IR/keymaps/rc-imon-pad.c |  155 ++
 include/media/ir-core.h                |    1 +
 include/media/rc-map.h                 |    2 +
 9 files changed, 2734 insertions(+), 7 deletions(-)

-- 
Jarod Wilson
jarod@xxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux