mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "ASoC: msm: fix integer overflow for long duration offload playback"
This commit is contained in:
commit
87587431e5
2 changed files with 9 additions and 0 deletions
|
|
@ -67,7 +67,11 @@ struct snd_compr_params {
|
|||
*/
|
||||
struct snd_compr_tstamp {
|
||||
__u32 byte_offset;
|
||||
#ifdef CONFIG_AUIDO_QGKI
|
||||
__u64 copied_total;
|
||||
#else
|
||||
__u32 copied_total;
|
||||
#endif
|
||||
__u32 pcm_frames;
|
||||
__u32 pcm_io_frames;
|
||||
__u32 sampling_rate;
|
||||
|
|
|
|||
|
|
@ -171,8 +171,13 @@ static int snd_compr_update_tstamp(struct snd_compr_stream *stream,
|
|||
if (!stream->ops->pointer)
|
||||
return -ENOTSUPP;
|
||||
stream->ops->pointer(stream, tstamp);
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
pr_debug("dsp consumed till %d total %llu bytes\n",
|
||||
tstamp->byte_offset, tstamp->copied_total);
|
||||
#else
|
||||
pr_debug("dsp consumed till %d total %d bytes\n",
|
||||
tstamp->byte_offset, tstamp->copied_total);
|
||||
#endif
|
||||
if (stream->direction == SND_COMPRESS_PLAYBACK)
|
||||
stream->runtime->total_bytes_transferred = tstamp->copied_total;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue