* [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel
@ 2016-11-23 17:16 jeeja.kp
2016-11-23 17:16 ` [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure jeeja.kp
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: jeeja.kp @ 2016-11-23 17:16 UTC (permalink / raw)
To: alsa-devel
Cc: tiwai, patches.audio, GuruprasadX Pawse, broonie, liam.r.girdwood,
Jeeja KP
From: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
I2S blob config structure can change between DSP copier module versions.
We are not modifying these structures anyway and NHLT blobs specify them
properly, so use the blob directly to send the dma_control ipc instead
of using the predefined I2S blob config structure.
Signed-off-by: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
---
sound/soc/intel/skylake/skl-messages.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index 4ae021a..e79cbcf 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -527,16 +527,14 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
{
struct skl_dma_control *dma_ctrl;
- struct skl_i2s_config_blob config_blob;
struct skl_ipc_large_config_msg msg = {0};
int err = 0;
/*
- * if blob size is same as capablity size, then no dma control
- * present so return
+ * if blob size zero, then return
*/
- if (mconfig->formats_config.caps_size == sizeof(config_blob))
+ if (mconfig->formats_config.caps_size == 0)
return 0;
msg.large_param_id = DMA_CONTROL_ID;
@@ -550,7 +548,7 @@ int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
dma_ctrl->node_id = skl_get_node_id(ctx, mconfig);
/* size in dwords */
- dma_ctrl->config_length = sizeof(config_blob) / 4;
+ dma_ctrl->config_length = mconfig->formats_config.caps_size / 4;
memcpy(dma_ctrl->config_data, mconfig->formats_config.caps,
mconfig->formats_config.caps_size);
@@ -558,7 +556,6 @@ int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
err = skl_ipc_set_large_config(&ctx->ipc, &msg, (u32 *)dma_ctrl);
kfree(dma_ctrl);
-
return err;
}
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure
2016-11-23 17:16 [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel jeeja.kp
@ 2016-11-23 17:16 ` jeeja.kp
2016-11-25 13:09 ` Applied "ASoC: Intel: Skylake: Removed the unused I2S blob structure" to the asoc tree Mark Brown
2016-11-24 8:22 ` [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel Vinod Koul
2016-11-25 13:09 ` Applied "ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel" to the asoc tree Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: jeeja.kp @ 2016-11-23 17:16 UTC (permalink / raw)
To: alsa-devel
Cc: tiwai, patches.audio, GuruprasadX Pawse, broonie, liam.r.girdwood,
Jeeja KP
From: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Now that I2S conflig blob structure is no longer in use, remove it.
Signed-off-by: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
---
sound/soc/intel/skylake/skl-topology.h | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/sound/soc/intel/skylake/skl-topology.h b/sound/soc/intel/skylake/skl-topology.h
index 3b962d8..08d3928 100644
--- a/sound/soc/intel/skylake/skl-topology.h
+++ b/sound/soc/intel/skylake/skl-topology.h
@@ -113,23 +113,6 @@ struct skl_cpr_gtw_cfg {
u32 config_data[1];
} __packed;
-struct skl_i2s_config_blob {
- u32 gateway_attrib;
- u32 tdm_ts_group[8];
- u32 ssc0;
- u32 ssc1;
- u32 sscto;
- u32 sspsp;
- u32 sstsa;
- u32 ssrsa;
- u32 ssc2;
- u32 sspsp2;
- u32 ssc3;
- u32 ssioc;
- u32 mdivc;
- u32 mdivr;
-} __packed;
-
struct skl_dma_control {
u32 node_id;
u32 config_length;
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel
2016-11-23 17:16 [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel jeeja.kp
2016-11-23 17:16 ` [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure jeeja.kp
@ 2016-11-24 8:22 ` Vinod Koul
2016-11-25 13:09 ` Applied "ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel" to the asoc tree Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2016-11-24 8:22 UTC (permalink / raw)
To: jeeja.kp
Cc: alsa-devel, tiwai, patches.audio, GuruprasadX Pawse, broonie,
liam.r.girdwood
On Wed, Nov 23, 2016 at 10:46:26PM +0530, jeeja.kp@intel.com wrote:
> From: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
>
> I2S blob config structure can change between DSP copier module versions.
> We are not modifying these structures anyway and NHLT blobs specify them
> properly, so use the blob directly to send the dma_control ipc instead
> of using the predefined I2S blob config structure.
Both:
Acked-by: Vinod Koul <vinod.koul@intel.com>
--
~Vinod
^ permalink raw reply [flat|nested] 5+ messages in thread
* Applied "ASoC: Intel: Skylake: Removed the unused I2S blob structure" to the asoc tree
2016-11-23 17:16 ` [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure jeeja.kp
@ 2016-11-25 13:09 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2016-11-25 13:09 UTC (permalink / raw)
To: GuruprasadX Pawse
Cc: alsa-devel, Vinod Koul, patches.audio, tiwai, broonie,
liam.r.girdwood, Jeeja KP
The patch
ASoC: Intel: Skylake: Removed the unused I2S blob structure
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 48458cc891232ba6cb0270ba03520f54536d590a Mon Sep 17 00:00:00 2001
From: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Date: Wed, 23 Nov 2016 22:46:27 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Removed the unused I2S blob structure
Now that I2S conflig blob structure is no longer in use, remove it.
Signed-off-by: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/intel/skylake/skl-topology.h | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/sound/soc/intel/skylake/skl-topology.h b/sound/soc/intel/skylake/skl-topology.h
index 3b962d84bcb8..08d39280b07b 100644
--- a/sound/soc/intel/skylake/skl-topology.h
+++ b/sound/soc/intel/skylake/skl-topology.h
@@ -113,23 +113,6 @@ struct skl_cpr_gtw_cfg {
u32 config_data[1];
} __packed;
-struct skl_i2s_config_blob {
- u32 gateway_attrib;
- u32 tdm_ts_group[8];
- u32 ssc0;
- u32 ssc1;
- u32 sscto;
- u32 sspsp;
- u32 sstsa;
- u32 ssrsa;
- u32 ssc2;
- u32 sspsp2;
- u32 ssc3;
- u32 ssioc;
- u32 mdivc;
- u32 mdivr;
-} __packed;
-
struct skl_dma_control {
u32 node_id;
u32 config_length;
--
2.10.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Applied "ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel" to the asoc tree
2016-11-23 17:16 [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel jeeja.kp
2016-11-23 17:16 ` [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure jeeja.kp
2016-11-24 8:22 ` [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel Vinod Koul
@ 2016-11-25 13:09 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2016-11-25 13:09 UTC (permalink / raw)
To: GuruprasadX Pawse
Cc: alsa-devel, Vinod Koul, patches.audio, tiwai, broonie,
liam.r.girdwood, Jeeja KP
The patch
ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From c186fe7401e4234aee6796eda3ad38bd57507899 Mon Sep 17 00:00:00 2001
From: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Date: Wed, 23 Nov 2016 22:46:26 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Don't use dma I2S config structure in
kernel
I2S blob config structure can change between DSP copier module versions.
We are not modifying these structures anyway and NHLT blobs specify them
properly, so use the blob directly to send the dma_control ipc instead
of using the predefined I2S blob config structure.
Signed-off-by: GuruprasadX Pawse <guruprasadx.pawse@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/intel/skylake/skl-messages.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
index 4ae021aabc3a..e79cbcf6e462 100644
--- a/sound/soc/intel/skylake/skl-messages.c
+++ b/sound/soc/intel/skylake/skl-messages.c
@@ -527,16 +527,14 @@ static void skl_setup_cpr_gateway_cfg(struct skl_sst *ctx,
int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
{
struct skl_dma_control *dma_ctrl;
- struct skl_i2s_config_blob config_blob;
struct skl_ipc_large_config_msg msg = {0};
int err = 0;
/*
- * if blob size is same as capablity size, then no dma control
- * present so return
+ * if blob size zero, then return
*/
- if (mconfig->formats_config.caps_size == sizeof(config_blob))
+ if (mconfig->formats_config.caps_size == 0)
return 0;
msg.large_param_id = DMA_CONTROL_ID;
@@ -550,7 +548,7 @@ int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
dma_ctrl->node_id = skl_get_node_id(ctx, mconfig);
/* size in dwords */
- dma_ctrl->config_length = sizeof(config_blob) / 4;
+ dma_ctrl->config_length = mconfig->formats_config.caps_size / 4;
memcpy(dma_ctrl->config_data, mconfig->formats_config.caps,
mconfig->formats_config.caps_size);
@@ -558,7 +556,6 @@ int skl_dsp_set_dma_control(struct skl_sst *ctx, struct skl_module_cfg *mconfig)
err = skl_ipc_set_large_config(&ctx->ipc, &msg, (u32 *)dma_ctrl);
kfree(dma_ctrl);
-
return err;
}
--
2.10.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-25 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 17:16 [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel jeeja.kp
2016-11-23 17:16 ` [PATCH 2/2] ASoC: Intel: Skylake: Removed the unused I2S blob structure jeeja.kp
2016-11-25 13:09 ` Applied "ASoC: Intel: Skylake: Removed the unused I2S blob structure" to the asoc tree Mark Brown
2016-11-24 8:22 ` [PATCH 1/2] ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel Vinod Koul
2016-11-25 13:09 ` Applied "ASoC: Intel: Skylake: Don't use dma I2S config structure in kernel" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).