ASoC: meson: aiu: fix duplicate debugfs directory error
authorMark Brown <broonie@kernel.org>
Wed, 6 Apr 2022 13:23:46 +0000 (14:23 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Apr 2022 13:23:46 +0000 (14:23 +0100)
commit89bac792faf03fae5a9564bebfaacab53a029932
treebad17faa1b6cb59eb01230d0a5e9eb9de07133c3
parente927b05f3cc20de87f6b7d912a5bbe556931caca
parentfc35880d198d9f2023bf231c120e1a69ad4db841
ASoC: meson: aiu: fix duplicate debugfs directory error

Merge series from Heiner Kallweit <hkallweit1@gmail.com>:

On a S905W-based system I get the following error:
debugfs: Directory 'c1105400.audio-controller' with parent 'P230-Q200' already present!

Turned out that multiple components having the same name triggers this
error in soc_init_component_debugfs(). The proposed solution allows
other drivers to adopt the same approach with minimal effort.
With the patch the error is gone and that's the debugfs entries.

/sys/kernel/debug/asoc/P230-Q200/acodec:c1105400.audio-controller
/sys/kernel/debug/asoc/P230-Q200/hdmi:c1105400.audio-controller
/sys/kernel/debug/asoc/P230-Q200/cpu:c1105400.audio-controller