• Mark Brown's avatar
    ASoC: Add DAPM widget power decision debugfs files · 79fb9387
    Mark Brown authored
    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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    79fb9387
soc-dapm.h 16.2 KB