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

Commit b5a381aa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: add support to send compress offload fragment size"

parents c53dd19a 80a4429e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3478,6 +3478,14 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info)
        fragment_size =  atoi(value) * 1024;
    }

    /* Use incoming offload buffer size if default buffer size is less */
    if ((info != NULL) && (fragment_size < info->offload_buffer_size)) {
        ALOGI("%s:: Overwriting offload buffer size default:%d new:%d", __func__,
              fragment_size,
              info->offload_buffer_size);
        fragment_size = info->offload_buffer_size;
    }

    // For FLAC use max size since it is loss less, and has sampling rates
    // upto 192kHZ
    if (info != NULL && !info->has_video &&
+8 −0
Original line number Diff line number Diff line
@@ -3277,6 +3277,14 @@ uint32_t platform_get_compress_offload_buffer_size(audio_offload_info_t* info)
        fragment_size =  atoi(value) * 1024;
    }

    /* Use incoming offload buffer size if default buffer size is less */
    if ((info != NULL) && (fragment_size < info->offload_buffer_size)) {
        ALOGI("%s:: Overwriting offload buffer size default:%d new:%d", __func__,
              fragment_size,
              info->offload_buffer_size);
        fragment_size = info->offload_buffer_size;
    }

    // For FLAC use max size since it is loss less, and has sampling rates
    // upto 192kHZ
    if (info != NULL && !info->has_video &&