diff options
author | Peter Ujfalusi <peter.ujfalusi@nokia.com> | 2009-10-01 03:32:47 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-01 07:13:04 -0400 |
commit | 88439ac793934a47f47ad285656b63d09f5937c8 (patch) | |
tree | f2292568c573bc063f198fe62ce7e8bb72f73711 /include/sound | |
parent | 17c86a32076f0119437a017de70a583431f4bf51 (diff) |
ASoC: add support for multiple cards/codecs in debugfs
In order to support multiple codecs on the same system in the debugfs
the directory hierarchy need to be changed by adding directory per codec
under the asoc direcorty:
debugfs/asoc/{dev_name(socdev->dev)}-{codec->name}/codec_reg
/dapm_pop_time
/dapm/{widgets}
With the original implementation only the debugfs files are only
created for the first codec, other codecs loaded later would fail to
create the debugfs files (since they are already exist).
Furthermore in this situation any of the codecs has been removed, would
cause the debugfs entries to disappear, regardless if the codec, which
created them are still loaded (the one which loaded first).
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 475cb7ed6bec..0b1f917a53ba 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -413,6 +413,7 @@ struct snd_soc_codec { | |||
413 | unsigned int num_dai; | 413 | unsigned int num_dai; |
414 | 414 | ||
415 | #ifdef CONFIG_DEBUG_FS | 415 | #ifdef CONFIG_DEBUG_FS |
416 | struct dentry *debugfs_codec_root; | ||
416 | struct dentry *debugfs_reg; | 417 | struct dentry *debugfs_reg; |
417 | struct dentry *debugfs_pop_time; | 418 | struct dentry *debugfs_pop_time; |
418 | struct dentry *debugfs_dapm; | 419 | struct dentry *debugfs_dapm; |