commit | 99f417fe4cc49948d7ea4b062a0ca2c3180247e1 | [log] [tgz] |
---|---|---|
author | Vlad Popa <pvlad@google.com> | Thu Sep 12 17:51:07 2024 -0700 |
committer | Vlad Popa <pvlad@google.com> | Thu Sep 12 17:51:07 2024 -0700 |
tree | 4e3404d4a61933532292eca6d699cf35d85c7876 | |
parent | cd8db6b65ab3d79f9bbbdd898cb18b32febdc232 [diff] |
Fix muting voice call The index step factor should not be applied when muting a stream that does not have index min equal to 0. This logic prevented the setting of index 0 for stream voice call Flag: EXEMPT bugfix Test: repro steps in bug Bug: 362909869 Change-Id: Ibc2db504d2abdc3e5b0c72127566676b5a4cb64a
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 6daf0d0..c3d09bb 100644 --- a/services/core/java/com/android/server/audio/AudioService.java +++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -9211,7 +9211,7 @@ index = 1; } - if (replaceStreamBtSco()) { + if (replaceStreamBtSco() && index != 0) { index = (int) (mIndexMin + (index * 10 - mIndexMin) / getIndexStepFactor() + 5) / 10; }