asoc: tegra: Fix setting rate for clk_audio_2x
authorNitin Pai <npai@nvidia.com>
Thu, 24 May 2012 11:46:03 +0000 (16:46 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 7 Jun 2012 00:23:10 +0000 (17:23 -0700)
commitf9417ad159c43ae90f25c0ef978e2c37294d27a1
tree4f24b1969c6bb8cd47d570cb67bdc2faab187b90
parent50053b22fb5605eac717c8657c16fdf85a9c5b5e
asoc: tegra: Fix setting rate for clk_audio_2x

- For slave mode, clk_audio_2x needs to be
programmed to bitclock value. Setting this frequency
is not possible if the parent clock has different
frequency. Hence change the parent of this clock
to i2s_sync clock first before setting the rate.
- Fixed setting uninitialized variables.

Bug 948478

Change-Id: Ieb4656e6e114d3a9b815f44003a476c4b9892059
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/104445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra30_i2s.c