commit | 99a3463d17da6c287e6db05790372b5b943d6468 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Apr 16 16:52:38 2020 -0700 |
committer | Eric Laurent <elaurent@google.com> | Mon Apr 20 16:30:13 2020 +0000 |
tree | acda2bb9a80c4b740768eccd3a1f31c950a090b1 | |
parent | a4cfeca69f76fbd2eedd6217b058d118844a5d4c [diff] |
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