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

Commit 7b38ced0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Call pre init API unconditionally"

parents 49bd46d8 793f5309
Loading
Loading
Loading
Loading

hal/audio_extn/a2dp.c

100755 → 100644
+4 −6
Original line number Diff line number Diff line
@@ -1031,11 +1031,9 @@ static void a2dp_source_init()
    a2dp.audio_is_tws_mono_mode_enable = (audio_is_tws_mono_mode_enable_t)
                   dlsym(a2dp.bt_lib_source_handle,"isTwsMonomodeEnable");

    if (is_running_with_enhanced_fwk == UNINITIALIZED)
        is_running_with_enhanced_fwk = check_if_enhanced_fwk();
    if (a2dp.bt_lib_source_handle && is_running_with_enhanced_fwk
        && a2dp.bt_audio_pre_init) {
    if (a2dp.bt_lib_source_handle && a2dp.bt_audio_pre_init) {
        ALOGD("calling BT module preinit");
        // fwk related check's will be done in the BT layer
        a2dp.bt_audio_pre_init();
    }
}