[Purpose of this Feature/Patch]
fix an issue that speaker volume suddenly increase after connected to a BT headset success
From hci log,we can see the GET_REPORT cmd not be send, and trace stack,
discovery the function bta_hh_co_get_rpt_rsp have a issue: when
p_dev->get_rpt_snt--, if p_dev->get_rpt_snt value is 0, It will become
to 255.
[Buganizer]
b/136195302
Change-Id: I4d0131a15720e597ceb3692ffc831e6eb9a6c334
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 2a59877..a83b337 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -363,7 +363,7 @@
AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
AudioSystem.STREAM_MUSIC, // STREAM_ALARM
AudioSystem.STREAM_MUSIC, // STREAM_NOTIFICATION
- AudioSystem.STREAM_MUSIC, // STREAM_BLUETOOTH_SCO
+ AudioSystem.STREAM_BLUETOOTH_SCO, // STREAM_BLUETOOTH_SCO
AudioSystem.STREAM_MUSIC, // STREAM_SYSTEM_ENFORCED
AudioSystem.STREAM_MUSIC, // STREAM_DTMF
AudioSystem.STREAM_MUSIC, // STREAM_TTS