diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-02-10 05:49:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-02-10 05:49:31 +0000 |
commit | b8e8c57ac6be947e1158984d09d3480ea65bbdb0 (patch) | |
tree | 404ff356ddc0d6060c00618079c7d9fb30d9ed81 /bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp | |
parent | 8b389e11236f9e2ded7f988555d77f4be7631707 (diff) | |
parent | e80a57685019eec22086a8464b7b44af3ced56f9 (diff) |
Merge changes from topic "bt-broadcast-aidl"
* changes:
BT: Broadcast AIDL more handle on the default implementation
BT: Broadcast AIDL simplification
Diffstat (limited to 'bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp')
-rw-r--r-- | bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp b/bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp index 1e55a0bf7c..1e1680a4fd 100644 --- a/bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp +++ b/bluetooth/audio/aidl/default/BluetoothAudioProviderFactory.cpp @@ -64,6 +64,14 @@ ndk::ScopedAStatus BluetoothAudioProviderFactory::openProvider( case SessionType::LE_AUDIO_HARDWARE_OFFLOAD_DECODING_DATAPATH: provider = ndk::SharedRefBase::make<LeAudioOffloadInputAudioProvider>(); break; + case SessionType::LE_AUDIO_BROADCAST_SOFTWARE_ENCODING_DATAPATH: + provider = + ndk::SharedRefBase::make<LeAudioSoftwareBroadcastAudioProvider>(); + break; + case SessionType::LE_AUDIO_BROADCAST_HARDWARE_OFFLOAD_ENCODING_DATAPATH: + provider = + ndk::SharedRefBase::make<LeAudioOffloadBroadcastAudioProvider>(); + break; default: provider = nullptr; break; @@ -93,7 +101,10 @@ ndk::ScopedAStatus BluetoothAudioProviderFactory::getProviderCapabilities( } else if (session_type == SessionType::LE_AUDIO_HARDWARE_OFFLOAD_ENCODING_DATAPATH || session_type == - SessionType::LE_AUDIO_HARDWARE_OFFLOAD_DECODING_DATAPATH) { + SessionType::LE_AUDIO_HARDWARE_OFFLOAD_DECODING_DATAPATH || + session_type == + SessionType:: + LE_AUDIO_BROADCAST_HARDWARE_OFFLOAD_ENCODING_DATAPATH) { std::vector<LeAudioCodecCapabilitiesSetting> db_codec_capabilities = BluetoothAudioCodecs::GetLeAudioOffloadCodecCapabilities(session_type); if (db_codec_capabilities.size()) { |