media: pulse8-cec: queue received messages in an array
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Dec 2019 16:22:28 +0000 (17:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 16 Dec 2019 11:03:52 +0000 (12:03 +0100)
commit906870770431cbeb64e73da2111a4636d227f1e0
tree386cb3773f7c6fb7e7baa19e1aea0849ee993ba6
parentb36910e078428aa499b41efd3c6b36a182649343
media: pulse8-cec: queue received messages in an array

It turns out that received CEC messages can arrive faster than
can be processed by the CEC framework, resulting in lost messages.

Instead of storing only one CEC message, store up to 8.

Also fix a bug where the EOM bit wasn't checked for a received
message of length 1, so POLL messages weren't properly reported.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pulse8-cec/pulse8-cec.c