arm: tegra: Added support for TDM mode params
Nitin Pai [Mon, 21 May 2012 10:39:43 +0000 (15:39 +0530)]
Added TDM mode params to be passed from platform to the machine driver

Bug 948478

Change-Id: I909db0ceebde002fcebcf7635cebe98c6a74142d
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/103594
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h

index bfd61c4..6bea4e5 100644 (file)
@@ -37,6 +37,12 @@ struct codec_info_s {
        char *name;                     /* Name of the Codec-Dai-Link */
        enum i2s_data_format i2s_format;
        int master;                     /* Codec is Master or Slave */
+       /* TDM format setttings */
+       int num_slots;          /* Number of TDM slots */
+       int slot_width;         /* Width of each slot */
+       int rx_mask;            /* Number of Rx Enabled slots */
+       int tx_mask;            /* Number of Tx Enabled slots */
+
 };
 
 struct tegra_p1852_platform_data {