[media] ir-core: convert drivers/media/video/cx88 to ir-core
authorDavid Härdeman <david@hardeman.nu>
Fri, 29 Oct 2010 19:08:02 +0000 (16:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:35 +0000 (08:16 -0200)
commit2997137be8eba5bf9c07a24d5fda1f4225f9ca7d
tree98e386a7cc5303567183e4effacf8212e638e7af
parent00df055ae315c9c8792dc4d012e6ad9c4d527e87
[media] ir-core: convert drivers/media/video/cx88 to ir-core

This patch converts the cx88 driver (for sampling hw) to use the
decoders provided by ir-core instead of the separate ones provided
by ir-functions (and gets rid of those).

The value for MO_DDS_IO had a comment saying it corresponded to
a 4kHz samplerate. That comment was unfortunately misleading. The
actual samplerate was something like 3250Hz.

The current value has been derived by analyzing the elapsed time
between interrupts for different values (knowing that each interrupt
corresponds to 32 samples).

Thanks to Mariusz Bialonczyk <manio@skyboo.net> for testing my patches
(about one a day for two weeks!) on actual hardware.

Signed-off-by: David Härdeman <david@hardeman.nu>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-functions.c
drivers/media/video/cx88/Kconfig
drivers/media/video/cx88/cx88-input.c
include/media/ir-common.h