diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-08 03:57:04 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 17:57:00 +0200 |
commit | c373cabfbbb7631526003f17d470c0d1e5915a4c (patch) | |
tree | a7182689854e29355ed7f3934fe53e29699b7be9 /drivers/media/IR | |
parent | V4L/DVB: ir-rc5-decoder: fix state machine (diff) | |
download | linux-c373cabfbbb7631526003f17d470c0d1e5915a4c.tar.xz linux-c373cabfbbb7631526003f17d470c0d1e5915a4c.zip |
V4L/DVB: em28xx: fix a regression caused by the rc-map changes
The patch that adds the rc-map changes didn't take into account that an
a table with IR_TYPE_UNKNOWN would make change_protocol to return -EINVAL.
As this function is fundamental to initialize some data, including a
callback to the getkey function, this caused the driver to stop working,
hanging the machine most of the times.
The fix were simply to add a handler for the IR type, but, to avoid further
issues, explicitly call change_protocol and handle the error before
initializing the IR. Also, let input_dev to start/stop IR handling,
after the opening of the input device.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR')
0 files changed, 0 insertions, 0 deletions