ASoC: Add DAPM widget power decision debugfs files
commit79fb9387f88b6b44bbc46e19cae26d2c9fe3bb6a
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 21 Aug 2009 15:38:13 +0000 (21 16:38 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 21 Aug 2009 16:17:59 +0000 (21 17:17 +0100)
treee291bf379268358a1a5a6d9e32a33cabedf6d0d2
parentb8e583f6012d618fb93bb38a302b63c3c6d2bfbc
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>
include/sound/soc-dapm.h
include/sound/soc.h
sound/soc/soc-core.c
sound/soc/soc-dapm.c