Commit: 8baabd2f5c131f902d79e20829b117edffd46d1a
Parent: 923379409010602254233103689c8ed2ff2a6cc6
Author: Marijn Suijten <marijn.suijten@somainline.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-10-21 23:05:58
Tree: 784bf9f139a4eebfa7fc70abbf2035c1157976cc

audio/avrcp: Only allow absolute volume call/event on category-2 peers Restrict the use of SetAbsoluteVolume and EVENT_VOLUME_CHANGED to peers with at least AVRCP version 1.4 and AVRCP_FEATURE_CATEGORY_2 on their respective target or controller profiles. For backwards-compatibility, add a (default-enabled) `VolumeCategory = true` configuration option under `[AVRCP]` to allow optionally disabling this new check.

Diffstat

M profiles/audio/avrcp.c | 40 ++++++++++++++++++++++++++++++++++- - - - - -

1 files changed, 34 insertions(+), 6 deletions(-)

View Full Diff | Patch