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

Commit 2beb2fad authored by Banajit Goswami's avatar Banajit Goswami Committed by Gerrit - the friendly Code Review server
Browse files

ALSA: compress: add timestamp support for compress audio



Add timestamp field to compress structure which indicates when
audio sample has been captured or needs to be rendered.

Change-Id: Ie61170c6645c71207e7df1c7176e0750e47590f8
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 518970ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ struct snd_compr_params {
 * @pcm_io_frames: Frames rendered or received by DSP into a mixer or an audio
 * output/input. This field should be used for A/V sync or time estimates.
 * @sampling_rate: sampling rate of audio
 * @timestamp: timestamp of audio clips
 */
struct snd_compr_tstamp {
	__u32 byte_offset;
@@ -71,6 +72,7 @@ struct snd_compr_tstamp {
	__u32 pcm_frames;
	__u32 pcm_io_frames;
	__u32 sampling_rate;
	__u64 timestamp;
} __attribute__((packed, aligned(4)));

/**