Commit d7b18813 authored by Jeeja KP's avatar Jeeja KP Committed by Mark Brown

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: default avatarJeeja KP <jeeja.kp@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4d8adccb
...@@ -303,6 +303,7 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx, ...@@ -303,6 +303,7 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
struct skl_cpr_cfg *cpr_mconfig) struct skl_cpr_cfg *cpr_mconfig)
{ {
union skl_connector_node_id node_id = {0}; union skl_connector_node_id node_id = {0};
union skl_ssp_dma_node ssp_node = {0};
struct skl_pipe_params *params = mconfig->pipe->p_params; struct skl_pipe_params *params = mconfig->pipe->p_params;
switch (mconfig->dev_type) { switch (mconfig->dev_type) {
...@@ -320,9 +321,9 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx, ...@@ -320,9 +321,9 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
(SKL_CONN_SOURCE == mconfig->hw_conn_type) ? (SKL_CONN_SOURCE == mconfig->hw_conn_type) ?
SKL_DMA_I2S_LINK_OUTPUT_CLASS : SKL_DMA_I2S_LINK_OUTPUT_CLASS :
SKL_DMA_I2S_LINK_INPUT_CLASS; SKL_DMA_I2S_LINK_INPUT_CLASS;
node_id.node.vindex = params->host_dma_id + ssp_node.dma_node.time_slot_index = mconfig->time_slot;
(mconfig->time_slot << 1) + ssp_node.dma_node.i2s_instance = mconfig->vbus_id;
(mconfig->vbus_id << 3); node_id.node.vindex = ssp_node.val;
break; break;
case SKL_DEVICE_DMIC: case SKL_DEVICE_DMIC:
......
...@@ -153,8 +153,7 @@ enum skl_dma_type { ...@@ -153,8 +153,7 @@ enum skl_dma_type {
union skl_ssp_dma_node { union skl_ssp_dma_node {
u8 val; u8 val;
struct { struct {
u8 dual_mono:1; u8 time_slot_index:4;
u8 time_slot:3;
u8 i2s_instance:4; u8 i2s_instance:4;
} dma_node; } dma_node;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment