• Peter Ujfalusi's avatar
    ASoC: add support for multiple cards/codecs in debugfs · 88439ac7
    Peter Ujfalusi authored
    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: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    88439ac7
soc.h 18.5 KB