diff --git a/audio/2.0/default/Android.mk b/audio/2.0/default/Android.mk index aa25077898..3587d60b07 100644 --- a/audio/2.0/default/Android.mk +++ b/audio/2.0/default/Android.mk @@ -80,7 +80,8 @@ LOCAL_SHARED_LIBRARIES := \ android.hardware.audio.effect@2.0 \ android.hardware.soundtrigger@2.0 \ android.hardware.broadcastradio@1.0 \ - android.hardware.broadcastradio@1.1 + android.hardware.broadcastradio@1.1 \ + android.hardware.bluetooth.a2dp@1.0 ifeq ($(strip $(AUDIOSERVER_MULTILIB)),) LOCAL_MULTILIB := 32 diff --git a/audio/2.0/default/service.cpp b/audio/2.0/default/service.cpp index a215108e95..29065234f8 100644 --- a/audio/2.0/default/service.cpp +++ b/audio/2.0/default/service.cpp @@ -16,11 +16,12 @@ #define LOG_TAG "audiohalservice" -#include -#include #include #include +#include #include +#include +#include using android::hardware::configureRpcThreadpool; using android::hardware::joinRpcThreadpool; @@ -30,6 +31,7 @@ using android::hardware::audio::effect::V2_0::IEffectsFactory; using android::hardware::audio::V2_0::IDevicesFactory; using android::hardware::soundtrigger::V2_0::ISoundTriggerHw; using android::hardware::registerPassthroughServiceImplementation; +using android::hardware::bluetooth::a2dp::V1_0::IBluetoothAudioOffload; using android::OK; @@ -43,6 +45,8 @@ int main(int /* argc */, char* /* argv */ []) { // Soundtrigger might be not present. status = registerPassthroughServiceImplementation(); ALOGE_IF(status != OK, "Error while registering soundtrigger service: %d", status); + status = registerPassthroughServiceImplementation(); + ALOGE_IF(status != OK, "Error while registering bluetooth_audio service: %d", status); joinRpcThreadpool(); return status; }