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

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

audio policy: fix volume for unsupported device

Do not allow changing volume on an output when
the specified device is not supported by the
corresponding output profile.

There is a similar sanity check in setOutputDevices()
but there was none in AudioOutputDescriptor::setvolume().

Bug: 153411189
Test: atest AudioManagerTest
Test: manual audio smoke tests
Change-Id: I539697c54d70c442ba1ce38d212b43cd3ef0138c
parent a4cfeca6
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