OSDN Git Service

Add a workaround to play A2DP SBC Mono
authorCheney Ni <cheneyni@google.com>
Mon, 11 Mar 2019 12:49:11 +0000 (20:49 +0800)
committerCheney Ni <cheneyni@google.com>
Wed, 20 Mar 2019 11:46:57 +0000 (19:46 +0800)
commiteaa0110045d12d5cf2a4466168f19c8a80d1144b
treebf00e91797a8fcab9ec6563f7ba5369c56308628
parentddd6a6f7c07d2a369f097770f6c74c45ec90894c
Add a workaround to play A2DP SBC Mono

There is a similar WAR of aosp/522661 at A2DP legacy HAL. In order to
suport MONO channel mode, the PCM audio is pulled as STEREO and mixed
into MONO by the Bluetooth Audio HAL.

Test: Playing SBC mono with Headset
Bug: 127593318
Change-Id: I78f3973ba6c8c733dc18122288a915daed97be65
audio_bluetooth_hw/Android.bp
audio_bluetooth_hw/device_port_proxy.cc
audio_bluetooth_hw/device_port_proxy.h
audio_bluetooth_hw/stream_apis.cc