Skip to content

Commit 4de6cea

Browse files
tq-steinabroonie
authored andcommitted
ASoC: fsl_asrc_dma: fix duplicate debugfs directory error
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>
1 parent 9f5f358 commit 4de6cea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/fsl/fsl_asrc_dma.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,5 +473,8 @@ struct snd_soc_component_driver fsl_asrc_component = {
473473
.pointer = fsl_asrc_dma_pcm_pointer,
474474
.pcm_construct = fsl_asrc_dma_pcm_new,
475475
.legacy_dai_naming = 1,
476+
#ifdef CONFIG_DEBUG_FS
477+
.debugfs_prefix = "asrc",
478+
#endif
476479
};
477480
EXPORT_SYMBOL_GPL(fsl_asrc_component);

0 commit comments

Comments
 (0)