media: cec: fix remote control passthrough
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 7 Aug 2017 13:31:24 +0000 (09:31 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:59:34 +0000 (09:59 -0400)
commita9a249a2c997506a64eaee22f1458fda893f62a8
treef42ca4cf769e6f42431e67348d42dd3b232df78e
parentd57ea877af38057b0ef31758cf3b99765dc33695
media: cec: fix remote control passthrough

The 'Press and Hold' operation was not correctly implemented, in
particular the requirement that the repeat doesn't start until
the second identical keypress arrives. The REP_DELAY value also
had to be adjusted (see the comment in the code) to achieve the
desired behavior.

The 'enabled_protocols' field was also never set, fix that too. Since
CEC is a fixed protocol the driver has to set this field.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c
drivers/media/cec/cec-core.c
include/media/cec.h