Fix wrong device address name within helper function
AudioPolicyManager may call audio_device_address_to_parameter from
both checkInputsForDevice and checkOutputForDevices.
The sign bit is ignored, it result in selecting
a2dp_sink_address=xxx for a remote submix input device as
A2DP Out headphone and in remote submix are respectively identified
with 0x100 and 0x80000100.
Although most hal does not much care about address, this CL fixes this
issue.
Bug: 130284799
Test: audio playback and capture over BT A2DP and USB
Change-Id: I4ef2f303fd82ad3a412a95ebd8857ed400b078ee
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
1 file changed