]> git.alsa-project.org Git - alsa-lib.git/commit
conf: Allow dynamic top-level config directory
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 May 2017 22:09:28 +0000 (00:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 May 2017 07:54:16 +0000 (09:54 +0200)
commit516bf057b04579134ab97098ed579967427a2ede
tree86aebfffad3df1bea38906c6ead29c4af850a62c
parentf3d2f4046e8492013044a99fd4324a21dbb82938
conf: Allow dynamic top-level config directory

Currently the top-level config directory is specified only via
configure script option, and is fixed after that.  It's inconvenient
when the library is moved to another base directory, or if you want to
use a library code (e.g. with $LD_PRELOAD) with the incompatible
config setups.

This patch allows user to override the top-level config path via the
environment varialbe, $ALSA_CONFIG_DIR.  For that, a new helper
function, snd_config_topdir(), was introduced, and the codes referring
to the top config dir have been modified to handle it dynamically.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/conf.h
src/alisp/alisp.c
src/conf.c
src/confmisc.c
src/mixer/simple_abst.c
src/topology/data.c
src/topology/tplg_local.h
src/ucm/parser.c
src/ucm/ucm_local.h