]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: add NOTE to snd_soc_rtdcom_lookup()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 20 Aug 2019 05:05:02 +0000 (14:05 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:29:43 +0000 (18:29 +0100)
commitb8f0cc74fbffbc0b5d3289b8b7abf9a10971cb67
tree541ad6d4733d6c8567e1fa0856b7c662eb6135e0
parent5fd8273f1a8023702b1e37ad6ada9c09cf630c9c
ASoC: soc-core: add NOTE to snd_soc_rtdcom_lookup()

We can find specified name component via snd_soc_rtdcom_lookup().
But, it is not enough under multi CPU/Codec/Platform, because many
components which have same driver name might be connected to same rtd.

Not using this function as much as possible is best solution,
but some drivers are already deeply depended to it.

We can expand this function, for example having "num" which specifies
found order at parameter, etc (In such case, it need to have fixed
probing order).
Or, use different driver name in such component, etc.

We will have such issue if multi CPU/Codec/Platform were supported.
To indicate it, this patch adds NOTE to this function.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/874l2c1ldi.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c