]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc-core: fix protocol_change regression in ir_raw_event_register
authorTomas Melin <tomas.melin@iki.fi>
Tue, 28 Oct 2014 18:43:14 +0000 (15:43 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Oct 2014 11:09:28 +0000 (09:09 -0200)
commitc0d20ca510af85715b39c216b5182849ef8e2c18
tree4bc07d0c338f132249b0ace2a304d89244ce431f
parente45b24586515d8ec20156c8be9786bf9a665d705
[media] rc-core: fix protocol_change regression in ir_raw_event_register

IR receiver using nuvoton-cir and lirc required additional configuration
steps after upgrade from kernel 3.16 to 3.17-rcX. Bisected regression to
commit c097ac79903c143773b7b8e44fd53e64475f9af3 ("[media] rc-core:
simplify sysfs code").

The regression comes from adding function change_protocol in ir-raw.c.
It changes behaviour so that only the protocol enabled by driver's
map_name will be active after registration. This breaks user space
behaviour, lirc does not get key press signals anymore.

Enable lirc protocol by default for ir raw decoders to restore original
behaviour.

Cc: stable@vger.kernel.org # for v3.17
Signed-off-by: Tomas Melin <tomas.melin@iki.fi>
Acked-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/rc-ir-raw.c
drivers/media/rc/rc-main.c