summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAnkit Gupta <ankitgupta@nvidia.com>2012-03-29 10:58:56 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-04-08 22:54:17 -0700
commit4f2e11143718eb1043fea59bc539835447f2aaa6 (patch)
tree9f1604d375119af970ffaf41a64e170e403cd61c /sound
parent62cdff565cbc79773113a6d034f9bb55e019bd34 (diff)
ASoC: Tegra: customize modem parameters for voice call.
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_max98088.c6
1 files changed, 6 insertions, 0 deletions
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];