All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: alsa-devel@alsa-project.org
Cc: "Dharageswari.R" <dharageswari.r@intel.com>,
	tiwai@suse.de, liam.r.girdwood@linux.intel.com,
	patches.audio@intel.com, broonie@kernel.org,
	Jeeja KP <jeeja.kp@intel.com>, Vinod Koul <vinod.koul@intel.com>
Subject: [PATCH 8/9] ASoC: Intel: Skylake: Fix to set Non gateway copier cfg
Date: Thu, 22 Oct 2015 23:22:41 +0530	[thread overview]
Message-ID: <1445536362-26670-9-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>

If copier instance is connected to a DMA gateway then driver
needs to configure the gateway configuration otherwise set
it to invalid.
This patch sets the non gateway copier node value to invalid.

Signed-off-by: Dharageswari.R <dharageswari.r@intel.com>
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       | 8 +++++++-
 sound/soc/intel/skylake/skl-tplg-interface.h | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index a1001a686aa9..50a109503a3f 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -321,6 +321,7 @@ static void skl_copy_copier_caps(struct skl_module_cfg *mconfig,
 			(mconfig->formats_config.caps_size) / 4;
 }
 
+#define SKL_NON_GATEWAY_CPR_NODE_ID 0xFFFFFFFF
 /*
  * Calculate the gatewat settings required for copier module, type of
  * gateway and index of gateway to use
@@ -367,13 +368,18 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
 		node_id.node.vindex = params->link_dma_id;
 		break;
 
-	default:
+	case SKL_DEVICE_HDAHOST:
 		node_id.node.dma_type =
 			(SKL_CONN_SOURCE == mconfig->hw_conn_type) ?
 			SKL_DMA_HDA_HOST_OUTPUT_CLASS :
 			SKL_DMA_HDA_HOST_INPUT_CLASS;
 		node_id.node.vindex = params->host_dma_id;
 		break;
+
+	default:
+		cpr_mconfig->gtw_cfg.node_id = SKL_NON_GATEWAY_CPR_NODE_ID;
+		cpr_mconfig->cpr_feature_mask = 0;
+		return;
 	}
 
 	cpr_mconfig->gtw_cfg.node_id = node_id.val;
diff --git a/sound/soc/intel/skylake/skl-tplg-interface.h b/sound/soc/intel/skylake/skl-tplg-interface.h
index d14f7fe64aa8..718d3d5df9a8 100644
--- a/sound/soc/intel/skylake/skl-tplg-interface.h
+++ b/sound/soc/intel/skylake/skl-tplg-interface.h
@@ -106,6 +106,7 @@ enum skl_dev_type {
 	SKL_DEVICE_I2S = 0x2,
 	SKL_DEVICE_SLIMBUS = 0x3,
 	SKL_DEVICE_HDALINK = 0x4,
+	SKL_DEVICE_HDAHOST = 0x5,
 	SKL_DEVICE_NONE
 };
 
-- 
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 ` [PATCH 5/9] ASoC: Intel: Skylake: Update for ssp node index in copier cfg Vinod Koul
2015-10-23 16:30   ` 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 ` Vinod Koul [this message]
2015-10-23 17:47   ` Applied "ASoC: Intel: Skylake: Fix to set Non gateway copier cfg" " 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-9-git-send-email-vinod.koul@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=dharageswari.r@intel.com \
    --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.