tegra-alt: pass correct compress rate to dai_init
authorViraj Karandikar <vkarandikar@nvidia.com>
Wed, 10 Jun 2015 12:29:33 +0000 (17:29 +0530)
committerDara Ramesh <dramesh@nvidia.com>
Tue, 21 Jul 2015 04:04:14 +0000 (21:04 -0700)
commitc91da7f5f9d494c4b3d2111cb709254ba6a60b97
treef7e326dd91b8b0f6cca9a8cb1d1c6f0f60a339a2
parentaf82700784d15d186c154b36d8ed76e9172e75a5
tegra-alt: pass correct compress rate to dai_init

Sample rate of 0 was being passed to dai_init for compress playback
due to use of snd_pcm_rate_bit_to_rate(). But conversion is not
needed as codec_params.sample_rate holds actual sample rate in Hz.
So pass it directly to dai_init.

Bug 200086391

Change-Id: Iceacc32243c70136b5978e75d69b0229fa97084f
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/755574
(cherry picked from commit fbf4b710be7c607e9b05cfe753761b56cd2ef05b)
Reviewed-on: http://git-master/r/769721
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Tested-by: Dara Ramesh <dramesh@nvidia.com>
sound/soc/tegra-alt/tegra_t210ref_mobile_es755_alt.c