]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: audio-graph: check ports if exists
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 19 Apr 2021 02:02:29 +0000 (11:02 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 20 Apr 2021 16:25:46 +0000 (17:25 +0100)
commit89878ae35cdb2390ee79059fde893670ec9c7599
tree9386bf1756f30f0d0fb4e618b88662bd22019276
parentd20c532ec07a6272aa0ce806bcad0f08c8ae9015
ASoC: audio-graph: check ports if exists

"endpoint" and "port" are always exists, but there is no guarantee
for "ports". This patch checks "ports" if exists, otherwise,
it might set un-expected settings.

This patch also do align to 100 char in 1 line.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87wnsz3ubu.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c