]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: soc-generic-dmaengine: set debugfs_prefix via Component driver
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 2 Jun 2026 02:55:46 +0000 (02:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 11:21:12 +0000 (12:21 +0100)
We can set component->debugfs_prefix via component_driver->debugfs_prefix.
Use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87h5nlk5vx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c

index 6b8c65763c828311f2b98e6bb8015fc85fffa60e..467426d2b5e4e08658c5e5e11dda7a0b263d9e44 100644 (file)
@@ -334,6 +334,7 @@ static const struct snd_soc_component_driver dmaengine_pcm_component = {
        .pointer        = dmaengine_pcm_pointer,
        .pcm_new        = dmaengine_pcm_new,
        .sync_stop      = dmaengine_pcm_sync_stop,
+       .debugfs_prefix = "dma",
 };
 
 static const struct snd_soc_component_driver dmaengine_pcm_component_process = {
@@ -347,6 +348,7 @@ static const struct snd_soc_component_driver dmaengine_pcm_component_process = {
        .copy           = dmaengine_copy,
        .pcm_new        = dmaengine_pcm_new,
        .sync_stop      = dmaengine_pcm_sync_stop,
+       .debugfs_prefix = "dma",
 };
 
 static const char * const dmaengine_pcm_dma_channel_names[] = {
@@ -441,9 +443,6 @@ int snd_dmaengine_pcm_register(struct device *dev,
        if (!pcm)
                return -ENOMEM;
 
-#ifdef CONFIG_DEBUG_FS
-       pcm->component.debugfs_prefix = "dma";
-#endif
        if (!config)
                config = &snd_dmaengine_pcm_default_config;
        pcm->config = config;