linux/drivers/media/cec
Hans Verkuil f3854973f1 [media] cec: fix report_current_latency
In the (very) small print of the REPORT_CURRENT_LATENCY message there is a
line that says that the last byte of the message (audio out delay) is only
present if the 'audio out compensated' value is 3.

I missed this, and so if this message was sent with a total length of 6 (i.e.
without the audio out delay byte), then it was rejected by the framework
since a minimum length of 7 was expected.

Fix this minimum length check and update the wrappers in cec-funcs.h to do
the right thing based on the message length.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-12-21 06:59:13 -02:00
..
cec-adap.c [media] cec: fix report_current_latency 2016-12-21 06:59:13 -02:00
cec-api.c [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
cec-core.c [media] cec: pass parent device in register(), not allocate() 2016-11-29 12:07:17 -02:00
cec-priv.h
Makefile