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

Commit 397db576 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio hal: clarify requirements on offload buffer fragments

Add comment reflecting driver constraints on offload buffer size
and count.

Bug: 28545177.
Change-Id: Ia6b26651df221d95c8bbd6ce97b600221830ad2d
parent 1c9849ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@

#include "sound/compress_params.h"

/* COMPRESS_OFFLOAD_FRAGMENT_SIZE must be more than 8KB and a multiple of 32KB if more than 32KB.
 * COMPRESS_OFFLOAD_FRAGMENT_SIZE * COMPRESS_OFFLOAD_NUM_FRAGMENTS must be less than 8MB. */
#define COMPRESS_OFFLOAD_FRAGMENT_SIZE (256 * 1024)
// 2 buffers causes problems with high bitrate files
#define COMPRESS_OFFLOAD_NUM_FRAGMENTS 3