summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-priv.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2023-01-17 14:25:32 +0200
committerMark Brown <broonie@kernel.org>2023-01-17 13:37:53 +0000
commit090349a9feba3ceee3997d31d68ffe54e5b57acb (patch)
tree37d8bb27f69eeae656b800ed86345f6cafe75b0d /sound/soc/sof/sof-priv.h
parent249f186d6b0211fc59d83db128030f2b298063a1 (diff)
downloadlinux-stable-090349a9feba3ceee3997d31d68ffe54e5b57acb.tar.gz
linux-stable-090349a9feba3ceee3997d31d68ffe54e5b57acb.tar.bz2
linux-stable-090349a9feba3ceee3997d31d68ffe54e5b57acb.zip
ASoC: SOF: Add support for compress API for stream data/offset
snd_sof_pcm_stream keeps information about both PCM (snd_pcm_substream) and Compress (snd_compr_stream) streams. When PCM substream pointer is NULL this means we are dealing with a compress stream. Reviewed-by: Paul Olaru <paul.olaru@nxp.com> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20230117122533.201708-4-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-priv.h')
-rw-r--r--sound/soc/sof/sof-priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index 95a6b301da49..86fc5c6a9c39 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -115,6 +115,7 @@ struct sof_compr_stream {
u32 sampling_rate;
u16 channels;
u16 sample_container_bytes;
+ size_t posn_offset;
};
struct snd_sof_dev;