OSDN Git Service

ASoC: soc.h: add asoc_link_to_cpu/codec/platform() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 22 Mar 2021 02:48:15 +0000 (11:48 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 25 Mar 2021 13:58:52 +0000 (13:58 +0000)
commit4da40cb9955c63c3aca02be267faea4abbd2c649
tree7a526317917603b107bfeca609ea3f554ba5aec0
parent3f994c25868729fb63a4eef42a7040e563eff365
ASoC: soc.h: add asoc_link_to_cpu/codec/platform() macro

We shouldn't use dai_link->cpus/codecs/platforms directly,
because these are array now 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/874kh3aopc.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h