Alice Kuo
f33cea94ce
Add onSessionEnded handle for HIDL 2.2
...
1. The audio driver need to get the session status callback as the
sessionEnded
2. Update the invalid audio configuration based on the session type
Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Test: Turn on/off bluetooth to make sure the onSessionEnded work well
Change-Id: Id758b556e8f5c9b63052a408154f02082515091c
2021-12-21 02:19:05 +00:00
Treehugger Robot
d2645ae70c
Merge "Add support LE audio offload for HIDL 2.2"
2021-12-20 14:14:41 +00:00
Alice Kuo
79c02160ef
Add support LE audio offload for HIDL 2.2
...
1. Clean up the LE offlload path for HIDL 2.1
2. Add support offload path start/suspend/stop function with HIDL 2.2
Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Change-Id: I2295b62fc2255d247f18f0852de2b40e6280d282
2021-12-16 15:00:23 +08:00
Etienne Ruffieux
f58147b712
Renamed bluetooth apex name to com.android.bluetooth
...
Tag: #feature
Bug: 206614050
Test: Compiles
Change-Id: I1118409952f16001b1144c91be1e9c81b0c489f0
2021-12-15 15:46:05 +00:00
Alice Kuo
6f765ce3e3
Clean up: remove LE audio hardware offload in Bluetooth audio HAL 2.1
...
LE audio offload plan to fully support on aidl or temporal HAL 2.2. Remove it in HAL 2.1 to make the compatible work easier
Bug: 197296692
Bug: 150670922
Test: HAL 2.1/2.2 work for A2DP software/hardware media, and LE audio
software media/voip call
Change-Id: Icc68bea357d2ee0427826e0c20888399662e9bcb
2021-12-10 05:35:52 +00:00
Jakub Pawlowski
8d87eb7e53
Pass sink metadata to Bluetooth
...
When just microphone is enabled, i.e. for recording audio, we will
receive just sink metadata update.
Bug: 150670922
Change-Id: I795385d19e64ec5c6bc0a8549beda52da27d25a1
2021-12-06 22:07:06 +01:00
Treehugger Robot
c4718b793c
Merge "Fix the integration issue for HAL 2.2"
2021-11-12 12:53:17 +00:00
Alice Kuo
db52a7beac
Link OWNERS to new location packages/modules/Bluetooth
...
Bug: 196026708
Change-Id: Ie437787cf6e6c24212bf1090f4eb8c3c377ed7bb
2021-11-10 09:43:30 +00:00
Alice Kuo
95ba6a2181
Fix the integration issue for HAL 2.2
...
Bug: 150670922
Bug: 197297498
Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2
Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-11-09 22:56:30 +08:00
Treehugger Robot
e1dc0e5365
Merge changes from topic "bluetooth_audio_hidl2.2"
...
* changes:
Add bluetooth.audio@2.2 implementation
Add hidl 2.2 for LE audio support
2021-10-29 21:00:22 +00:00
Alice Kuo
84e8767649
Add bluetooth.audio@2.2 implementation
...
Bug: 201292721
Bug: 150670922
Bug: 197297498
Test: m android.hardware.bluetooth.audio@2.2-impl
Change-Id: I224b1e001337165e5191060f0ae532933a419b68
2021-10-29 03:37:36 +08:00
Sukesh Srikakula
1e2b234392
Bluetooth HAL: Add missing retry logic to the H4Protocol::Send()
...
As part of an optimization, H4Protocol::Send() is modified to
use writev() instead of WriteSafely(), which has a retry logic
to send remaining bytes if the underlying write() call couldn't
transfer all the bytes in a single system call. This cl is now
adding this missing retry logic to this function.
Bug: 198992020
Test: H4 UTTest, Bluetooth functional test.
Change-Id: I78fad886d52f0910c83b000d5768128f00d3ddbc
2021-10-27 11:21:38 -07:00
Alice Kuo
965138aac1
Add hidl 2.2 for LE audio support
...
1. Add mode and difference config type for the unicast/broadcast
2. Support multiple audio configuration with broadcast
3. Add the streamMap for unicast/broadcast
Bug: 201292721
Bug: 150670922
Bug: 197297498
Test: m android.hardware.bluetooth.audio@2.2
Change-Id: Ib95850a7e56e9a03c5b400acdaf0625f0aa8726f
2021-10-27 22:09:01 +08:00
Xin Li
59772dd098
Merge "Merge Android 12"
2021-10-07 23:49:53 +00:00
Yiming Pan
4ce06fcaf6
Update owner information for VTS module VtsHalBluetoothA2dpV1_0TargetTest.
...
Test: Tree Hugger
Bug: 143903671
Change-Id: I85d027e8622f70bc9261a36d81ed564d51323cd8
2021-09-29 11:39:30 -07:00
Bob Badour
e180b3db5c
[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces am: b8995451aa
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1826012
Change-Id: I010e5711d6ab29aadb262799de8f04df08145453
2021-09-14 19:28:50 +00:00
Bob Badour
b8995451aa
[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
...
Added SPDX-license-identifier-Apache-2.0 to:
bluetooth/1.0/default/test/fuzzer/Android.bp
keymaster/4.0/support/fuzzer/Android.bp
radio/aidl/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: Id9c8b253a2402a07637f96281bcdaffbf3afc3c3
2021-09-13 17:50:14 -07:00
Treehugger Robot
f92be0673d
Merge changes If73b3e9f,If67bf4ff am: b87fef9c32
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1723072
Change-Id: I63bc66c647f5de63e2fc9087f7c48d826982f155
2021-09-09 22:39:04 +00:00
Ayushi Khopkar
7c0bcf3814
Added bluetoothV1.0_fuzzer
...
Test: ./bluetoothV1.0_fuzzer
Bug: 187131546
Change-Id: If73b3e9fa799057ae9ca8a1eba0e6a02c66498c0
2021-09-09 13:03:32 +05:30
Ayushi Khopkar
a37d3df9f8
Added cc_defaults for android.hardware.bluetooth@1.0-impl
...
Created a new library - android.hardware.bluetooth@1.0-impl-test,
that shall be used for testing by bluetoothV1.0_fuzzer
Test: Build android.hardware.bluetooth@1.0-impl
Test: Build android.hardware.bluetooth@1.0-impl-test
Bug: 187131546
Change-Id: If67bf4ff59fc446dfa0548ecb8f67359717f6cc9
2021-09-09 12:53:12 +05:30
Xin Li
e287df40b9
Merge sc-dev-plus-aosp-without-vendor@7634622
...
Merged-In: Ifa71accba7ecf2ab15980227a4413831cfceb187
Change-Id: I7fb44c6c578a51c8ad36649d20a46233fd9609ca
2021-08-14 06:30:57 +00:00
Yiming Pan
96f2167c4a
Merge "Add OWNERS for VTS module VtsHalBluetoothV1_0TargetTest"
2021-08-13 01:09:05 +00:00
Yiming Pan
a75adbe8cb
Add OWNERS for VTS module VtsHalBluetoothV1_0TargetTest
...
Each VTS module is required to have OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.
Test: Tree Hugger
Bug: 143903671
Change-Id: I63d07c5d1fcebe43c8d18db447e835e49f6114ef
2021-08-11 16:38:28 -07:00
Cheney Ni
e07d015249
BluetoothAudio: Refine the FMQ size for A2DP software encoding am: a0cc24730e am: 96f6682952
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1782007
Change-Id: Ia0e0830cdfbf5ddaf75cf787baf2c6ecb2bf09ab
2021-07-30 01:01:30 +00:00
Cheney Ni
a0cc24730e
BluetoothAudio: Refine the FMQ size for A2DP software encoding
...
For those high-resolution codecs, they are 24 or 32 bits per sample, so
the buffer size must be the LCM of 16, 24, and 32.
Bug: 194980528
Test: A2DP playing with aptX and / or LDAC
Change-Id: I788e185496dea4a1b40fa369e032a4f8491b835b
2021-07-29 21:10:45 +08:00
Treehugger Robot
c320725bb9
Merge "Revert "android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true"" am: d4019c4139 am: 3eb4ac2c13
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1760972
Change-Id: I2ce689cddbac72082a6c1c85dde1c5aa9b75fbde
2021-07-09 03:09:25 +00:00
Hongguang Chen
a12b18a4ee
Revert "android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true"
...
This reverts commit eddbb27ae8 .
Reason for revert: Fix building break. android.hardware.bluetooth@1.0-impl is vendor module, should be in vendor partition.
Bug:187131546
Change-Id: I701531ec0348fcbaf08cbb9520600d0077d58b2d
2021-07-08 23:34:12 +00:00
Kris Alder
0386c840d6
Merge changes I580e3f1d,I8e271982 am: 8ec315a25e am: 0e9d7c64a4
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1723159
Change-Id: I9f4c9427281659972ac607ee28afcc274e1691ac
2021-07-08 16:45:22 +00:00
Ayushi Khopkar
eddbb27ae8
android.hardware.bluetooth@1.0-impl: Updated to vendor_available:true
...
Updated android.hardware.bluetooth@1.0-impl, android.hardware.bluetooth-async
and android.hardware.bluetooth-hci libraries from 'vendor: true' to 'vendor_available: true'
Test: Build android.hardware.bluetooth@1.0-impl
Bug: 187131546
Change-Id: I580e3f1d770bee09880b74189b558ab1c4c4913e
2021-06-24 21:18:16 +05:30
Ayushi Khopkar
0be5891eda
android.hardware.bluetooth@1.0-impl: Updated Android.bp
...
Updated Android.bp to build both static and shared library
Test: Build android.hardware.bluetooth@1.0-impl
Bug: 187131546
Change-Id: I8e2719822937cf716f4f3cea05285abf4385f1fd
2021-06-24 21:18:04 +05:30
Jakub Pawlowski
4ab33be0b7
Bluetooth Audio: Remove WARN log spam in IsSessionReady am: 15410861bf am: b45def320a
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738979
Change-Id: Ieca31b035cb9b9c1e6b57784db9bcc7ed7a231b3
2021-06-17 16:49:14 +00:00
Jakub Pawlowski
15410861bf
Bluetooth Audio: Remove WARN log spam in IsSessionReady
...
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: Ib3ee17bcdd91e437dd8333c05d31013cb8ac6c9d
2021-06-17 16:34:31 +00:00
Treehugger Robot
99526e0378
Merge "bluetooth.audio@2.1: add handle IsSessionReady for LE offload encoder" am: 05e6b870a4 am: b358dd9da1
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1729161
Change-Id: I33f6c16f7a0c770be4002a1dc6917ac2dd60336b
2021-06-10 07:56:40 +00:00
Alice Kuo
6f3b351269
bluetooth.audio@2.1: add handle IsSessionReady for LE offload encoder
...
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: I5d5ca0cb63b2801b3ad1351754ebd9f5da73ac1e
2021-06-08 17:47:23 +08:00
Jakub Pawlowski
c19e62bf7b
bluetooth.audio@2.1: add internal HW offloading data path routing am: c8861ece90 am: 560e842d71
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1724672
Change-Id: I161220c33caa21e9da2dea55fcdccd4585c7706f
2021-06-07 22:03:00 +00:00
Jakub Pawlowski
c8861ece90
bluetooth.audio@2.1: add internal HW offloading data path routing
...
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: Id18b269a3a6ebcd56ba39158edc336c176cd2c16
2021-06-07 21:29:37 +00:00
Treehugger Robot
ef1f8bb275
Merge "Bluetooth: Turn Bluetooth off while device setup" am: 24c422c48b am: dac4637fcf am: c19539772e
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1685385
Change-Id: Ibf2063c81af3a4f2bab58d57eb1194ed0280a85d
2021-04-23 18:47:54 +00:00
Cheney Ni
1f3312ce04
Bluetooth: Turn Bluetooth off while device setup
...
Because there's only one HCI interface, it won't open if Bluetooth is in
use, but encounter unexpected results. Based on the auto-generated test
config file, and this adds BT off condition in the device setup stage.
Bug: 184720725
Test: android-vts/tools/vts-tradefed run commandAndExit vts -m VtsHalBluetoothV1_*TargetTest
Change-Id: If03d3621f9e0cfebce7574126def134c4303b97f
2021-04-23 11:59:33 +08:00
Myles Watson
91993f72ca
Merge "VtsBluetooth: Use ASSERT_* to end the test ASAP" am: 21927e2ddd am: a2a17c091f am: f8cfd25b39
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662559
Change-Id: Ic46e14c04e0c1d04914ec81c9bb2064b0c5a6fb5
2021-04-02 19:30:37 +00:00
Myles Watson
244ad3663f
VtsBluetooth: Use ASSERT_* to end the test ASAP
...
Bug: 181133988
Change-Id: I19807685e0330196a4309e5c3d1183f37911bdd5
Test: atest VtsHalBluetoothV1_0TargetTest
Tag: #test-stability
2021-04-01 11:05:09 -07:00
Jakub Pawlowski
7fc89deb09
Add Hardware Offloaded provider parameters for LC3 am: e5611aa5c6 am: 3d79c11c2b am: faf5896a8b
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1490526
Change-Id: Id12bd18a75215bd33ffaa35100f974801f2877f3
2021-03-18 23:15:47 +00:00
Jakub Pawlowski
e5611aa5c6
Add Hardware Offloaded provider parameters for LC3
...
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: I362542eef2afccbcc4b2cffc214651b37a04dbf3
2021-03-18 19:27:36 +00:00
Grzegorz Kołodziejczyk
f46a812e58
audio: Implement GetAudioConfig for HAL 2.1 am: 0b12cea833 am: b7e7872798 am: 68facba64f
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1608076
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I771b93be0d08b4d0eb1352dc19958b5a2b4ca5f1
2021-03-01 20:48:30 +00:00
Grzegorz Kołodziejczyk
0b12cea833
audio: Implement GetAudioConfig for HAL 2.1
...
This adds implementation for getting HAL 2.1 audio configuration.
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Change-Id: I12bbd0b9219e4d6f8328fd514536ce9ee477b757
2021-03-01 17:52:47 +00:00
Grzegorz Kołodziejczyk
f28eec7ad1
audio: Implement OnSessionStarted for HAL 2.1 am: a80a851ada am: 81624c5ef7 am: 2f667a0384
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1608075
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Icc5f26f29bd6c4b8e66354742f46793b14d2b7da
2021-03-01 14:21:54 +00:00
Grzegorz Kołodziejczyk
a80a851ada
audio: Implement OnSessionStarted for HAL 2.1
...
Patch implements OnSessionStarted for HAL 2.1.
Bug:
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Change-Id: Ide76fe59c323726ae98e6311f7360eb733c1c7cc
Change-Id: I84302cf653ffebcba3b4c875f6a156293d8dae75
2021-03-01 11:38:03 +00:00
Treehugger Robot
65bc2eb3bd
Merge "audio: Introduce read PCM from FMQ session functionality" am: 1ab703d2da am: 0319a9bb17 am: 396634b967
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1589975
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie9e6622612bf50c3d134575a81d03a22c8f2dc78
2021-03-01 08:06:15 +00:00
Christopher Di Bella
aaa9c6f386
Merge "follows the advice of -Wsign-compare" am: 06ea5f150a am: 300005809b am: d26260bff2
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1606916
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I996dc12f68684a34d383fea6861ebb5a4959ba33
2021-03-01 08:06:09 +00:00
Jakub Pawlowski
f3c7b23026
Add OWNERS file to bluetooth/audio/utils am: ff9deb484c am: d809c434b5 am: 814c10a4ca
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1609314
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I1d760bcd69514370a2c4df0ddd684f83c52fae13
2021-03-01 08:05:53 +00:00
Treehugger Robot
1ab703d2da
Merge "audio: Introduce read PCM from FMQ session functionality"
2021-02-27 00:13:15 +00:00