Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: uapi/linux/cec-funcs.h: set delay to 1 if unnused

If the audio_out_delay value is unused, then set it to 1, not 0.
The value 0 is reserved, and 1 is a much safer value since it
translates to a delay of (1 - 1) * 2 = 0 ms.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
d170ebb0 bf950fdc

+1 -1
+1 -1
include/uapi/linux/cec-funcs.h
··· 1665 1665 if (*audio_out_compensated == 3 && msg->len >= 7) 1666 1666 *audio_out_delay = msg->msg[6]; 1667 1667 else 1668 - *audio_out_delay = 0; 1668 + *audio_out_delay = 1; 1669 1669 } 1670 1670 1671 1671 static inline void cec_msg_request_current_latency(struct cec_msg *msg,