diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-21 11:38:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-21 12:17:59 -0400 |
commit | 79fb9387f88b6b44bbc46e19cae26d2c9fe3bb6a (patch) | |
tree | e291bf379268358a1a5a6d9e32a33cabedf6d0d2 /include | |
parent | b8e583f6012d618fb93bb38a302b63c3c6d2bfbc (diff) |
ASoC: Add DAPM widget power decision debugfs files
Currently when built with DEBUG DAPM will dump information about
the power state decisions it is taking for each widget to dmesg.
This isn't an ideal way of getting the information - it requires
a kernel build to turn it on and off and for large hub CODECs the
volume of information is so large as to be illegible. When the
output goes to the console it can also cause a noticable impact
on performance simply to print it out.
Improve the situation by adding a dapm directory to our debugfs
tree containing a file per widget with the same information in
it. This still requires a decision to build with debugfs support
but is easier to navigate and much less intrusive.
In addition to the previously displayed information active streams
are also shown in these files.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
-rw-r--r-- | include/sound/soc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 35814ced2d22..1673f0b2cf58 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -283,6 +283,7 @@ void snd_soc_dapm_shutdown(struct snd_soc_device *socdev); | |||
283 | 283 | ||
284 | /* dapm sys fs - used by the core */ | 284 | /* dapm sys fs - used by the core */ |
285 | int snd_soc_dapm_sys_add(struct device *dev); | 285 | int snd_soc_dapm_sys_add(struct device *dev); |
286 | void snd_soc_dapm_debugfs_init(struct snd_soc_codec *codec); | ||
286 | 287 | ||
287 | /* dapm audio pin control and status */ | 288 | /* dapm audio pin control and status */ |
288 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, const char *pin); | 289 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, const char *pin); |
diff --git a/include/sound/soc.h b/include/sound/soc.h index dbb1702688cd..0758a1b3ca44 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -416,6 +416,7 @@ struct snd_soc_codec { | |||
416 | #ifdef CONFIG_DEBUG_FS | 416 | #ifdef CONFIG_DEBUG_FS |
417 | struct dentry *debugfs_reg; | 417 | struct dentry *debugfs_reg; |
418 | struct dentry *debugfs_pop_time; | 418 | struct dentry *debugfs_pop_time; |
419 | struct dentry *debugfs_dapm; | ||
419 | #endif | 420 | #endif |
420 | }; | 421 | }; |
421 | 422 | ||