~aleteoryx/muditaos

ed431b17089634904ac85035aa571c3a70af94a3 — Jakub Pyszczak 4 years ago 659d720
[EGD-7875] Fixed bt not ringing

Fixed bluetooth not ringing after bt call hang up.
M module-bluetooth/Bluetooth/interface/profiles/HFP/HFP.cpp => module-bluetooth/Bluetooth/interface/profiles/HFP/HFP.cpp +1 -1
@@ 276,7 276,7 @@ namespace bluetooth
            scoHandle = HCI_CON_HANDLE_INVALID;
            isAudioRouted                = false;
            isAudioConnectionEstablished = false;
            sendAudioEvent(audio::EventType::BlutoothHFPDeviceState, audio::Event::DeviceState::Disconnected);
            audioDevice.reset();
            break;
        case HFP_SUBEVENT_START_RINGING:
            LOG_DEBUG("Start Ringing\n");

M module-bluetooth/Bluetooth/interface/profiles/HSP/HSP.cpp => module-bluetooth/Bluetooth/interface/profiles/HSP/HSP.cpp +1 -1
@@ 200,9 200,9 @@ namespace bluetooth
            if (hsp_subevent_audio_connection_complete_get_status(event) != 0u) {
                LOG_DEBUG("Audio connection establishment failed with status %u\n",
                          hsp_subevent_audio_connection_complete_get_status(event));
                sendAudioEvent(audio::EventType::BlutoothHSPDeviceState, audio::Event::DeviceState::Disconnected);
                isConnected  = false;
                callAnswered = false;
                audioDevice.reset();
            }
            else {
                scoHandle = hsp_subevent_audio_connection_complete_get_handle(event);