]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
ASoC: tegra-alt: send bytes for period size msg
authorMohan Kumar <mkumard@nvidia.com>
Thu, 13 Jul 2017 16:35:52 +0000 (22:05 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 18 Jul 2017 19:15:18 +0000 (12:15 -0700)
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
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
sound/soc/tegra-alt/tegra210_adsp_alt.c

index ce50c22e7006673936f246e4297f58a4884b707b..c60829fa8cc9a5b5ca0bc19c59263cab703119f6 100644 (file)
@@ -1619,8 +1619,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;