mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
ASoC: Improve the debugfs hierarchy
Change the way the debugfs entries are created: If the codec->dev is valid, than use: debugfs/asoc/{codec->name}.{dev_name(codec->dev)}/ if the codec->dev is NULL: debugfs/asoc/{codec->name}/ as root for the debugfs entries. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
88439ac793
commit
ce3e3737a3
1 changed files with 6 additions and 2 deletions
|
@ -1256,8 +1256,12 @@ static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
|
||||||
{
|
{
|
||||||
char codec_root[128];
|
char codec_root[128];
|
||||||
|
|
||||||
snprintf(codec_root, sizeof(codec_root),
|
if (codec->dev)
|
||||||
"%s-%s", dev_name(codec->socdev->dev), codec->name);
|
snprintf(codec_root, sizeof(codec_root),
|
||||||
|
"%s.%s", codec->name, dev_name(codec->dev));
|
||||||
|
else
|
||||||
|
snprintf(codec_root, sizeof(codec_root),
|
||||||
|
"%s", codec->name);
|
||||||
|
|
||||||
codec->debugfs_codec_root = debugfs_create_dir(codec_root,
|
codec->debugfs_codec_root = debugfs_create_dir(codec_root,
|
||||||
debugfs_root);
|
debugfs_root);
|
||||||
|
|
Loading…
Reference in a new issue