]> 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)
commite9464f82e8cb79b5816ee1b95bb1ae2bf36c4370
treebad17faa1b6cb59eb01230d0a5e9eb9de07133c3
parentfa4d8661714ff8165056977c454916fe6a057d8c
parent42777dff475a91df6f0a87f5d83803f4ec5cc01a
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