From 8dbecf7d0d0df1cf5d7451238c0d6001bd0a1a8e Mon Sep 17 00:00:00 2001 From: JiLin Wan Date: Mon, 17 Jun 2019 19:29:44 +0800 Subject: [PATCH] [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 --- services/core/java/com/android/server/audio/AudioService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java index 2a598774a2e17..a83b3375125ee 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 @@ public class AudioService extends IAudioService.Stub 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