summaryrefslogtreecommitdiff
path: root/sound/soc/meson/aiu-codec-ctrl.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-04-06 16:23:46 +0300
committerMark Brown <broonie@kernel.org>2022-04-06 16:23:46 +0300
commit89bac792faf03fae5a9564bebfaacab53a029932 (patch)
treebad17faa1b6cb59eb01230d0a5e9eb9de07133c3 /sound/soc/meson/aiu-codec-ctrl.c
parente927b05f3cc20de87f6b7d912a5bbe556931caca (diff)
parentfc35880d198d9f2023bf231c120e1a69ad4db841 (diff)
downloadlinux-89bac792faf03fae5a9564bebfaacab53a029932.tar.xz
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
Diffstat (limited to 'sound/soc/meson/aiu-codec-ctrl.c')
-rw-r--r--sound/soc/meson/aiu-codec-ctrl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/meson/aiu-codec-ctrl.c b/sound/soc/meson/aiu-codec-ctrl.c
index c3ea733fce91..59ee66fc2bcd 100644
--- a/sound/soc/meson/aiu-codec-ctrl.c
+++ b/sound/soc/meson/aiu-codec-ctrl.c
@@ -140,6 +140,9 @@ static const struct snd_soc_component_driver aiu_hdmi_ctrl_component = {
.of_xlate_dai_name = aiu_hdmi_of_xlate_dai_name,
.endianness = 1,
.non_legacy_dai_naming = 1,
+#ifdef CONFIG_DEBUG_FS
+ .debugfs_prefix = "hdmi",
+#endif
};
int aiu_hdmi_ctrl_register_component(struct device *dev)