From: Daniel Baluta Date: Wed, 17 Aug 2022 08:05:26 +0000 (+0300) Subject: ASoC: SOF: compress: Remove byte offset computation X-Git-Tag: v6.1-rc1~24^2~8^2~61^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bab10ec9fd9dc1537b705d0dd3862dd5982b921f;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Pierre-Louis Bossart Signed-off-by: Daniel Baluta Link: https://lore.kernel.org/r/20220817080529.10864-2-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/compress.c b/sound/soc/sof/compress.c index 67139e15f862a..760d6a4a52539 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;