summaryrefslogtreecommitdiff
path: root/bluetooth/audio/utils/aidl_session
AgeCommit message (Collapse)Author
2022-11-10Add BluetoothLeAudioCodecsProvider Unit Testshihchienc
Add unit test for BluetoothLeAudioCodecsProvider and simplify the public interface of BluetoothLeAudioCodecsProvider class Bug: 253569201 Test: atest VtsHalBluetoothAudioTargetTest Test: atest BluetoothLeAudioCodecsProviderTest Test: manual test Change-Id: I064eb4058b129a571cf9dbb91b85bafe7236b735 Merged-In: I064eb4058b129a571cf9dbb91b85bafe7236b735 (cherry picked from commit d7f565a943c5c6bf08a16c22ea15c2c6b628a00e)
2022-09-20Add soft_audio_configuration_changed_cb_ to handle the streamMap changedAlice Kuo
Based on the stream status and Bluetooth Audio Session to switch the different configuration_changed_cb_ notifcation. audio_configuration_changed_cb_ for the context type handover case soft_audio_configuration_changed_cb_ for the streamMap changed during media stream case Bug: 231084798 Test: LE audio offload later join and disappear with downmix enable Change-Id: I199c2b765b128875fb2c66abb1a500e4a6c820b7 Merged-In: I199c2b765b128875fb2c66abb1a500e4a6c820b7 (cherry picked from commit 851ef342ede367375ea46215cfdf3a449e7b8ef4)
2022-09-14Expose different offload audio capabilities by projectshihchienc
The current LE audio offload capabilities is hardcode in the Bluetooth audio HAL. It has the limitation that all the project would expose the same capabilities. As the newer project comes, if the ADSP or the controller could handle more configuration with higher quality or higher bandwidth. It would impact older project may not work on it. So we plan the feature to make the le audio offload support to be more flexible. Bug: 238983662 Test: 1. atest VtsHalBluetoothAudioTargetTest 2. make sure offload capabilities can be supported with those devices having config XML file Change-Id: Id82581fdcd22e38108f17c7942bca997b53bab35 Merged-In: Id82581fdcd22e38108f17c7942bca997b53bab35 (cherry picked from commit 8ed901a977a9180b8edc79cd291be054c6e228b0)
2022-08-09le_audio_offload: Support two sources for conversationalPatty
Tag: #feature Bug: 241775706 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: I1bc59d09ec2ad3a8e65712c2fa099e806cce3c2d Merged-In: I1bc59d09ec2ad3a8e65712c2fa099e806cce3c2d (cherry picked from commit 51f165b314fb40b6a58007a81e707734a211f11f)
2022-07-14Supoort audio configuration update to audio HAL for broadcast offloadAlice Kuo
Bug: 210987580 Test: start the broadcast offload, check log Change-Id: Iadae625d10ad179089b952ac94ff66ae90a6236e Merged-In: Iadae625d10ad179089b952ac94ff66ae90a6236e (cherry picked from commit 36a879796bb046a5261d9862a69776f2bba94466)
2022-07-13Bluetooth audio hal check broadcast configuraiton for the broadcast offloadAlice Kuo
The patch contains the following changes 1. Check the broadcast audio configuration as starting broadcast offload session 2. Update audio configuration checker for broadcast offload 3. Remove the IsOffloadLeAudioConfigurationValid function that the audio configuraiton is invalid as session started, so we don't need to check it at that time Bug: 210987580 Test: start the offload broadcast stream, and check the session status Change-Id: I60b1b506051873f6d942f2febace6562634fc12a Merged-In: I60b1b506051873f6d942f2febace6562634fc12a (cherry picked from commit ee398a93f564e515051932dfd3801081426b1ae8)
2022-05-13Merge "Add Opus to BT Audio HAL and update version to V2" into tm-devOmer Osman
2022-05-12Add Opus to BT Audio HAL and update version to V2Omer Osman
This CL adds Opus as a supported A2DP codec to the BT Audio HAL and updates HAL compatibility matrix. Bug: 226441860 Test: A2DP sink device using bds-dev Change-Id: I21249e3e7e76412af7ed62a3fc9ec133434cf963
2022-05-12Add 32kHz as supported settingŁukasz Rymanowski
Bug: 230550335 Test: Build, test audio Change-Id: I94c4c54092d0afb71aee555fa46936e228397444 (cherry picked from commit 12f82bb40c5afebfb43a6622da7bd0453edfc0b0) Merged-In: I94c4c54092d0afb71aee555fa46936e228397444
2022-05-04Support 24k and 32k config for LE Audio OffloadPatty Huang
Bug: 230402180 Test: Manual Change-Id: If4931999009b27423adeab3af50238dd6d8c8637 (cherry picked from commit f4e3551eb14038563665f7bc274be5fb588b1fe8) Merged-In: If4931999009b27423adeab3af50238dd6d8c8637
2022-03-29Add A2dp decode software and offload session typeAlice Kuo
1. Add the interface 2. Add the default implementation 3. Add VTS Bug: 206601670 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: I54d8037eeb09312c9f1fb75d2167cc50ac7cae8c
2022-03-14SpatialAudio: fix crashes in BluetoothAudioSessionChen Chen
Bug: 224578221 Bug: 214615268 Test: build Change-Id: I0fd7e0887200e39dc996b0d84de421ec13897e94
2022-03-08SpatialAudio: Export LatencyMode functions to BluetoothAudioSessionCheney Ni
BluetoothAudioSession utility supports latency control functions, so audio_bluetooth_hw can get / set the LatencyMode easily. Bug: 214615268 Bug: 218708371 Test: build Tag: #feature Change-Id: Ia85581c74fc91f406309539755d60d36c173f5e0
2022-02-24SpatialAudio: Init codec and buffer size from startStream()Chen Chen
Bug: 214615268 Test: build Tag: #feature Change-Id: I26d82da0dfc82fcb6cab6b879bced8e892e8cf44
2022-02-21Remove bluetooth.audio@2.2 default implementation and utils handlesAlice Kuo
Bug: 204585486 Test: a2dp software/offload, le audio software/offload verified pass Change-Id: I7c8f32dd294562052ff5af73e6f3c48642c03fe4
2022-02-15BtAudio: Handle bcast hw offloading codecsJosh Wu
Test: atest VtsHalBluetoothAudioTargetTest Bug: 203490261 Change-Id: I0631838b4cc0462e3aadc581226d43f43a446d29
2022-02-14Merge "SpatialAudio: Remove codec interface from audio HAL. Codec switch ↵Chen Chen
logic will be inside Bluetooth"
2022-02-11SpatialAudio: Remove codec interface from audio HAL. Codec switch logic will ↵Chen Chen
be inside Bluetooth Bug: 214615268 Test: Build Tag: #feature Change-Id: Ic2a997614e16abfd745c80dc87ecf5d340497691
2022-02-11Use parens to fix outputGreg Kaiser
We want our ternary conditional to evaluate before the << operator, so we use parenthesis to make this happen. Bug: 214615268 Test: TreeHugger Change-Id: I0efb22487d0cf3778f8a12d2391a0f1a7a87995d
2022-02-11Merge "Spatial Audio: Implement setLowLatencyAllowed functions in ↵Chen Chen
BluetoothAudioSession"
2022-02-10Spatial Audio: Implement setLowLatencyAllowed functions in BluetoothAudioSessionChen Chen
Bug: 214615268 Test: Build: Tag: #feature Change-Id: I01c182b46fe72ee8f7c8e12e59ea2413c423b061
2022-02-10Merge "Correct the offload capability and update comment(AIDL)"Treehugger Robot
2022-02-10Merge changes from topic "bt-broadcast-aidl"Treehugger Robot
* changes: BT: Broadcast AIDL more handle on the default implementation BT: Broadcast AIDL simplification
2022-02-10Correct the offload capability and update comment(AIDL)Patty
- Add some comments to describe the supported scenario - Correct the config from mono to stereo, when only one device is connected, mono only need one audio channel, for stereo case, support 2 audio channels. Tag: #feature Bug: 203535499 Bug: 150670922 Test: make build Change-Id: Id3ea1e96a6b4fd7a209a015fb5c475465e300cdb
2022-02-09BT: Broadcast AIDL more handle on the default implementationAlice Kuo
* seperate the provider for unicast and broadcast * add handle for the audio configuration broadcast offload Bug: 150670922 Test: make Tag: #feature Change-Id: Ie41496be24e3742b2f1fa438bc4ed4b127e72dd0
2022-02-09BT: Broadcast AIDL simplificationJack He
* Extract broadcast as separate session type * Remove the union from LeAudioConfiguration, but use it for unicast configuration only * Simplify default implementations Bug: 15067092 Test: make Tag: #feature Change-Id: Ib6c3ffb6396a71011abb03a374e58ce27fdf3f39
2022-02-08Merge "BT: Aptx-Adaptive AIDL changes"Alice Kuo
2022-02-08Spatial Audio: Add setLatencyMode and setCodecType API with emptyChen Chen
implementation Bug: 216832331 Test: build Tag: #feature Change-Id: I0ccfee39d1f86da81b50f0757de87b6645baacf8
2022-01-29BT: Aptx-Adaptive AIDL changesSagar Verma
Bug: 203751353 Change-Id: I65f7b4de77ff0083721069959f6ba2081a158a80
2022-01-24Merge "BtAudio: Remove sample_rate_to_hidl_2_0_map"Treehugger Robot
2022-01-24Merge "BtAudio: Add InReadPcmData to middleware"Treehugger Robot
2022-01-23BtAudio: Improve LE offload compatabilityJosh Wu
Bug: 203490261 Test: m android.hardware.bluetooth.audio-V1-impl Change-Id: I7dd37cb697b03bb5fe0bdc467f8e190575e0e2e1
2022-01-21BtAudio: Remove sample_rate_to_hidl_2_0_mapJosh Wu
Bug: 203490261 Test: m android.hardware.bluetooth.audio-V1-impl Change-Id: Ie19f808e304ea6f293c611d99a810a97a7e1fd94
2022-01-22Merge "BtAudio: Fix SessionType mapping"Treehugger Robot
2022-01-21BtAudio: Add InReadPcmData to middlewareJosh Wu
Bug: 203490261 Test: m android.hardware.bluetooth.audio-V1-impl Change-Id: I330226ecc38368b3838c01a191b66b700a2338a7
2022-01-21Merge "Add a2dp vendor codec extension"Treehugger Robot
2022-01-21Merge "BtAudio: Fix default implementation typos"Treehugger Robot
2022-01-21Merge "Add updateTrackMetadata support with audioSerssion_2_2 control"Treehugger Robot
2022-01-21BtAudio: Fix default implementation typosJosh Wu
Bug: 203490261 Test: m android.hardware.bluetooth.audio-V1-impl Change-Id: I80f39d844ec5bb44830341f310143b3626593d79
2022-01-21BtAudio: Fix SessionType mappingJosh Wu
Bug: 203490261 Test: m android.hardware.bluetooth.audio-V1-impl -j Change-Id: I477e16e4fc060dd145828bca4aba5ad49a56ff76
2022-01-21Add a2dp vendor codec extensionAlice Kuo
Bug: 215645164 Test: make build Change-Id: I1ed80ab5cd4a9fbb9ea6fef7a5192241af76f1ea
2022-01-20Add vendor codec type to support the vendor config and capabilityAlice Kuo
Bug: 203490261 Bug: 150670922 Test: make build Change-Id: I26cdafe6b96a4c0a501f13bf790723c026029aa6
2022-01-20Add updateTrackMetadata support with audioSerssion_2_2 controlAlice Kuo
For the offload case, the updateTrackMetadata would be triggered by the audio HAL, extend the support for audio session 2.2 control Bug: 197296692 Bug: 150670922 Test: make build Change-Id: If1589b95bdec98d41c122da2c47ab53719af8425
2022-01-17Add Bluetooth Audio AIDL utilsJosh Wu
Test: manual Bug: 203490261 Change-Id: Ia299a61e89273ea1c9d132425598975418f57a03