From bc889dcc8782a44706751cfdd4f0099627a1f847 Mon Sep 17 00:00:00 2001 From: Surendar Karka Date: Mon, 20 Aug 2018 18:59:58 +0530 Subject: [PATCH] uapi: sound: latency mode support for transcode loopback Add metadata to configure latency mode for DSP transcode loopback to set legacy or low latency path. Userspace API introduced to configure the same. Change-Id: I914c68a9e9d8647530b72c42548e571b7508c423 Signed-off-by: Siddartha Shaik Signed-off-by: Surendar Karka --- include/uapi/sound/compress_offload.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/sound/compress_offload.h b/include/uapi/sound/compress_offload.h index 053b6d5cd3ba..1d11056e8b70 100644 --- a/include/uapi/sound/compress_offload.h +++ b/include/uapi/sound/compress_offload.h @@ -145,6 +145,11 @@ struct snd_compr_audio_info { #define SNDRV_COMPRESS_CLK_REC_MODE_NONE 0 #define SNDRV_COMPRESS_CLK_REC_MODE_AUTO 1 +enum sndrv_compress_latency_mode { + SNDRV_COMPRESS_LEGACY_LATENCY_MODE = 0, + SNDRV_COMPRESS_LOW_LATENCY_MODE = 1, +}; + #endif /** * enum sndrv_compress_encoder @@ -171,6 +176,7 @@ enum sndrv_compress_encoder { SNDRV_COMPRESS_START_DELAY = 7, SNDRV_COMPRESS_ENABLE_ADJUST_SESSION_CLOCK = 8, SNDRV_COMPRESS_ADJUST_SESSION_CLOCK = 9, + SNDRV_COMPRESS_LATENCY_MODE = 10, #endif }; @@ -183,6 +189,7 @@ enum sndrv_compress_encoder { #define SNDRV_COMPRESS_ENABLE_ADJUST_SESSION_CLOCK \ SNDRV_COMPRESS_ENABLE_ADJUST_SESSION_CLOCK #define SNDRV_COMPRESS_ADJUST_SESSION_CLOCK SNDRV_COMPRESS_ADJUST_SESSION_CLOCK +#define SNDRV_COMPRESS_LATENCY_MODE SNDRV_COMPRESS_LATENCY_MODE #endif /**