ASoC: msm: Fix the Listen calibration copy issue
This change fixes issue with listen calibration data
copied to the shared memory of correct size. A bug was
introduced during support for multisession listen support
on this branch. This changes address that issue of copying
calibration data of correct length.
Change-Id: I772ea7fc076c42ddd3629f6eba6eeb38313cbf88
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
diff --git a/sound/soc/msm/qdsp6v2/q6lsm.c b/sound/soc/msm/qdsp6v2/q6lsm.c
index a88b733..61222fe 100644
--- a/sound/soc/msm/qdsp6v2/q6lsm.c
+++ b/sound/soc/msm/qdsp6v2/q6lsm.c
@@ -783,7 +783,7 @@
client->lsm_cal_size = lsm_cal.cal_size;
memcpy((client->sound_model.data + pad_zero +
client->sound_model.size),
- (uint32_t *)lsm_cal.cal_kvaddr, len);
+ (uint32_t *)lsm_cal.cal_kvaddr, lsm_cal.cal_size);
} else {
rc = -EBUSY;
goto fail;