From 477b7de56af38558792edd77a9afe77ca49a2f08 Mon Sep 17 00:00:00 2001 From: Scott Lin Date: Mon, 21 Sep 2020 17:18:07 +0800 Subject: [PATCH] MMCEI-8930: test patch for audio recording issue --- sound/soc/syna/berlin_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/syna/berlin_capture.c b/sound/soc/syna/berlin_capture.c index 0c50802..ce80cd2 100644 --- a/sound/soc/syna/berlin_capture.c +++ b/sound/soc/syna/berlin_capture.c @@ -567,7 +567,7 @@ static void copy_pcm(struct work_struct *work) frames_to_bytes(runtime, runtime->buffer_size); const size_t samples_pcm_dma_ch = bytes_to_samples(runtime, bc->dma_period_ch) >> 1; - u64 *src = (u64 *) (bc->dma_area[0] + bc->runtime_offset); + u64 *src = (u64 *) (bc->dma_area[0] + bc->read_offset); s64 *dst = (s64 *) (runtime->dma_area + bc->runtime_offset); unsigned long flags; u32 i, chid; -- 2.7.4