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

Commit 77917510 authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Get path delay support in compress path



Compress driver change to query DSP path delay.

CRs-Fixed: 1112258
Change-Id: I68d40daa0fa59c9a39d83ffc8517b0852a57ae05
Signed-off-by: default avatarManish Dewangan <manish@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 3aeaf95e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -140,16 +140,19 @@ struct snd_compr_audio_info {
 * end of the track
 * @SNDRV_COMPRESS_ENCODER_DELAY: no of samples inserted by the encoder at the
 * beginning of the track
 * @SNDRV_COMPRESS_PATH_DELAY: dsp path delay in microseconds
 */
enum sndrv_compress_encoder {
	SNDRV_COMPRESS_ENCODER_PADDING = 1,
	SNDRV_COMPRESS_ENCODER_DELAY = 2,
	SNDRV_COMPRESS_MIN_BLK_SIZE = 3,
	SNDRV_COMPRESS_MAX_BLK_SIZE = 4,
	SNDRV_COMPRESS_PATH_DELAY = 5,
};

#define SNDRV_COMPRESS_MIN_BLK_SIZE SNDRV_COMPRESS_MIN_BLK_SIZE
#define SNDRV_COMPRESS_MAX_BLK_SIZE SNDRV_COMPRESS_MAX_BLK_SIZE
#define SNDRV_COMPRESS_PATH_DELAY SNDRV_COMPRESS_PATH_DELAY

/**
 * struct snd_compr_metadata - compressed stream metadata