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

Commit d93a3ada authored by Aniket Kumar Lata's avatar Aniket Kumar Lata Committed by Petri Gynther
Browse files

audio: Register Bluetooth service with audio HAL

Register Bluetooth audio library with audio HIDL service.
Changes required for A2DP offload implementation.

Bug: 63932139
Bug: 68824150
Test: A2DP offload verified on supported codecs
Change-Id: Idd89f0d28903579d42bd0f33b0194fb8dc2ceaaa
(cherry picked from commit c5a52031)
parent 99a61905
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,7 @@ LOCAL_SHARED_LIBRARIES := \
    android.hardware.audio.common@4.0 \
    android.hardware.audio.common@4.0 \
    android.hardware.audio.effect@2.0 \
    android.hardware.audio.effect@2.0 \
    android.hardware.audio.effect@4.0 \
    android.hardware.audio.effect@4.0 \
    android.hardware.bluetooth.a2dp@1.0 \
    android.hardware.soundtrigger@2.0 \
    android.hardware.soundtrigger@2.0 \
    android.hardware.soundtrigger@2.1
    android.hardware.soundtrigger@2.1


+6 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@
#include <android/hardware/audio/4.0/IDevicesFactory.h>
#include <android/hardware/audio/4.0/IDevicesFactory.h>
#include <android/hardware/audio/effect/2.0/IEffectsFactory.h>
#include <android/hardware/audio/effect/2.0/IEffectsFactory.h>
#include <android/hardware/audio/effect/4.0/IEffectsFactory.h>
#include <android/hardware/audio/effect/4.0/IEffectsFactory.h>
#include <android/hardware/bluetooth/a2dp/1.0/IBluetoothAudioOffload.h>
#include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h>
#include <android/hardware/soundtrigger/2.0/ISoundTriggerHw.h>
#include <android/hardware/soundtrigger/2.1/ISoundTriggerHw.h>
#include <android/hardware/soundtrigger/2.1/ISoundTriggerHw.h>
#include <binder/ProcessState.h>
#include <binder/ProcessState.h>
@@ -47,5 +48,10 @@ int main(int /* argc */, char* /* argv */ []) {
           registerPassthroughServiceImplementation<soundtrigger::V2_0::ISoundTriggerHw>() != OK,
           registerPassthroughServiceImplementation<soundtrigger::V2_0::ISoundTriggerHw>() != OK,
    ALOGW_IF(fail, "Could not register soundtrigger API 2.0 nor 2.1");
    ALOGW_IF(fail, "Could not register soundtrigger API 2.0 nor 2.1");


    fail =
        registerPassthroughServiceImplementation<bluetooth::a2dp::V1_0::IBluetoothAudioOffload>() !=
        OK;
    ALOGW_IF(fail, "Could not register Bluetooth audio offload 1.0");

    joinRpcThreadpool();
    joinRpcThreadpool();
}
}