diff --git a/bluetooth/audio/aidl/Android.bp b/bluetooth/audio/aidl/Android.bp index 16b22fef36..1028faecf2 100644 --- a/bluetooth/audio/aidl/Android.bp +++ b/bluetooth/audio/aidl/Android.bp @@ -24,6 +24,7 @@ package { aidl_interface { name: "android.hardware.bluetooth.audio", vendor_available: true, + host_supported: true, srcs: ["android/hardware/bluetooth/audio/*.aidl"], stability: "vintf", imports: [ diff --git a/bluetooth/audio/utils/Android.bp b/bluetooth/audio/utils/Android.bp index 2cba61eaf5..a09e7fe76f 100644 --- a/bluetooth/audio/utils/Android.bp +++ b/bluetooth/audio/utils/Android.bp @@ -36,6 +36,7 @@ cc_library_shared { cc_library_shared { name: "libbluetooth_audio_session_aidl", vendor: true, + host_supported: true, srcs: [ "aidl_session/BluetoothAudioCodecs.cpp", "aidl_session/BluetoothAudioSession.cpp", diff --git a/bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp b/bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp index a4664f1636..3d92ee7b1f 100644 --- a/bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp +++ b/bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp @@ -583,7 +583,7 @@ bool HidlToAidlMiddleware_2_0::GetPresentationPosition( *total_bytes_readed = presentation_position.transmittedOctets; if (data_position) *data_position = { - .tv_sec = static_cast<__kernel_old_time_t>( + .tv_sec = static_cast( presentation_position.transmittedOctetsTimestamp.tvSec), .tv_nsec = static_cast( presentation_position.transmittedOctetsTimestamp.tvNSec)};