upstream: au0828-input: Be sure that IR is enabled at polling
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 7 Aug 2014 13:46:30 +0000 (10:46 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:25 +0000 (12:00 +0900)
commit85269e7da90c95f5947d7845cc66544f67686524
tree01e72ad46f00c08bcf6a408f202c1dc74f04ae7a
parentf4830f2f80f55a37272587c145215260a9723463
upstream: au0828-input: Be sure that IR is enabled at polling

When the DVB code sets the frontend, it disables the IR
INT, probably due to some hardware bug, as there's no code
there at au8522 frontend that writes on register 0xe0.

Fixing it at au8522 code is hard, as it doesn't know if the
IR is enabled or disabled, and just restoring the value of
register 0xe0 could cause other nasty effects. So, better
to add a hack at au0828-input polling interval to enable int,
if disabled.

Backports http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=a623ff64e71e
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Change-Id: Ie75c8e04ddefb0ab5571a5721204e79ed92de1f1
drivers/media/usb/au0828/au0828-input.c