All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, patches.audio@intel.com,
	liam.r.girdwood@linux.intel.com,
	Vinod Koul <vinod.koul@intel.com>,
	broonie@kernel.org, Jeeja KP <jeeja.kp@intel.com>
Subject: [PATCH 5/9] ASoC: Intel: Skylake: Update for ssp node index in copier cfg
Date: Thu, 22 Oct 2015 23:22:38 +0530	[thread overview]
Message-ID: <1445536362-26670-6-git-send-email-vinod.koul@intel.com> (raw)
In-Reply-To: <1445536362-26670-1-git-send-email-vinod.koul@intel.com>

From: Jeeja KP <jeeja.kp@intel.com>

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>
---
 sound/soc/intel/skylake/skl-messages.c | 7 ++++---
 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,
 			struct skl_cpr_cfg *cpr_mconfig)
 {
 	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;
 
 	switch (mconfig->dev_type) {
@@ -320,9 +321,9 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
 			(SKL_CONN_SOURCE == mconfig->hw_conn_type) ?
 			SKL_DMA_I2S_LINK_OUTPUT_CLASS :
 			SKL_DMA_I2S_LINK_INPUT_CLASS;
-		node_id.node.vindex = params->host_dma_id +
-					 (mconfig->time_slot << 1) +
-					 (mconfig->vbus_id << 3);
+		ssp_node.dma_node.time_slot_index = mconfig->time_slot;
+		ssp_node.dma_node.i2s_instance = mconfig->vbus_id;
+		node_id.node.vindex = ssp_node.val;
 		break;
 
 	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 {
 union skl_ssp_dma_node {
 	u8 val;
 	struct {
-		u8 dual_mono:1;
-		u8 time_slot:3;
+		u8 time_slot_index:4;
 		u8 i2s_instance:4;
 	} dma_node;
 };
-- 
1.9.1

  parent reply	other threads:[~2015-10-22 17:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 17:52 [PATCH 0/9] ASoC: Intel: Skylake: Fixes and updates Vinod Koul
2015-10-22 17:52 ` [PATCH 1/9] ASoC: Intel: Skylake: Fix return for pm_runtime_get_sync() Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix return for pm_runtime_get_sync()" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 2/9] ASoC: Intel: Skylake: Remove BE copier blob memcpy Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Remove BE copier blob memcpy" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 3/9] ASoC: Intel: Skylake: Fix to use correct macros for the path iteration Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix to use correct macros for the path iteration" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 4/9] ASoC: Intel: Skylake: Fix to fill all sink/source pipe params Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix to fill all sink/source pipe params" to the asoc tree Mark Brown
2015-10-22 17:52 ` Vinod Koul [this message]
2015-10-23 16:30   ` [PATCH 5/9] ASoC: Intel: Skylake: Update for ssp node index in copier cfg Mark Brown
2015-10-24 11:56     ` Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Update for ssp node index in copier cfg" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 6/9] ASoC: Intel: Skylake: Add support to disable module notifications Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Add support to disable module notifications" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 7/9] ASoC: Intel: Skylake: Fix to check return value of dsp init Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix to check return value of dsp init" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 8/9] ASoC: Intel: Skylake: Fix to set Non gateway copier cfg Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix to set Non gateway copier cfg" to the asoc tree Mark Brown
2015-10-22 17:52 ` [PATCH 9/9] ASoC: Intel: Skylake: Add support to topology for module static pin Vinod Koul
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Add support to topology for module static pin" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445536362-26670-6-git-send-email-vinod.koul@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jeeja.kp@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=patches.audio@intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.