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
Showing
- Android.bp 1 addition, 0 deletionsAndroid.bp
- system/audio_hal_interface/Android.bp 57 additions, 0 deletionssystem/audio_hal_interface/Android.bp
- system/audio_hal_interface/a2dp_software_encoding.cc 442 additions, 0 deletionssystem/audio_hal_interface/a2dp_software_encoding.cc
- system/audio_hal_interface/a2dp_software_encoding.h 55 additions, 0 deletionssystem/audio_hal_interface/a2dp_software_encoding.h
- system/audio_hal_interface/client_interface.cc 486 additions, 0 deletionssystem/audio_hal_interface/client_interface.cc
- system/audio_hal_interface/client_interface.h 175 additions, 0 deletionssystem/audio_hal_interface/client_interface.h
- system/audio_hal_interface/client_interface_unittest.cc 473 additions, 0 deletionssystem/audio_hal_interface/client_interface_unittest.cc
- system/btif/Android.bp 5 additions, 0 deletionssystem/btif/Android.bp
- system/btif/src/btif_a2dp.cc 16 additions, 1 deletionsystem/btif/src/btif_a2dp.cc
- system/btif/src/btif_a2dp_source.cc 70 additions, 27 deletionssystem/btif/src/btif_a2dp_source.cc
- system/btif/src/btif_av.cc 2 additions, 0 deletionssystem/btif/src/btif_av.cc
- system/main/Android.bp 2 additions, 0 deletionssystem/main/Android.bp
- system/test/run_unit_tests.sh 1 addition, 0 deletionssystem/test/run_unit_tests.sh
Loading
Please register or sign in to comment