]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd466c4d627aff136e9e2807bad84eb25f7fdba7c
treefc6b234c9acfab821345707fa284e107e03a991f
parent54a4e49151f7c518b2f1147886ad37cbf2b79159
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