[media] saa7134-input: key up events not sent after suspend/resume
authorVadim Solomin <vadic052@gmail.com>
Sun, 6 Mar 2011 16:00:38 +0000 (13:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 19:37:53 +0000 (16:37 -0300)
commit8c1476ffc0b820f6ca8cc0b3f50c8a0f57e8d82d
treedce8b4f36f6f4424b6fcd55ee37ed3b135a01f63
parentbc4b18c6f536de3733e247b07adcc9ea3f5684dd
[media] saa7134-input: key up events not sent after suspend/resume

On my AverMedia AverTV Studio 507, key up events are no longer sent after
a suspend-to-disk/resume cycle, resulting in "stuck" keys.

Apparently, for key up events to be generated, a certain GPIO pin must be set.
Currently it's set in saa7134_input_init1(), but that function is not called
on device resume. I suggest that code be moved to __saa7134_ir_start(), which
is called both on init and resume.

Signed-off-by: Vadim Solomin <vadic052@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7134/saa7134-input.c