linux/sound/soc/generic
Kuninori Morimoto a0c426fe14
ASoC: simple-card-utils: check "reg" property on asoc_simple_card_get_dai_id()
We will get DAI ID from "reg" property if it has on DT, otherwise get
it by counting port/endpoint.

But in below case, we need to get DAI ID = 0 via port reg = <0>, but
current implementation returns ID = 1, because it can't judge ID = 0 was
from "non reg" or "reg = <0>".
Thus, it will count port/endpoint number as "non reg" case.

of_graph_parse_endpoint() implementation itself is not a problem,
but because asoc_simple_card_get_dai_id() need to count port/endpoint
number when "non reg" case, it need to know ID = 0 was from
"non reg" or "reg = <0>".
This patch fix this issue.

	port {
		reg = <0>;
		xxxx: endpoint@0 {
		};
=>		xxxx: endpoint@1 {
		};
	};

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-01-03 16:34:14 +00:00
..
audio-graph-card.c ASoC: audio-graph-card: tidyup prefix for snd_soc_codec_conf 2018-12-14 11:47:49 +00:00
audio-graph-scu-card.c ASoC: audio-graph-scu-card: care multi DPCM codec_conf 2018-12-04 16:29:19 +00:00
Kconfig ASoC: simple-card: merge simple-scu-card 2018-12-14 11:48:12 +00:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
simple-card-utils.c ASoC: simple-card-utils: check "reg" property on asoc_simple_card_get_dai_id() 2019-01-03 16:34:14 +00:00
simple-card.c ASoC: simple-card: tidyup prefix for snd_soc_codec_conf 2018-12-14 11:48:57 +00:00
simple-scu-card.c ASoC: simple-scu-card: care multi DPCM codec_conf 2018-12-11 12:19:12 +00:00