From 4f2e11143718eb1043fea59bc539835447f2aaa6 Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Thu, 29 Mar 2012 10:58:56 +0530 Subject: ASoC: Tegra: customize modem parameters for voice call. Add support to customize modem parameters for voice call. Signed-off-by: Ankit Gupta Change-Id: I947bf1955713c4ae19e5dd829091bd7e51bca08f Reviewed-on: http://git-master/r/93091 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Ankit Gupta (Engrg-SW) Reviewed-by: Ravindra Lokhande Reviewed-by: Scott Peterson --- sound/soc/tegra/tegra_max98088.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sound') diff --git a/sound/soc/tegra/tegra_max98088.c b/sound/soc/tegra/tegra_max98088.c index bae2b7838955..9546af83b39d 100644 --- a/sound/soc/tegra/tegra_max98088.c +++ b/sound/soc/tegra/tegra_max98088.c @@ -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]; -- cgit v1.2.3