mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Merge "asoc: Fix read offset for compress capture with timestamp"
This commit is contained in:
commit
e827db3ee0
1 changed files with 1 additions and 1 deletions
|
|
@ -541,7 +541,7 @@ static int msm_compr_read_buffer(struct msm_compr_audio *prtd)
|
|||
return ret;
|
||||
}
|
||||
prtd->bytes_read += buffer_length;
|
||||
prtd->bytes_read_offset += buffer_length;
|
||||
prtd->bytes_read_offset += buffer_length + prtd->ts_header_offset;
|
||||
if (prtd->bytes_read_offset >= prtd->buffer_size)
|
||||
prtd->bytes_read_offset -= prtd->buffer_size;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue