diff options
| author | Dhananjay Kumar <dhakumar@codeaurora.org> | 2015-08-04 23:59:28 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:11:19 -0700 |
| commit | 3e6ed249e13716fb34b8506eedc66dc44ed7479a (patch) | |
| tree | d0af858ec43b1ecdd990b7f8c830e0f94f66d14f /include | |
| parent | 72f334a91f4e07bb665a3c8d22e5124ee6520e10 (diff) | |
ASoC: msm: fix integer overflow for long duration offload playback
32 bit variable is used for storing number of bytes copied to DSP,
which can overflow when playback duration goes beyond 24 hours.
Change data type for this variable to uint64_t, to prevent overflow
and related playback anomaly.
CRs-Fixed: 877677
Change-Id: Ie4dfa630cf89559bb784d4712c52526665baeca6
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/sound/compress_offload.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/sound/compress_offload.h b/include/uapi/sound/compress_offload.h index a05b7ea11d2a..e04ccf0b6e8b 100644 --- a/include/uapi/sound/compress_offload.h +++ b/include/uapi/sound/compress_offload.h @@ -66,7 +66,7 @@ struct snd_compr_params { */ struct snd_compr_tstamp { __u32 byte_offset; - __u32 copied_total; + __u64 copied_total; __u32 pcm_frames; __u32 pcm_io_frames; __u32 sampling_rate; |
