ASoC: rsnd: check whether playback/capture property exists
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 1 Feb 2023 01:59:46 +0000 (01:59 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 1 Feb 2023 11:43:43 +0000 (11:43 +0000)
commit68a410aff971e59b9e94aa22c4c5cb6a6af30729
tree1114322ea8c4adb241918de527b3b9797b9765d1
parent86b753a86f6dc31ca9bccb489ebde1968d26c89b
ASoC: rsnd: check whether playback/capture property exists

Current rsnd sets "channels_min" which is used from
snd_soc_dai_stream_valid() without checking DT playback/capture property.
Thus, "aplay -l" or "arecord -l" will indicate un-exising device.
This patch checks DT proerty and do nothing playback/capture settings if
not exist.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878rhi6t7x.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c