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

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

arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h

index 62d58a3..e9f9ced 100644 (file)
@@ -533,6 +533,7 @@ static struct tegra_asoc_platform_data enterprise_audio_aic326x_pdata = {
        .baseband_param         = {
                .rate = 8000,
                .channels = 1,
+               .bit_format = TEGRA_DAIFMT_DSP_A,
        },
 };
 
index 34eb2f4..fff2fcc 100644 (file)
 #define        BT_SCO                  2
 #define        NUM_I2S_DEVICES         3
 
+#define        TEGRA_DAIFMT_DSP_A              0
+#define        TEGRA_DAIFMT_DSP_B              1
+#define        TEGRA_DAIFMT_I2S                2
+#define        TEGRA_DAIFMT_RIGHT_J            3
+#define        TEGRA_DAIFMT_LEFT_J             4
+
 struct baseband_config {
        int rate;
        int channels;
+       int bit_format;
+       int is_master;
 };
 
 struct tegra_asoc_platform_data {