ASoC: SOF: compress: Add support for computing timestamps
authorLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Wed, 17 Aug 2022 08:05:29 +0000 (11:05 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 17 Aug 2022 12:00:24 +0000 (13:00 +0100)
commitc1a731c71359407eae4fd0a5fd675ef25a582764
treefa04ebc3f2ac5b8fa0a947c7714d84d83a11c970
parent3ccbe6887747679d15e5c9524b23754281a24d9e
ASoC: SOF: compress: Add support for computing timestamps

We compute the number of pcm_io_frames by dividing the
dai position to size of a frame (channels * sample size).

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-5-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/compress.c