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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user