[alsa-devel] [PATCH 1/1] ASoC: add support for multiple cards/codecs in debugfs

Peter Ujfalusi peter.ujfalusi at nokia.com
Thu Oct 1 08:13:57 CEST 2009

On Thursday 01 October 2009 08:41:07 Ujfalusi Peter (Nokia-D/Tampere) wrote:
> Is it good if the patch creates a directory hierarchy like this:
> debugfs/asoc/{dev_name()}/{codec->name}/...
> Or should I use some intermediate buffer to construct a single level tree:
> debugfs/asoc/{dev_name()}-{codec->name}/...
> From the point of what is coming the former is much more future proof, if
>  we take into account that we can have more than one codec in one soc
>  device (or card).

After a bit of thinking, I think I will go with the later one:

It needs some intermediate buffer to construct the string for the directory, but 
I think that is the better way for now.



More information about the Alsa-devel mailing list