[alsa-devel] [PATCH] conf: Allow for a directory to be given as a config file.
Colin Guthrie
gmane at colin.guthr.ie
Tue Sep 13 23:00:28 CEST 2011
'Twas brillig, and Jaroslav Kysela at 12/09/11 07:57 did gyre and gimble:
> Date 11.9.2011 14:40, gmane at colin.guthr.ie wrote:
>> From: Colin Guthrie <colin at mageia.org>
>>
>> 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.
>
> Thanks for this patch.
>
>
>> + at hooks [
>> + {
>> + func load
>> + files [
>> + "@ALSA_CONFIG_DIR@/alsa.conf.d/"
>
> I think that it might be more flexible and analogical to keep the
> original configuration file and implement the confdir function - see the
> datadir example.
>
> Implemented:
>
> "{ @func datadir }"
>
> To be added:
>
> "{ @func confdir }"
>
> See snd_func_datadir() in confmisc.c.
>
I had a look at the implementation of snd_func_datadir and it actually
returns ALSA_CONFIG_DIR already, so I actually don't need to do anything
special here, just use @func datadir and a bit of concatenation.
New patch coming up.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the Alsa-devel
mailing list