summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHonghao Liu <honghaol@codeaurora.org>2015-11-27 17:21:21 -0500
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:13:21 -0700
commita5e5d05ce217dfab80bc50d67d389bc633a63489 (patch)
tree8d5a22773a4393d09457b2e85012854ca5d4fbae /include
parent6760890c53341cc3d9ad7bd722f0d3e086f1d00a (diff)
ASoC: msm: add slot and channel config support for TDM devices
Add support for slot and channel configuration in CPU dai driver for TDM devices. Remove the probing of slot and channel info from device tree. Change-Id: I9d65779b7ef70fac741569f0584b15db29093e0c Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/sound/msm-dai-q6-v2.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/sound/msm-dai-q6-v2.h b/include/sound/msm-dai-q6-v2.h
index 810339fc0704..c3c65a02a817 100644
--- a/include/sound/msm-dai-q6-v2.h
+++ b/include/sound/msm-dai-q6-v2.h
@@ -62,9 +62,6 @@ struct msm_dai_tdm_group_config {
u16 group_id;
u16 num_ports;
u16 *port_id;
- u16 nslots_per_frame;
- u16 slot_width;
- u32 slot_mask;
u32 clk_rate;
};
@@ -74,19 +71,15 @@ struct msm_dai_tdm_config {
u16 data_out;
u16 invert_sync;
u16 data_delay;
- u32 offset_data_align;
- u16 num_offset;
- u16 *offset;
- u16 header_start_offset;
- u16 header_width;
- u16 header_num_frame_repeat;
+ u32 data_align;
+ u16 header_start_offset;
+ u16 header_width;
+ u16 header_num_frame_repeat;
};
-#define MSM_DAI_TDM_MAX_CH 8
-
struct msm_dai_tdm_pdata {
struct msm_dai_tdm_group_config group_config;
- struct msm_dai_tdm_config config[MSM_DAI_TDM_MAX_CH];
+ struct msm_dai_tdm_config config;
};
#endif