All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ASoC: meson: aiu: fix duplicate debugfs directory error
@ 2022-03-09 20:20 ` Heiner Kallweit
  0 siblings, 0 replies; 18+ messages in thread
From: Heiner Kallweit @ 2022-03-09 20:20 UTC (permalink / raw)
  To: Jerome Brunet, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Neil Armstrong, Kevin Hilman, Martin Blumenstingl
  Cc: alsa-devel, linux-arm-kernel, open list:ARM/Amlogic Meson...

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

v2:
- Reworked approach based on [0]

[0] https://www.spinics.net/lists/arm-kernel/msg960881.html

Heiner Kallweit (2):
  ASoC: soc-core: add debugfs_prefix member to snd_soc_component_driver
  ASoC: meson: aiu: fix duplicate debugfs directory error

 include/sound/soc-component.h     | 4 ++++
 sound/soc/meson/aiu-acodec-ctrl.c | 3 +++
 sound/soc/meson/aiu-codec-ctrl.c  | 3 +++
 sound/soc/meson/aiu.c             | 3 +++
 sound/soc/soc-core.c              | 5 +++++
 5 files changed, 18 insertions(+)

-- 
2.35.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-06 13:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-09 20:20 [PATCH v2 0/2] ASoC: meson: aiu: fix duplicate debugfs directory error Heiner Kallweit
2022-03-09 20:20 ` Heiner Kallweit
2022-03-09 20:20 ` Heiner Kallweit
2022-03-09 20:21 ` [PATCH v2 1/2] ASoC: soc-core: add debugfs_prefix member to snd_soc_component_driver Heiner Kallweit
2022-03-09 20:21   ` Heiner Kallweit
2022-03-09 20:21   ` Heiner Kallweit
2022-03-09 20:23 ` [PATCH v2 2/2] ASoC: meson: aiu: fix duplicate debugfs directory error Heiner Kallweit
2022-03-09 20:23   ` Heiner Kallweit
2022-03-09 20:23   ` Heiner Kallweit
2022-03-31  5:56 ` [PATCH v2 0/2] " Heiner Kallweit
2022-03-31  5:56   ` Heiner Kallweit
2022-03-31  5:56   ` Heiner Kallweit
2022-04-05 18:08   ` Mark Brown
2022-04-05 18:08     ` Mark Brown
2022-04-05 18:08     ` Mark Brown
2022-04-06 13:28 ` Mark Brown
2022-04-06 13:28   ` Mark Brown
2022-04-06 13:28   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.