audio: Enable API for BT to query offload A2DP encoding formats

Connect AudioSystem JNI to native implementation of the mechanism
to query offload A2DP encoding formats supported on primary HAL.

Bug: 111812273
Test: make
Change-Id: Ie94f8fa2b9900fca8658f15bf1cb1be80d9e0047
This commit is contained in:
Eric Laurent
2019-01-17 09:03:47 -08:00
parent 9e83d5e2e8
commit fffeac819d

View File

@@ -2039,10 +2039,8 @@ android_media_AudioSystem_getHwOffloadEncodingFormatsSupportedForA2DP(
return (jint)AUDIO_JAVA_BAD_VALUE;
}
std::vector<audio_format_t> encodingFormats;
//FIXME: enable when native implementaiton is merged
//status_t status = AudioSystem::getHwOffloadEncodingFormatsSupportedForA2DP(
// &encodingFormats);
status_t status = NO_ERROR;
status_t status = AudioSystem::getHwOffloadEncodingFormatsSupportedForA2DP(
&encodingFormats);
if (status != NO_ERROR) {
ALOGE("%s: error %d", __FUNCTION__, status);
jStatus = nativeToJavaStatus(status);