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

Commit feb23f7f authored by Sudheer Papothi's avatar Sudheer Papothi Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Handles additional flac metadata



Currently, metadata such as min/max block size is sent only for first
stream in FLAC gapless playback. This causes incorrect configuration
and, subsequently, framedrops in decoding of second stream and onwards
by sending these additional flac metadata, dsp receives stream-wise
metadata and decodes without dropping

Change-Id: Ibd4a9b24180622422ed719b075fd47bcd4ad0c9b
Signed-off-by: default avatarAmit Shekhar <ashekhar@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarSudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent ebb7ffe4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -144,8 +144,13 @@ struct snd_compr_audio_info {
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,
};

#define SNDRV_COMPRESS_MIN_BLK_SIZE SNDRV_COMPRESS_MIN_BLK_SIZE
#define SNDRV_COMPRESS_MAX_BLK_SIZE SNDRV_COMPRESS_MAX_BLK_SIZE

/**
 * struct snd_compr_metadata - compressed stream metadata
 * @key: key id