]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit1dfa5a5ab34560fd9647083f623d19705be2e706
tree301c2c30c27572c5bc494dc122839d7922ac790a
parent0c48a65394ab6d2b4afde3fbe840dbb05a52d929
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