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 <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1519960
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1532211
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
This commit is contained in:
Sameer Pujar
2017-08-03 16:40:45 +05:30
parent 11516ebd24
commit f734578a22

View File

@@ -1691,7 +1691,7 @@ 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),
params_buffer_bytes(params)/params_periods(params),
TEGRA210_ADSP_MSG_FLAG_SEND);
if (ret < 0)
return ret;