]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 23 Jan 2023 23:17:20 +0000 (23:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:18 +0000 (09:33 +0100)
commit479f4e5f6434f84e87d2c2fee13b3e69ad077f04
treec436189651364652aa6776db528a039bae099cc0
parent996bd2e67e78225a6f310016b1ee34f18da91595
ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()

[ Upstream commit d7f903ace826187067c7028f1d9053928f74f445 ]

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

Fixes: 0f8d76b5067e ("ASoC: soc-compress.c: fix NULL dereference")
Link: https://lore.kernel.org/r/87tu0i6j7j.wl-kuninori.morimoto.gx@renesas.com
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>
Link: https://lore.kernel.org/r/871qnkvo1s.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-compress.c