alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
@ 2015-11-18 10:04 Dan Carpenter
  2015-11-18 18:22 ` Vinod Koul
  2015-11-21 14:01 ` Applied "ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()" to the asoc tree Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Carpenter @ 2015-11-18 10:04 UTC (permalink / raw)
  To: Liam Girdwood, Vinod Koul
  Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Jie Yang,
	Jarkko Nikula, alsa-devel, kernel-janitors

"data" is always NULL in this function.  I think we should be passing
"&data" to sst_prepare_and_post_msg() instead of "data".

Fixes: 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
Not tested.

diff --git a/sound/soc/intel/atom/sst/sst_stream.c b/sound/soc/intel/atom/sst/sst_stream.c
index a74c64c..4ccc80e 100644
--- a/sound/soc/intel/atom/sst/sst_stream.c
+++ b/sound/soc/intel/atom/sst/sst_stream.c
@@ -108,7 +108,7 @@ int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params)
 			str_id, pipe_id);
 	ret = sst_prepare_and_post_msg(sst_drv_ctx, task_id, IPC_CMD,
 			IPC_IA_ALLOC_STREAM_MRFLD, pipe_id, sizeof(alloc_param),
-			&alloc_param, data, true, true, false, true);
+			&alloc_param, &data, true, true, false, true);
 
 	if (ret < 0) {
 		dev_err(sst_drv_ctx->dev, "FW alloc failed ret %d\n", ret);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
  2015-11-18 10:04 [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld() Dan Carpenter
@ 2015-11-18 18:22 ` Vinod Koul
  2015-11-19 10:50   ` Vinod Koul
  2015-11-21 14:01 ` Applied "ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()" to the asoc tree Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2015-11-18 18:22 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Jie Yang, Jarkko Nikula, alsa-devel, kernel-janitors

On Wed, Nov 18, 2015 at 01:04:20PM +0300, Dan Carpenter wrote:
> "data" is always NULL in this function.  I think we should be passing
> "&data" to sst_prepare_and_post_msg() instead of "data".
> 
> Fixes: 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> Not tested.

This looks right to me but this should have resulted in broken stuff, I will
test this tomorrow and get back

-- 
~Vinod

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
  2015-11-18 18:22 ` Vinod Koul
@ 2015-11-19 10:50   ` Vinod Koul
  0 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2015-11-19 10:50 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Jie Yang, Jarkko Nikula, alsa-devel, kernel-janitors,
	Mirche, Dinesh

On Wed, Nov 18, 2015 at 11:52:49PM +0530, Vinod Koul wrote:
> On Wed, Nov 18, 2015 at 01:04:20PM +0300, Dan Carpenter wrote:
> > "data" is always NULL in this function.  I think we should be passing
> > "&data" to sst_prepare_and_post_msg() instead of "data".
> > 
> > Fixes: 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> > ---
> > Not tested.
> 
> This looks right to me but this should have resulted in broken stuff, I will
> test this tomorrow and get back

we tested and looks right, so

Tested-by: Dinesh Mirche <dinesh.mirche@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>

-- 
~Vinod

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Applied "ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()" to the asoc tree
  2015-11-18 10:04 [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld() Dan Carpenter
  2015-11-18 18:22 ` Vinod Koul
@ 2015-11-21 14:01 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2015-11-21 14:01 UTC (permalink / raw)
  To: Dan Carpenter, Dinesh Mirche, Vinod Koul, Mark Brown; +Cc: alsa-devel

The patch

   ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()

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 d16a2b9f2465b5486f830178fbfb7d203e0a17ae Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Wed, 18 Nov 2015 13:04:20 +0300
Subject: [PATCH] ASoC: Intel: pass correct parameter in
 sst_alloc_stream_mrfld()

"data" is always NULL in this function.  I think we should be passing
"&data" to sst_prepare_and_post_msg() instead of "data".

Fixes: 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Dinesh Mirche <dinesh.mirche@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/atom/sst/sst_stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/atom/sst/sst_stream.c b/sound/soc/intel/atom/sst/sst_stream.c
index a74c64c..4ccc80e 100644
--- a/sound/soc/intel/atom/sst/sst_stream.c
+++ b/sound/soc/intel/atom/sst/sst_stream.c
@@ -108,7 +108,7 @@ int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params)
 			str_id, pipe_id);
 	ret = sst_prepare_and_post_msg(sst_drv_ctx, task_id, IPC_CMD,
 			IPC_IA_ALLOC_STREAM_MRFLD, pipe_id, sizeof(alloc_param),
-			&alloc_param, data, true, true, false, true);
+			&alloc_param, &data, true, true, false, true);
 
 	if (ret < 0) {
 		dev_err(sst_drv_ctx->dev, "FW alloc failed ret %d\n", ret);
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-21 14:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 10:04 [patch] ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld() Dan Carpenter
2015-11-18 18:22 ` Vinod Koul
2015-11-19 10:50   ` Vinod Koul
2015-11-21 14:01 ` Applied "ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()" 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).