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)
committerMark Brown <broonie@kernel.org>
Sat, 28 Jan 2023 10:51:06 +0000 (10:51 +0000)
commitffe4c0f0bfaa571a676a0e946d4a6a0607f94294
tree2d3f1c9bac1622267f0f93c52b8080456c1184fb
parentb3bcedc0402fcdc5c8624c433562d9d1882749d8
ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress()

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")
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>
sound/soc/soc-compress.c