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>
This commit is contained in:
Daniel Baluta 2022-08-17 11:05:26 +03:00 committed by Mark Brown
parent 6256547352
commit bab10ec9fd
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;