ASoC: simple-card-utils: add asoc_graph_is_ports0()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 12 Oct 2021 04:54:01 +0000 (13:54 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 15 Oct 2021 15:10:36 +0000 (16:10 +0100)
commit92939252458fa279d0013e5dc545a98a4ca4064a
tree3e9cf9e37a4ec9d919dc52fe1ef9fea6c8f8f913
parentd293abc0c8fbb7b1610b9f7497323028b06cd5f8
ASoC: simple-card-utils: add asoc_graph_is_ports0()

audio-graph-card2 will support DPCM/Multi/Codec2Codec,
and these will use almost same DT settings which uses
ports0 and ports1.
This patch adds asoc_graph_is_ports0() which checks
port is under port0 or not.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/875yu2n8ra.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c