Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8dbecf7d authored by JiLin Wan's avatar JiLin Wan Committed by Jean-Michel Trivi
Browse files

[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
parent bd09ce59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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