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

Commit af5e5cd0 authored by François Gaffie's avatar François Gaffie Committed by Oscar Azucena
Browse files

AudioPolicy: enforce hw volume application rule



This CL enforces the rules of hw volume application:
-apply only if a strategy following the group is active
-do not apply if another client is active with higher priority
than the highest priority active strategy following the
volume group.

It enforces also checkAndSetVolume that may be called when an
output is started / stopped, ....When using Hw Volume, starting
a client on the same output than already active client may lead
to unwanted volume change, depending of the volume group followed
by each client.

Bug: 270049944
Test: atest AudioManagerTest
Flag: android.media.audiopolicy.volume_group_management_update

Change-Id: I082c6a12ac7f240f7147116cc913ff1332a38360
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent 6f9d5091
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