mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
ASoC: msm: fix integer overflow for long duration offload playback
updating runtime bytes trasferred and available with time stamp copied total is not needed. Change-Id: I4eebf3eb98c61523d8f872427be29f8ed351c285 Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
This commit is contained in:
parent
653a9c02c2
commit
05be48a112
1 changed files with 6 additions and 0 deletions
|
|
@ -174,12 +174,18 @@ static int snd_compr_update_tstamp(struct snd_compr_stream *stream,
|
|||
err = stream->ops->pointer(stream, tstamp);
|
||||
if (err)
|
||||
return err;
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
pr_debug("dsp consumed till %u total %llu bytes\n",
|
||||
tstamp->byte_offset,
|
||||
stream->runtime->total_bytes_transferred);
|
||||
#else
|
||||
pr_debug("dsp consumed till %d total %d bytes\n",
|
||||
tstamp->byte_offset, tstamp->copied_total);
|
||||
if (stream->direction == SND_COMPRESS_PLAYBACK)
|
||||
stream->runtime->total_bytes_transferred = tstamp->copied_total;
|
||||
else
|
||||
stream->runtime->total_bytes_available = tstamp->copied_total;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue