Merge "asoc: Fix read offset for compress capture with timestamp"

This commit is contained in:
Linux Build Service Account 2018-04-29 08:44:00 -07:00 • committed by Gerrit - the friendly Code Review server
commit e827db3ee0

View file

@ -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;