path: root/utils/cec-follower/cec-follower.cpp
diff options
authorDeborah Brouwer <deborahbrouwer3563@gmail.com>2021-04-21 20:27:53 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-04-22 08:54:13 +0200
commit82a21f594712395d46145fb3ccc397047f74c99e (patch)
treee948e1056a707038e224f583657a0c071c2a7b05 /utils/cec-follower/cec-follower.cpp
parent9156821ccac477fc6d8ceb2b88b4818ca4741c4f (diff)
cec: add active sensing test for Audio Rate Control messages
The controlling device should send an Audio Rate Control message at least once every 2 seconds for active sensing. Add a test in cec-compliance to delay the message by more than 2 seconds. Check the interval between messages in cec-follower and warn if the delay is greater than 2 seconds. Signed-off-by: Deborah Brouwer <deborahbrouwer3563@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-follower/cec-follower.cpp')
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-follower.cpp b/utils/cec-follower/cec-follower.cpp
index bb63f90d..184cf16a 100644
--- a/utils/cec-follower/cec-follower.cpp
+++ b/utils/cec-follower/cec-follower.cpp
@@ -314,6 +314,7 @@ void state_init(struct node &node)
node.state.volume = 50;
node.state.mute = false;
+ node.state.last_aud_rate_rx_ts = 0;
int main(int argc, char **argv)

Privacy Policy