浏览代码

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

Linux Build Service Account 7 年之前
父节点
当前提交
e827db3ee0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      asoc/msm-compress-q6-v2.c

+ 1 - 1
asoc/msm-compress-q6-v2.c

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