mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
media: cec: add support for Absolute Volume Control
Add support for this new CEC message. This was added in HDMI 2.1a. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
20694e96ca
commit
479747caa5
4 changed files with 19 additions and 0 deletions
|
@ -1568,6 +1568,20 @@ static inline void cec_ops_request_short_audio_descriptor(const struct cec_msg *
|
|||
}
|
||||
}
|
||||
|
||||
static inline void cec_msg_set_audio_volume_level(struct cec_msg *msg,
|
||||
__u8 audio_volume_level)
|
||||
{
|
||||
msg->len = 3;
|
||||
msg->msg[1] = CEC_MSG_SET_AUDIO_VOLUME_LEVEL;
|
||||
msg->msg[2] = audio_volume_level;
|
||||
}
|
||||
|
||||
static inline void cec_ops_set_audio_volume_level(const struct cec_msg *msg,
|
||||
__u8 *audio_volume_level)
|
||||
{
|
||||
*audio_volume_level = msg->msg[2];
|
||||
}
|
||||
|
||||
|
||||
/* Audio Rate Control Feature */
|
||||
static inline void cec_msg_set_audio_rate(struct cec_msg *msg,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue