diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2022-08-17 11:05:27 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-17 13:00:22 +0100 |
commit | e3091f0a3f563ad1c9b60c290752e1190b67ea97 (patch) | |
tree | ebb8bb42a5eeddfd528017cbc755a4957d09d13a /sound/soc/sof/sof-priv.h | |
parent | bab10ec9fd9dc1537b705d0dd3862dd5982b921f (diff) | |
download | linux-stable-e3091f0a3f563ad1c9b60c290752e1190b67ea97.tar.gz linux-stable-e3091f0a3f563ad1c9b60c290752e1190b67ea97.tar.bz2 linux-stable-e3091f0a3f563ad1c9b60c290752e1190b67ea97.zip |
ASoC: SOF: compress: Introduce sof_compr_stream
This will keep SOF compress stream private data. So far
we used snd_compr_tstamp to hold the private data but this
is no longer enough as we need to hold other info like
number of channels or sample bytes.
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20220817080529.10864-3-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 823583086279..42f112030fb8 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -105,6 +105,11 @@ enum sof_debugfs_access_type { SOF_DEBUGFS_ACCESS_D0_ONLY, }; +struct sof_compr_stream { + u64 copied_total; + u32 sampling_rate; +}; + struct snd_sof_dev; struct snd_sof_ipc_msg; struct snd_sof_ipc; |