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 18:52:33 +0000 (02:52 +0800)
commita68a6206190feae6bbe66fa336d38e405624ba07
tree94ba603190739cd4fdfa073ef32d974e1adae861
parentc12dc4d9e01d7b526df1577bbac81ff87715bf79
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
Merged-In: Id6a79b651f2acbd35bd509ba36a80adea5c13e05
(cherry picked from commit 7397c51ac706d3577b277d7b5bcdc78c78fcc6ac)
audio_bluetooth_hw/audio_bluetooth_hw.cc
audio_bluetooth_hw/stream_apis.cc
audio_bluetooth_hw/stream_apis.h