History

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.

Hans Verkuil committed 5 years ago

Commit d170ebb1 parent bf950fd1 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t