alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()
@ 2023-01-23 23:17 Kuninori Morimoto
  2023-01-25  6:35 ` Kuninori Morimoto
  2023-01-28 17:18 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2023-01-23 23:17 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Charles Keepax, Pierre-Louis Bossart

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

commit d3268a40d4b19f ("ASoC: soc-compress.c: fix NULL dereference")
enables DPCM capture, but it should independent from playback.
This patch fixup it.

Fixes: d3268a40d4b1 ("ASoC: soc-compress.c: fix NULL dereference")
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
> Need Intel's Tested-by ?

 sound/soc/soc-compress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c
index b2a6bbb4e807..ed9e910659ab 100644
--- a/sound/soc/soc-compress.c
+++ b/sound/soc/soc-compress.c
@@ -616,7 +616,7 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
 		rtd->fe_compr = 1;
 		if (rtd->dai_link->dpcm_playback)
 			be_pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd;
-		else if (rtd->dai_link->dpcm_capture)
+		if (rtd->dai_link->dpcm_capture)
 			be_pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd;
 		memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops));
 	} else {
-- 
2.25.1


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

* Re: [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()
  2023-01-23 23:17 [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress() Kuninori Morimoto
@ 2023-01-25  6:35 ` Kuninori Morimoto
  2023-01-28 17:18 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2023-01-25  6:35 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Charles Keepax, Pierre-Louis Bossart


Hi

> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> commit d3268a40d4b19f ("ASoC: soc-compress.c: fix NULL dereference")
> enables DPCM capture, but it should independent from playback.
> This patch fixup it.
> 
> Fixes: d3268a40d4b1 ("ASoC: soc-compress.c: fix NULL dereference")
> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---

Please add this if possible

Link: https://lore.kernel.org/r/87tu0i6j7j.wl-kuninori.morimoto.gx@renesas.com


Thank you for your help !!

Best regards
---
Kuninori Morimoto

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

* Re: [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()
  2023-01-23 23:17 [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress() Kuninori Morimoto
  2023-01-25  6:35 ` Kuninori Morimoto
@ 2023-01-28 17:18 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-01-28 17:18 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Linux-ALSA, Charles Keepax, Pierre-Louis Bossart

On Mon, 23 Jan 2023 23:17:20 +0000, Kuninori Morimoto wrote:
> commit d3268a40d4b19f ("ASoC: soc-compress.c: fix NULL dereference")
> enables DPCM capture, but it should independent from playback.
> This patch fixup it.
> 
> 

Applied to

   broonie/sound.git for-next

Thanks!

[1/1] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()
      commit: ffe4c0f0bfaa571a676a0e946d4a6a0607f94294

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


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

end of thread, other threads:[~2023-01-28 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 23:17 [PATCH] ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress() Kuninori Morimoto
2023-01-25  6:35 ` Kuninori Morimoto
2023-01-28 17:18 ` 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).