]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: allow a dt node to provide several components
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 13 Feb 2020 15:51:51 +0000 (16:51 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 13 Feb 2020 20:57:19 +0000 (20:57 +0000)
commitb97706f322e1a350ee75707e5a75e0522161fe31
tree301c2c30c27572c5bc494dc122839d7922ac790a
parent3bf204ee66f7c7f74e7c7c55b60a9d7ef3b5859a
ASoC: core: allow a dt node to provide several components

At the moment, querying the dai_name will stop of the first component
matching the dt node. This does not allow a device (single dt node) to
provide several ASoC components which could then be used through DT.

This change let the search go on if the xlate function of the component
returns an error, giving the possibility to another component to match
and return the dai_name.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200213155159.3235792-2-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c