]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fix card registration regression.
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 19 Feb 2020 10:25:26 +0000 (11:25 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 19 Feb 2020 14:35:15 +0000 (14:35 +0000)
commita175830a378c196f0d0620bde8365663c9d1999d
tree48a023ab46c6b6f4110ad1e85bcf685380c519fc
parentbe881f1f5fda6f1e5fbf0b01e4dcf2091d859cd7
ASoC: fix card registration regression.

This reverts commit 3666f186d9ec17fb5b350f1b2cc34203e425f2e0.

This change might have been desirable to ensure the uniqueness of
the component name. It would have helped to better support linux
devices which register multiple components, something is which more
common than initially thought.

However, some card driver are directly using dev_name() to fill the
component names of the dai_link which is a problem if want to change
the way ASoC generates the component names.

Until we figure out the appropriate way to deal with this, revert the
change and keep the names as they were. There might be a couple of warning
related to debugfs (which were already present before the change) but it
is still better than breaking working audio cards.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200219102526.692126-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c