mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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 <sshaik@codeaurora.org> Signed-off-by: Surendar Karka <skarka@codeaurora.org>
This commit is contained in:
parent
28f1f38474
commit
bc889dcc87
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue