OSDN Git Service

BluetoothAudioHAL: Have full initialization for audio hardware objects
authorCheney Ni <cheneyni@google.com>
Wed, 25 Mar 2020 10:37:33 +0000 (18:37 +0800)
committerCheney Ni <cheneyni@google.com>
Wed, 25 Mar 2020 10:38:34 +0000 (18:38 +0800)
commit7397c51ac706d3577b277d7b5bcdc78c78fcc6ac
tree8cee3e7266aa6bfeddaa67562140a2fd961f584a
parent0e4f91c04755bd4f7c954305d7fee63aff684b52
BluetoothAudioHAL: Have full initialization for audio hardware objects

Audio frameworks usually check whether a module has specific features by
particular function pointers, and must be null if unsupported. If a
module is not fully initialized, some pointers would be undefined, but
causes abnormal crashes when accessed by audio frameworks.  

Bug: 152379666
Test: manually
Change-Id: Id6a79b651f2acbd35bd509ba36a80adea5c13e05
audio_bluetooth_hw/audio_bluetooth_hw.cc
audio_bluetooth_hw/stream_apis.cc
audio_bluetooth_hw/stream_apis.h