Loading system/audio_hal_interface/a2dp_encoding.cc +4 −2 Original line number Diff line number Diff line Loading @@ -27,13 +27,15 @@ namespace audio { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { if (HalVersionManager::GetHalTransport() == BluetoothAudioHalTransport::HIDL) { return hidl::a2dp::update_codec_offloading_capabilities( framework_preference); } return aidl::a2dp::update_codec_offloading_capabilities(framework_preference); return aidl::a2dp::update_codec_offloading_capabilities( framework_preference, supports_a2dp_hw_offload_v2); } // Check if new bluetooth_audio is enabled Loading system/audio_hal_interface/a2dp_encoding.h +2 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,8 @@ namespace audio { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference); const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2); // Check if new bluetooth_audio is enabled bool is_hal_enabled(); Loading system/audio_hal_interface/a2dp_encoding_host.cc +2 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,8 @@ void set_remote_delay(uint16_t delay_report) { // Inform audio server about offloading codec; not used for now bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { return false; } Loading system/audio_hal_interface/aidl/a2dp_encoding_aidl.cc +4 −3 Original line number Diff line number Diff line Loading @@ -384,10 +384,11 @@ bool is_hal_force_disabled() { } // namespace bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { /* Load the provider information if supported by the HAL. */ provider_info = ::bluetooth::audio::aidl::a2dp::ProviderInfo::GetProviderInfo(); provider_info = ::bluetooth::audio::aidl::a2dp::ProviderInfo::GetProviderInfo( supports_a2dp_hw_offload_v2); return ::bluetooth::audio::aidl::codec::UpdateOffloadingCapabilities( framework_preference); } Loading system/audio_hal_interface/aidl/a2dp_encoding_aidl.h +2 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,8 @@ namespace aidl { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference); const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2); /*** * Check if new bluetooth_audio is enabled Loading Loading
system/audio_hal_interface/a2dp_encoding.cc +4 −2 Original line number Diff line number Diff line Loading @@ -27,13 +27,15 @@ namespace audio { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { if (HalVersionManager::GetHalTransport() == BluetoothAudioHalTransport::HIDL) { return hidl::a2dp::update_codec_offloading_capabilities( framework_preference); } return aidl::a2dp::update_codec_offloading_capabilities(framework_preference); return aidl::a2dp::update_codec_offloading_capabilities( framework_preference, supports_a2dp_hw_offload_v2); } // Check if new bluetooth_audio is enabled Loading
system/audio_hal_interface/a2dp_encoding.h +2 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,8 @@ namespace audio { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference); const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2); // Check if new bluetooth_audio is enabled bool is_hal_enabled(); Loading
system/audio_hal_interface/a2dp_encoding_host.cc +2 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,8 @@ void set_remote_delay(uint16_t delay_report) { // Inform audio server about offloading codec; not used for now bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { return false; } Loading
system/audio_hal_interface/aidl/a2dp_encoding_aidl.cc +4 −3 Original line number Diff line number Diff line Loading @@ -384,10 +384,11 @@ bool is_hal_force_disabled() { } // namespace bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference) { const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2) { /* Load the provider information if supported by the HAL. */ provider_info = ::bluetooth::audio::aidl::a2dp::ProviderInfo::GetProviderInfo(); provider_info = ::bluetooth::audio::aidl::a2dp::ProviderInfo::GetProviderInfo( supports_a2dp_hw_offload_v2); return ::bluetooth::audio::aidl::codec::UpdateOffloadingCapabilities( framework_preference); } Loading
system/audio_hal_interface/aidl/a2dp_encoding_aidl.h +2 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,8 @@ namespace aidl { namespace a2dp { bool update_codec_offloading_capabilities( const std::vector<btav_a2dp_codec_config_t>& framework_preference); const std::vector<btav_a2dp_codec_config_t>& framework_preference, bool supports_a2dp_hw_offload_v2); /*** * Check if new bluetooth_audio is enabled Loading