conf: Allow for a directory to be given as a config file.

When this is done, *.conf files can be placed in that directory and they
will be processed by as if they were included directly.

A directory (typically /usr/share/alsa/alsa.conf.d/) has been
added into the distribution.

v2: Used existing conf syntax rather than processing via autotools
v3: Split file loading into separate function and made error handling
more consistent.

Signed-off-by: Colin Guthrie <colin@mageia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Colin Guthrie 2011-09-16 10:04:26 +01:00 committed by Takashi Iwai
parent 26e80c2e32
commit 7924500688
6 changed files with 87 additions and 13 deletions

View file

@ -0,0 +1,8 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
alsadir = $(alsaconfigdir)/alsa.conf.d
cfg_files = README
alsa_DATA = $(cfg_files)
EXTRA_DIST = \
$(cfg_files)