diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2015-10-22 13:52:38 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-23 12:31:34 -0400 |
commit | d7b188131c4823a85d17b992083bf8a8c32a2be3 (patch) | |
tree | 94334be06868db8818ac1c24752b09c8e75f5ec8 | |
parent | 4d8adccb220ca270cfcdd80752618095fdc9990c (diff) |
ASoC: Intel: Skylake: Update for ssp node index in copier cfg
DSP firmware has interface change for SSP node index structure.
New FW interface removes the dual_mono field and adds 4 bits for
TDM slot group index. This patch updates the ssp dma to align with
the DSP firmware structure.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/skylake/skl-messages.c | 7 | ||||
-rw-r--r-- | sound/soc/intel/skylake/skl-topology.h | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c index 826d4fd8930a..77c0736d3c9e 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c | |||
@@ -303,6 +303,7 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx, | |||
303 | struct skl_cpr_cfg *cpr_mconfig) | 303 | struct skl_cpr_cfg *cpr_mconfig) |
304 | { | 304 | { |
305 | union skl_connector_node_id node_id = {0}; | 305 | union skl_connector_node_id node_id = {0}; |
306 | union skl_ssp_dma_node ssp_node = {0}; | ||
306 | struct skl_pipe_params *params = mconfig->pipe->p_params; | 307 | struct skl_pipe_params *params = mconfig->pipe->p_params; |
307 | 308 | ||
308 | switch (mconfig->dev_type) { | 309 | switch (mconfig->dev_type) { |
@@ -320,9 +321,9 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx, | |||
320 | (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? | 321 | (SKL_CONN_SOURCE == mconfig->hw_conn_type) ? |
321 | SKL_DMA_I2S_LINK_OUTPUT_CLASS : | 322 | SKL_DMA_I2S_LINK_OUTPUT_CLASS : |
322 | SKL_DMA_I2S_LINK_INPUT_CLASS; | 323 | SKL_DMA_I2S_LINK_INPUT_CLASS; |
323 | node_id.node.vindex = params->host_dma_id + | 324 | ssp_node.dma_node.time_slot_index = mconfig->time_slot; |
324 | (mconfig->time_slot << 1) + | 325 | ssp_node.dma_node.i2s_instance = mconfig->vbus_id; |
325 | (mconfig->vbus_id << 3); | 326 | node_id.node.vindex = ssp_node.val; |
326 | break; | 327 | break; |
327 | 328 | ||
328 | case SKL_DEVICE_DMIC: | 329 | case SKL_DEVICE_DMIC: |
diff --git a/sound/soc/intel/skylake/skl-topology.h b/sound/soc/intel/skylake/skl-topology.h index 0c83dc3ea3e2..2399535a196a 100644 --- a/sound/soc/intel/skylake/skl-topology.h +++ b/sound/soc/intel/skylake/skl-topology.h | |||
@@ -153,8 +153,7 @@ enum skl_dma_type { | |||
153 | union skl_ssp_dma_node { | 153 | union skl_ssp_dma_node { |
154 | u8 val; | 154 | u8 val; |
155 | struct { | 155 | struct { |
156 | u8 dual_mono:1; | 156 | u8 time_slot_index:4; |
157 | u8 time_slot:3; | ||
158 | u8 i2s_instance:4; | 157 | u8 i2s_instance:4; |
159 | } dma_node; | 158 | } dma_node; |
160 | }; | 159 | }; |