From e2211637056528f818fe49ca386c8e8d4531a4de Mon Sep 17 00:00:00 2001 From: Deeraj Soman Date: Wed, 27 Feb 2019 12:13:18 +0530 Subject: [PATCH] ANDROID: GKI: asoc: msm: Add support for compressed perf mode Add support for compressed perf mode. Compressed perf mode configures the DSP in low latency mode. In low latency mode, DSP have reduced buffer size for faster operations. Above layers may pass this flag for configuring the DSP in low latency mode. Change-Id: Ib291d0fb9921edbaf2466d44c87aeed3367aec67 Signed-off-by: Deeraj Soman Bug: 151372815 (cherry picked from commit aec78f41d35e5b12bd90c022fc2666bb15138cee) Signed-off-by: Saravana Kannan --- include/uapi/sound/compress_params.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h index 985129bc7cd9..6db5f297a9f3 100644 --- a/include/uapi/sound/compress_params.h +++ b/include/uapi/sound/compress_params.h @@ -77,6 +77,11 @@ /* Bit-0 - 0 : Disable Timestamp mode */ #define COMPRESSED_TIMESTAMP_FLAG 0x0001 +/* Perf mode flag */ +/* Bit-1 - 1 : Enable perf mode */ +/* Bit-1 - 0 : Disable perf mode */ +#define COMPRESSED_PERF_MODE_FLAG 0x0002 + /* Codecs are listed linearly to allow for extensibility */ #define SND_AUDIOCODEC_PCM ((__u32) 0x00000001) #define SND_AUDIOCODEC_MP3 ((__u32) 0x00000002)