summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2022-08-17 10:05:26 +0200
committerMark Brown <broonie@kernel.org>2022-08-17 14:00:21 +0200
commitbab10ec9fd9dc1537b705d0dd3862dd5982b921f (patch)
tree0777d37a1defcb11406bdec2cced2b97e4219042 /sound/soc
parentASoC: Intel: HSW and BDW updates (diff)
downloadlinux-bab10ec9fd9dc1537b705d0dd3862dd5982b921f.tar.xz
linux-bab10ec9fd9dc1537b705d0dd3862dd5982b921f.zip
ASoC: SOF: compress: Remove byte offset computation
Byte offset is the offset in the ring buffer to the DSP while posn_offset is an offset inside the stream_box where we keep position information. 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-2-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/sof/compress.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/sof/compress.c b/sound/soc/sof/compress.c
index 67139e15f862..760d6a4a5253 100644
--- a/sound/soc/sof/compress.c
+++ b/sound/soc/sof/compress.c
@@ -237,7 +237,6 @@ static int sof_compr_set_params(struct snd_soc_component *component,
goto out;
}
- tstamp->byte_offset = sdev->stream_box.offset + ipc_params_reply.posn_offset;
tstamp->sampling_rate = params->codec.sample_rate;
spcm->prepared[cstream->direction] = true;