summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra30_i2s.h
diff options
context:
space:
mode:
authorNitin Pai <npai@nvidia.com>2012-04-24 15:57:51 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-05-23 02:59:54 -0700
commit6b7e887d5742406d988cb6f797846a83f00a31bb (patch)
treeac4bcae4847a2947c7fc3ce28e93fd7b0164934e /sound/soc/tegra/tegra30_i2s.h
parent3b7430e4ce2ab4f363a5be9863c919f49e406025 (diff)
asoc: tegra: Add TDM mode support
Added TDM mode support in I2S driver. Added support functions in AHUB to pass audio/client bits. Added support functions in AHUB to pass audio/client channels. Fixed the stopping of I2S/TDM by clearing the fifo. Bug 948478 Signed-off-by: Nitin Pai <npai@nvidia.com> Change-Id: I560f4ab5b71e4833931934275272a094241241fe Reviewed-on: http://git-master/r/103840 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound/soc/tegra/tegra30_i2s.h')
-rw-r--r--sound/soc/tegra/tegra30_i2s.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_i2s.h b/sound/soc/tegra/tegra30_i2s.h
index b9baddd5db8e..0992bf0d5b17 100644
--- a/sound/soc/tegra/tegra30_i2s.h
+++ b/sound/soc/tegra/tegra30_i2s.h
@@ -176,7 +176,7 @@
/* Number of slots in frame, minus 1 */
#define TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_SHIFT 16
#define TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_MASK_US 7
-#define TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_MASK (TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOT_MASK_US << TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOT_SHIFT)
+#define TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_MASK (TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_MASK_US << TEGRA30_I2S_SLOT_CTRL_TOTAL_SLOTS_SHIFT)
/* TDM mode slot enable bitmask */
#define TEGRA30_I2S_SLOT_CTRL_RX_SLOT_ENABLES_SHIFT 8
@@ -231,6 +231,16 @@
/* Number of i2s controllers*/
#define TEGRA30_NR_I2S_IFC 5
+struct dsp_config_t {
+ int num_slots;
+ int rx_mask;
+ int tx_mask;
+ int slot_width;
+ int rx_data_offset;
+ int tx_data_offset;
+};
+
+
struct tegra30_i2s {
int id;
struct clk *clk_i2s;
@@ -254,6 +264,8 @@ struct tegra30_i2s {
#endif
int call_record_dam_ifc;
int is_call_mode_rec;
+
+ struct dsp_config_t dsp_config;
};
struct codec_config {