]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (5246): Budget-ci: IR handling fixups
authorDavid Härdeman <david@hardeman.nu>
Tue, 13 Feb 2007 12:39:58 +0000 (09:39 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:32 +0000 (13:35 -0200)
commitc05c102926126064121cf40929d3e2fcc15dc102
tree081274844ce88110376a0052a09bb98816b67bcc
parentdfa3e48835a8a22fae6b91829288d904904b5cac
V4L/DVB (5246): Budget-ci: IR handling fixups

Commit 9d8191f452b2c547a328c0e36af82ad82aa5c93a Oliver Endriss changed
the budget-ci driver to use interrupt mode for i2c transfers.

This also meant that a new bunch of IR bytes that were previously lost
are now received, which allowed me to better understand how the MSP430
chip works. Unfortunately it also means that the current driver gets
some assumptions wrong and might generate double keypresses for one IR
command.

The attached patch fixes this by throwing away the repeat bytes and by
associating the correct command and device bytes.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/ttpci/budget-ci.c