summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-priv.h
diff options
context:
space:
mode:
authorLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>2022-08-17 11:05:28 +0300
committerMark Brown <broonie@kernel.org>2022-08-17 13:00:23 +0100
commit3ccbe6887747679d15e5c9524b23754281a24d9e (patch)
tree868cd7ccf1f72468c271fe6e426408470aed8e76 /sound/soc/sof/sof-priv.h
parente3091f0a3f563ad1c9b60c290752e1190b67ea97 (diff)
downloadlinux-stable-3ccbe6887747679d15e5c9524b23754281a24d9e.tar.gz
linux-stable-3ccbe6887747679d15e5c9524b23754281a24d9e.tar.bz2
linux-stable-3ccbe6887747679d15e5c9524b23754281a24d9e.zip
ASoC: SOF: compress: Save channel count and sample bytes
The purpose of this change is to enable the saving of the channel count and sample container bytes format parameters for later use to compute the timestamps. This is done when setting the compress stream parameters (in sof_compr_set_params). Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20220817080529.10864-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index 42f112030fb8..33165299a20f 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -108,6 +108,8 @@ enum sof_debugfs_access_type {
struct sof_compr_stream {
u64 copied_total;
u32 sampling_rate;
+ u16 channels;
+ u16 sample_container_bytes;
};
struct snd_sof_dev;