Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fffeac81 authored by Eric Laurent's avatar Eric Laurent
Browse files

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
parent 9e83d5e2
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);