Skip to content

Commit

Permalink
[media] media: rc: Introduce RX51 IR transmitter driver
Browse files Browse the repository at this point in the history
This is the driver for the IR transmitter diode found on the Nokia
N900 (also known as RX51) device. The driver is mostly the same as
found in the original 2.6.28 based kernel that comes with the device.

The following modifications have been made compared to the original
driver version:

- Adopt to the changes that has happen in the kernel during the past
  five years, such as the change in the include paths

- The OMAP DM-timers require much more care nowadays. The timers need
  to be enabled and disabled or otherwise many actions fail. Timers
  must not be freed without first stopping them or otherwise the timer
  cannot be requested again.

The code has been tested with sending IR codes with N900 device
running Debian userland. The device receiving the codes was Anysee
DVB-C USB receiver.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Timo Kokkonen authored and Mauro Carvalho Chehab committed Aug 13, 2012
1 parent 65d9bc9 commit c332e84
Show file tree
Hide file tree
Showing 4 changed files with 517 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/media/rc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ config IR_TTUSBIR
To compile this driver as a module, choose M here: the module will
be called ttusbir.

config IR_RX51
tristate "Nokia N900 IR transmitter diode
depends on MACH_NOKIA_RX51 && OMAP_DM_TIMER
---help---
Say Y or M here if you want to enable support for the IR
transmitter diode built in the Nokia N900 (RX51) device.

The driver uses omap DM timers for gereating the carrier
wave and pulses.

config RC_LOOPBACK
tristate "Remote Control Loopback Driver"
depends on RC_CORE
Expand Down
1 change: 1 addition & 0 deletions drivers/media/rc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ obj-$(CONFIG_IR_FINTEK) += fintek-cir.o
obj-$(CONFIG_IR_NUVOTON) += nuvoton-cir.o
obj-$(CONFIG_IR_ENE) += ene_ir.o
obj-$(CONFIG_IR_REDRAT3) += redrat3.o
obj-$(CONFIG_IR_RX51) += ir-rx51.o
obj-$(CONFIG_IR_STREAMZAP) += streamzap.o
obj-$(CONFIG_IR_WINBOND_CIR) += winbond-cir.o
obj-$(CONFIG_RC_LOOPBACK) += rc-loopback.o
Expand Down
Loading

0 comments on commit c332e84

Please sign in to comment.