ASoC: meson: aiu: fix duplicate debugfs directory error
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 9 Mar 2022 20:23:06 +0000 (21:23 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 18:14:21 +0000 (19:14 +0100)
commitfc35880d198d9f2023bf231c120e1a69ad4db841
treec8f1f97e63c111cbee11a390112d016a7e769dd9
parentd462f6ed2aeac30c0b440a91fb05d964956935f9
ASoC: meson: aiu: fix duplicate debugfs directory error

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(). 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

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/38053baf-c33b-7fdf-7593-99b22153a9c0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/meson/aiu-acodec-ctrl.c
sound/soc/meson/aiu-codec-ctrl.c
sound/soc/meson/aiu.c