ASoC: Tegra: use bit clk from bbc_info for voice call
Ravindra Lokhande [Fri, 26 Apr 2013 14:03:49 +0000 (19:03 +0530)]
Use bit_clk from bbc_info to configure codec i2s when in voice call
as we don't have separate controller for ahub-bbc1.

Bug 1234999

Change-Id: I0f6519007ebcc814ef5cb4e264d9d9a18a982ba2
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/223396
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra30_i2s.c

index db5a600..4e6adb2 100644 (file)
@@ -1118,7 +1118,10 @@ int t14x_make_voice_call_connections(struct codec_config *codec_info,
        /*Configure codec i2s*/
        configure_baseband_i2s(codec_i2s, codec_info->is_i2smaster,
                codec_info->i2s_mode, codec_info->channels,
-               codec_info->rate, codec_info->bitsize, codec_info->bit_clk);
+               codec_info->rate, codec_info->bitsize,
+               /* need to use bbc1 bit_clk here as we don't have separate
+                * controller for bbc1 audio */
+                bb_info->bit_clk);
 
        if (uses_voice_codec) {
                /* The following two lines are a hack */