]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b8da255c6c2d9280d6416102777dd4e5688c47f
treebad17faa1b6cb59eb01230d0a5e9eb9de07133c3
parent6a03e63afda8de51dc0928f4394657bd12605041
parent07cd19823c36ff7716b4e707bc06f53490c4c443
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