[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
This commit is contained in:
JiLin Wan
2019-06-17 19:29:44 +08:00
committed by Jean-Michel Trivi
parent bd09ce590c
commit 8dbecf7d0d

View File

@@ -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