ASoC: simple-card-utils: add simple_props_to_xxx() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Sun, 11 Apr 2021 23:52:32 +0000 (08:52 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 13 Apr 2021 11:32:52 +0000 (12:32 +0100)
commit9830d3e99f51fc1c1c6ab8be7778fd205af198ad
treef8f310ff76cf3bece7d18631fa5f78085700ceeb
parent40d8cbe70e71be170e0a4fe6ab112d9aaa9cfb18
ASoC: simple-card-utils: add simple_props_to_xxx() macro

We shouldn't use dai_props->cpus/codecs/cpu_dai/codec_dai/codec_conf
directly, because these are array to supporting multi CPU/Codec/Platform.
This patch adds asoc_link_to_xxx() macro for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87k0p8wf9b.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h