From f734578a22081153f372191aa7272d78b081c841 Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Thu, 3 Aug 2017 16:40:45 +0530 Subject: [PATCH] ASoC: tegra-alt: send bytes for period size msg tegra210_adsp_send_period_size_msg is sending size in period size which is wrong and it should be no of bytes in the period size. Bug 200329032 Change-Id: Ib43569d24dcfeeeac36c878a51affaa347eacf0b Signed-off-by: Mohan Kumar Reviewed-on: https://git-master.nvidia.com/r/1519960 Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/1532211 GVS: Gerrit_Virtual_Submit Reviewed-by: Ravindra Lokhande --- sound/soc/tegra-alt/tegra210_adsp_alt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/tegra-alt/tegra210_adsp_alt.c b/sound/soc/tegra-alt/tegra210_adsp_alt.c index 9316acea..41560ff3 100644 --- a/sound/soc/tegra-alt/tegra210_adsp_alt.c +++ b/sound/soc/tegra-alt/tegra210_adsp_alt.c @@ -1691,8 +1691,8 @@ static int tegra210_adsp_pcm_hw_params(struct snd_pcm_substream *substream, return ret; ret = tegra210_adsp_send_period_size_msg(prtd->fe_apm, - params_period_size(params), - TEGRA210_ADSP_MSG_FLAG_SEND); + params_buffer_bytes(params)/params_periods(params), + TEGRA210_ADSP_MSG_FLAG_SEND); if (ret < 0) return ret;