diff options
author | Jiunn Chang <c0d1n61at3@gmail.com> | 2019-09-05 22:51:29 -0500 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-09-09 09:56:02 +0200 |
commit | de6dc05eb5a97b89b1d702f015bf5464a9fe0ba3 (patch) | |
tree | 650715f53158b86c3b24a67cd20a9923a02c31ee /utils/cec-follower/cec-processing.cpp | |
parent | b972d2d6cea558c6fc304938b56518281c953185 (diff) |
cec-compliance: system audio control tests
The HDMI CEC specification defines deterministic operands for
User Control Pressed that mute or unmute system audio.
Those being:
- Mute Function for mute on
- Restore Volume Function for mute off
This is different from the operand Mute which is a toggle.
This patch adds tests for these User Control Pressed operands.
Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r-- | utils/cec-follower/cec-processing.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp index 27172560..a38f664b 100644 --- a/utils/cec-follower/cec-processing.cpp +++ b/utils/cec-follower/cec-processing.cpp @@ -516,6 +516,12 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me) case 0x43: node->state.mute = !node->state.mute; break; + case 0x65: + node->state.mute = true; + break; + case 0x66: + node->state.mute = false; + break; case 0x6B: if (!enter_standby(node)) exit_standby(node); |