ASoC: Tegra: customize modem parameters for voice call.
Ankit Gupta [Thu, 29 Mar 2012 05:28:56 +0000 (10:28 +0530)]
Add support to customize modem parameters for voice call.
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>

Change-Id: I947bf1955713c4ae19e5dd829091bd7e51bca08f
Reviewed-on: http://git-master/r/93091
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ankit Gupta (Engrg-SW) <ankitgupta@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/tegra/tegra_max98088.c

index bae2b78..9546af8 100644 (file)
@@ -1142,6 +1142,12 @@ static __devinit int tegra_max98088_driver_probe(struct platform_device *pdev)
 
        machine->codec_info[BASEBAND].rate = pdata->baseband_param.rate;
        machine->codec_info[BASEBAND].channels = pdata->baseband_param.channels;
+       machine->codec_info[BASEBAND].is_format_dsp = 0;
+
+       if ((pdata->baseband_param.bit_format == TEGRA_DAIFMT_DSP_A) ||
+       (pdata->baseband_param.bit_format == TEGRA_DAIFMT_DSP_B)) {
+                       machine->codec_info[BASEBAND].is_format_dsp = 1;
+       }
 
        tegra_max98088_dai[DAI_LINK_HIFI].cpu_dai_name =
        tegra_max98088_i2s_dai_name[machine->codec_info[HIFI_CODEC].i2s_id];