[alsa-devel] [PATCH] conf: Move UCM profile snippets into ucm-includes subdirectory

Takashi Iwai tiwai at suse.de
Wed Nov 28 10:55:12 CET 2018


On Tue, 27 Nov 2018 14:08:52 +0100,
Takashi Iwai wrote:
> 
> We have placed UCM profile snippets to be included by the main config
> files also in the same directory, src/conf/ucm, it confuses alsaucm
> program that scans over all subdirectories.  It thinks such a file is
> also the main config file, and spews errors like:
>   % alsaucm
>   ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/bytcr/bytcr.conf
>   ALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr
>   alsaucm: unable to obtain card list: No such file or directory
> 
> For avoiding this, move UCM profile snippets into the own root
> directory, src/conf/ucm-includes, and include them by changing the
> include with "<searchdir:ucm-includes>".

Scratch this one, there were a few more places requiring the fixes.

Furthermore, after looking at the code again, I found that we have
already defined the subdirectories for components.  Currently, it's
"codecs" and "dsps".  Now I added "platforms", and move the included
files to the appropriate subdirs.

That is, the inclusion will be like
  <codecs/rt5640/EnableSeq.conf>

I'll submit the revised patch.


thanks,

Takashi


More information about the Alsa-devel mailing list