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
Loading
Please register or sign in to comment