All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Nokia N900 (RX51) IR diode support
@ 2012-08-09 12:41 Timo Kokkonen
  2012-08-09 12:41 ` [PATCH 1/2] media: rc: Introduce RX51 IR transmitter driver Timo Kokkonen
  2012-08-09 12:41 ` [PATCH 2/2] ARM: mach-omap2: board-rx51-peripherals: Add lirc-rx51 data Timo Kokkonen
  0 siblings, 2 replies; 6+ messages in thread
From: Timo Kokkonen @ 2012-08-09 12:41 UTC (permalink / raw)
  To: linux-omap, linux-media; +Cc: Timo Kokkonen

These patches add the support for sending IR remote controller codes
on the Nokia N900 phone. The code is taken from the public N900 kernel
release and modified to work with today's kernel.

The code has been tested with a real Nokia N900 device and confirmed
to work. I can identify only one known issue; The IR pulses being sent
become *veeery* long if the device chooses to go into any sleep modes
during transmitting the IR pulses. The driver makes an attempt to set
up PM latency constraints, but apparently those don't apply as there
is currently only no-op PM layer available. Therefore, I guess this
driver doesn't actually work properly unless there is some background
load that prevents the device from enterint sleep modes or the sleep
modes are disabled altogether. However, once a proper PM layer
implementation becomes available, I expect this problem to resolve
itself. The same code used to work with the actual N900 kernel that
has those implemented.

Any comments regarding the patches are welcome.

I guess media list won't take in omap patches and omap list doesn't
take media patches. So I wrote the patches so that they can be applied
independently. If you want me to remove the #ifdef hacks from the
board file (that is needed to break the build dependency between the
patches), then the ir-rx51.c patch needs to be applied before the
board file patch. But I though it would be more flexible this way. I'm
open to suggestions on how you are willing to accept the patches.

Timo Kokkonen (2):
  media: rc: Introduce RX51 IR transmitter driver
  ARM: mach-omap2: board-rx51-peripherals: Add lirc-rx51 data

 arch/arm/mach-omap2/board-rx51-peripherals.c |   27 ++
 drivers/media/rc/Kconfig                     |   10 +
 drivers/media/rc/Makefile                    |    1 +
 drivers/media/rc/ir-rx51.c                   |  496 ++++++++++++++++++++++++++
 drivers/media/rc/ir-rx51.h                   |   10 +
 5 files changed, 544 insertions(+), 0 deletions(-)
 create mode 100644 drivers/media/rc/ir-rx51.c
 create mode 100644 drivers/media/rc/ir-rx51.h

-- 
1.7.8.6


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-09 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 12:41 [PATCH 0/2] Add Nokia N900 (RX51) IR diode support Timo Kokkonen
2012-08-09 12:41 ` [PATCH 1/2] media: rc: Introduce RX51 IR transmitter driver Timo Kokkonen
2012-08-09 13:20   ` Igor Grinberg
2012-08-09 12:41 ` [PATCH 2/2] ARM: mach-omap2: board-rx51-peripherals: Add lirc-rx51 data Timo Kokkonen
2012-08-09 13:19   ` Igor Grinberg
2012-08-09 14:09     ` Timo Kokkonen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.