media: vivid: add signal-free time for cec message xfer
authorDeborah Brouwer <deborahbrouwer3563@gmail.com>
Thu, 26 Aug 2021 03:44:11 +0000 (05:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:55 +0000 (10:07 +0200)
commitc6c709ee55ec73a0d794cac4c711b8078f71b884
treefc6b234c9acfab821345707fa284e107e03a991f
parent695fb9c6b06417b26e4c9d70a12b0a6d3805dee6
media: vivid: add signal-free time for cec message xfer

Currently, the vivid emulation of cec message transmission does not force
adapters to wait until the cec bus has been signal-free for a certain
number of bit periods before transmitting or re-transmitting a message.
Without enforcing the signal-free time requirements, adapters do not share
the bus very well and some messages are sent too quickly while other
messages are lost. By emulating a signal-free time and forcing adapters
to wait their turn to transmit, the vivid emulation of cec transmission
is much more reliable.

Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vivid/vivid-cec.c
drivers/media/test-drivers/vivid/vivid-cec.h
drivers/media/test-drivers/vivid/vivid-core.c
drivers/media/test-drivers/vivid/vivid-core.h