Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7857a54c authored by Michal Belusiak's avatar Michal Belusiak Committed by Michal Belusiak (xWF)
Browse files

VC: Allow to set volume if different from current or started pending OP

Follow up on "Allow to set the same volume during already pending
operation"

Always remove any pending (but not started) volume operations when a
new request arrives. Before proceeding, check if the current device
volume or the volume of an ongoing operation differs from the requested
value.

When a user requests a new absolute volume and there is an unexecuted
pending request in the native stack (limited to one per device), the
pending request should be replaced to reduce latency and avoid
unnecessary traffic.
Furthermore, if the requested value matches the volume on the remote
device or the currently executing request, it can be skipped to further
minimize unnecessary traffic.

Bug: 391826441
Bug: 386758535
Test: atest --host bluetooth_vc_test
Change-Id: Ia42d5fce4738020e15417c3b2fb6588e091b1458
parent a3f375cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment