// SPDX-License-Identifier: GPL-2.0 // // // Renesas R-Car debugfs support // // Copyright (c) 2021 Kuninori Morimoto <[email protected]> // // > mount -t debugfs none /sys/kernel/debug // > cd /sys/kernel/debug/asoc/rcar-sound/ec500000.sound/rdai{N}/ // > cat playback/xxx // > cat capture/xxx // #ifdef CONFIG_DEBUG_FS #include <linux/debugfs.h> #include "rsnd.h" static int rsnd_debugfs_show(struct seq_file *m, void *v) { … } DEFINE_SHOW_ATTRIBUTE(…); void rsnd_debugfs_reg_show(struct seq_file *m, phys_addr_t _addr, void __iomem *base, int offset, int size) { … } void rsnd_debugfs_mod_reg_show(struct seq_file *m, struct rsnd_mod *mod, int reg_id, int offset, int size) { … } int rsnd_debugfs_probe(struct snd_soc_component *component) { … } #endif /* CONFIG_DEBUG_FS */