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

Commit 21ffaa86 authored by Ramjee Singh's avatar Ramjee Singh Committed by Shiv Maliyappanahalli
Browse files

hal: Fix fragment size for offload playback.

-Use default fragment size for all clips except
 AV streaming, flac, DSD in ascending order

Change-Id: I68f9d4d3c71299d9dc7868aab518a22a6a0b57cb
parent c3c5d43c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5177,8 +5177,8 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info)
        fragment_size = info->offload_buffer_size;
    }

    if (info != NULL && !info->has_video) {
        if (info->is_streaming) {
    if (info != NULL) {
        if (info->is_streaming && info->has_video) {
            fragment_size = COMPRESS_OFFLOAD_FRAGMENT_SIZE_FOR_AV_STREAMING;
            ALOGV("%s: offload fragment size reduced for AV streaming to %d",
                   __func__, fragment_size);
+2 −2
Original line number Diff line number Diff line
@@ -5062,8 +5062,8 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info)
        fragment_size = info->offload_buffer_size;
    }

    if (info != NULL && !info->has_video) {
        if (info->is_streaming) {
    if (info != NULL) {
        if (info->is_streaming && info->has_video) {
            fragment_size = COMPRESS_OFFLOAD_FRAGMENT_SIZE_FOR_AV_STREAMING;
            ALOGV("%s: offload fragment size reduced for AV streaming to %d",
                   __func__, fragment_size);