diff options
author | Eric Laurent <elaurent@google.com> | 2019-06-12 17:20:03 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2019-06-20 19:28:06 -0700 |
commit | 02153e697d3574c3c6affde5c9ad14164b893240 (patch) | |
tree | b588da08adcba97b21e7a1f49f49d858e7c77011 /startop/scripts/lib/cmd_utils.py | |
parent | fcbde5243a9a4d188b834d9cd89d737a164fbe16 (diff) |
audioservice: special mute behavior for BT SCO volume
Allow muting BT SCO volume only from explicit mute request and not
when stream volume index is set to 0. This is to match BT requirement
that the valid SCO volume range is 0 to 15 and let the headset deal with
actual attenuation for index 0.
If explicitly muted via adjustStreamVolume() from an app with permission
MODIFY_PHONE_STATE, then we set the audio policy stream volume to 0 and
effectively mute RX path.
Also change default value of Settings.System.MUTE_STREAMS_AFFECTED
to include AudioManager.STREAM_BLUETOOTH_SCO.
Bug: 111195322
Test: test volume changes in call over BT SCO
Change-Id: I3b6560bbd1bcbb01a29aa746f23bae74329a1fa7
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions