mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
audio: Register Bluetooth service with audio HAL
Register Bluetooth audio library with audio HIDL service. Changes required for A2DP offload implementation. Bug: 68824150 Test: A2DP offload verified on supported codecs Change-Id: Idd89f0d28903579d42bd0f33b0194fb8dc2ceaaa
This commit is contained in:
committed by
Petri Gynther
parent
4e95d81ef0
commit
c5a5203114
@@ -43,6 +43,7 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
android.hardware.audio.common@4.0 \
|
||||
android.hardware.audio.effect@2.0 \
|
||||
android.hardware.audio.effect@4.0 \
|
||||
android.hardware.bluetooth.a2dp@1.0 \
|
||||
android.hardware.soundtrigger@2.0 \
|
||||
android.hardware.soundtrigger@2.1
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <android/hardware/audio/4.0/IDevicesFactory.h>
|
||||
#include <android/hardware/audio/effect/2.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.1/ISoundTriggerHw.h>
|
||||
#include <binder/ProcessState.h>
|
||||
@@ -47,5 +48,10 @@ int main(int /* argc */, char* /* argv */ []) {
|
||||
registerPassthroughServiceImplementation<soundtrigger::V2_0::ISoundTriggerHw>() != OK,
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user