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

Skip to content
Commit c209fe49 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy: output selection upon dynamic policy registration

Force reevalution of output selection for AudioTrack clients when a
dynamic audio policy (DAP) of type RENDER is registered or unregistered.
For LOOPBACK policies, this is not needed because the remote submix
device is connected or disconnected triggering output reevaluation.

Also refactor checkOutputForAttributes to take actual output selection
for each client associated to a DAP instead of blindly forcing stream
invalidation as soon as an output associated with a DAP is found.
This covers direct outputs as the output is not opened when the DAP
is registered.

Bug: 130296239
Test: AudioHostTest
Test: AudioServiceHostTest
Test: audiopolicy_tests
Test: regression with auto projected mode and live caption
Change-Id: I07977e7902eb31c59621462a8fe2d7d1a4b1ba36
parent ea5f4133
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment