]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: fsl_asrc_dma: fix duplicate debugfs directory error
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 16 Dec 2025 09:40:43 +0000 (10:40 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 17 Dec 2025 12:00:54 +0000 (12:00 +0000)
This driver registers a component for asrc. This is also used together
with easrc, both attached using the device name as component name.
Eventually debugfs directories with identical name are created in
soc_init_component_debugfs(), leading to error message:
  debugfs: '30c90000.easrc' already exists in 'tqm-tlv320aic32'
Fix this by adding the debugfs_prefix.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://patch.msgid.link/20251216094045.623184-3-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_dma.c

index 1bba48318e2ddf16f06a771b1b2b3f8bd4ebb980..7dacc06b2f02e2c81bd1f941fa50d54e73f810fd 100644 (file)
@@ -473,5 +473,8 @@ struct snd_soc_component_driver fsl_asrc_component = {
        .pointer        = fsl_asrc_dma_pcm_pointer,
        .pcm_construct  = fsl_asrc_dma_pcm_new,
        .legacy_dai_naming = 1,
+#ifdef CONFIG_DEBUG_FS
+       .debugfs_prefix = "asrc",
+#endif
 };
 EXPORT_SYMBOL_GPL(fsl_asrc_component);