OSDN Git Service

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)
commit6769ea1e4315999624ce4637c9c338b9d88a85e6
tree9386bf1756f30f0d0fb4e618b88662bd22019276
parentf6fcc820e0c96664e2f21c0d6bb60630243ef36a
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