Commit d45f552a authored by Daniel Baluta's avatar Daniel Baluta Committed by Mark Brown

ASoC: SOF: compress: Remove dai_posn variable

dai_posn is set but never used. Initial intention was
to use dai_posn to shorthen one code line but it looks fine
without it too.

Fixes: c1a731c7 ("ASoC: SOF: compress: Add support for computing timestamps")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20220822174937.254873-1-daniel.baluta@oss.nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 62bd431b
...@@ -327,7 +327,6 @@ static int sof_compr_pointer(struct snd_soc_component *component, ...@@ -327,7 +327,6 @@ static int sof_compr_pointer(struct snd_soc_component *component,
struct snd_compr_stream *cstream, struct snd_compr_stream *cstream,
struct snd_compr_tstamp *tstamp) struct snd_compr_tstamp *tstamp)
{ {
u64 dai_posn;
struct snd_sof_pcm *spcm; struct snd_sof_pcm *spcm;
struct snd_soc_pcm_runtime *rtd = cstream->private_data; struct snd_soc_pcm_runtime *rtd = cstream->private_data;
struct sof_compr_stream *sstream = cstream->runtime->private_data; struct sof_compr_stream *sstream = cstream->runtime->private_data;
...@@ -336,8 +335,6 @@ static int sof_compr_pointer(struct snd_soc_component *component, ...@@ -336,8 +335,6 @@ static int sof_compr_pointer(struct snd_soc_component *component,
if (!spcm) if (!spcm)
return -EINVAL; return -EINVAL;
dai_posn = spcm->stream[cstream->direction].posn.dai_posn;
tstamp->sampling_rate = sstream->sampling_rate; tstamp->sampling_rate = sstream->sampling_rate;
tstamp->copied_total = sstream->copied_total; tstamp->copied_total = sstream->copied_total;
tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn, tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment