OSDN Git Service

Add stack side interface for Bluetooth audio HAL V2
authorCheney Ni <cheneyni@google.com>
Thu, 8 Nov 2018 08:41:02 +0000 (16:41 +0800)
committerHansong Zhang <hsz@google.com>
Wed, 6 Feb 2019 21:21:35 +0000 (13:21 -0800)
commitad05f3e6cf9225cc15b2583744b2476cf4d687c8
tree17deadc7fe1c309724584adfc082117fd30927c4
parentaef115f777f55dcc5a5de11b034d23f1c2fa10f5
Add stack side interface for Bluetooth audio HAL V2

This bases on the new Bluetooth Audio HAL V2 to provide a HIDL based
interface for the stack. There will be a common interface named
BluetoothAudioClientInterface that the stack can register its session for
stream of A2DP or Hearing Aid. When the stack registers to this
pre-implemented BluetoothAudioClientInterface, the audio HAL can control
the stream state and the stack can report results to the audio HAL.
When running for software encoding, there will also data path via FMQ to
provide the bridge between audio HAL and the stack. This change contains
A2DP software encoding (legacy) only.

Bug: 111519504
Test: manual with A2DP software encoding (legacy)

Change-Id: Iac5a43c929d4036fa86e2b0c2c2920ca2b9dfa50
13 files changed:
Android.bp
audio_hal_interface/Android.bp [new file with mode: 0644]
audio_hal_interface/a2dp_software_encoding.cc [new file with mode: 0644]
audio_hal_interface/a2dp_software_encoding.h [new file with mode: 0644]
audio_hal_interface/client_interface.cc [new file with mode: 0644]
audio_hal_interface/client_interface.h [new file with mode: 0644]
audio_hal_interface/client_interface_unittest.cc [new file with mode: 0644]
btif/Android.bp
btif/src/btif_a2dp.cc
btif/src/btif_a2dp_source.cc
btif/src/btif_av.cc
main/Android.bp
test/run_unit_tests.sh