]> git.karo-electronics.de Git - mv-sheeva.git/commit
V4L/DVB: cx25840: Add support for CX2388[57] A/V core integrated IR controllers
authorAndy Walls <awalls@md.metrocast.net>
Mon, 19 Jul 2010 01:08:03 +0000 (22:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:55 +0000 (23:42 -0300)
commit52fd3dda130d03ae5c2bbdcbe81f6e083c051e12
tree1b391a39d888314fe8ed3ac968a2384898938b3b
parent260e689ba237fb513b49e98841d98e93ea639c75
V4L/DVB: cx25840: Add support for CX2388[57] A/V core integrated IR controllers

This patch is primarily a port of the integrated IR controller code in
cx23885/cx23888-ir.c.  Right now, only the CX2388[57] AV core will
really try to set up IR. This IR support, by design, still requires the
bridge driver to do final IO pin mux configuration and setup of the IR
controller parameters.

For the CX2388[578] chips, enabling the AV Core for IR also starts
sending Audio and Video interrupts to the bridge driver.  For
CX2388[578] chips audio and video interrupts are ignored and
acknowledged when they happen.

IR interrupt handling and status logging is exluded for the CX23888
which does not have an IR controller on the AV core.

Note that experimentation reveals that the IR irq enables on the
CX23885 have an inverted logic sense.  The CX23887 likely suffers from
the same quirk.  For these chips, those irq enable bits are handled
as interrupt disables.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx25840/Makefile
drivers/media/video/cx25840/cx25840-core.c
drivers/media/video/cx25840/cx25840-core.h
drivers/media/video/cx25840/cx25840-ir.c [new file with mode: 0644]