[alsa-devel] Remove dynamic configuration from alsa-lib
I have a hard job...to remove dynamic configuration from alsa-lib (conf.c,confmisc.c). I found it difficult because snd_conf_* functions are spread all over *.c files. Is there am easy way of doing it ? Does anyone have some "guidelines" of doing it? Any help is wellcome... Fausto Carvalho Marques Silva
On 7/3/07, Fausto Carvalho Marques SIlva fausto@tse.gov.br wrote:
I have a hard job...to remove dynamic configuration from alsa-lib (conf.c,confmisc.c). I found it difficult because snd_conf_* functions are spread all over *.c files. Is there am easy way of doing it ? Does anyone have some "guidelines" of doing it?
I doubt there's an easy way - why would you want to do that?
Lee
Lee Revell wrote:
I doubt there's an easy way - why would you want to do that?
Because i have a "embedded device" that does not need the alsa.conf. My configuration is only:
pcm.default { type hw card 0 device 0 }
ctl.default { type hw card 0 }
No need for anything else... Could be a "program" that runs with a configure option ( --conf-dynamic=<my-alsa.conf> ) for generating a static structure for "feeding" pcm, control,rawmidi and others...
On Tue, 03 Jul 2007 16:29:17 -0300 "Fausto Carvalho Marques SIlva" fausto@tse.gov.br wrote:
Lee Revell wrote:
I doubt there's an easy way - why would you want to do that?
Because i have a "embedded device" that does not need the alsa.conf.
Might i suggest IWAI-san's 'salsa' lib? I *think* it forgo's the conf stuff.
My configuration is only:
pcm.default { type hw card 0 device 0 }
ctl.default { type hw card 0 }
No need for anything else... Could be a "program" that runs with a configure option ( --conf-dynamic=<my-alsa.conf> ) for generating a static structure for "feeding" pcm, control,rawmidi and others...
I have been down this road for the exact same reason that you specify and i have given up :-).
Matter of fact, i actually found that i *needed* stuff that is only made available via settings in the /usr/share/alsa tree.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Tue, 3 Jul 2007 12:44:35 -0700, John L. Utz III wrote:
On Tue, 03 Jul 2007 16:29:17 -0300 "Fausto Carvalho Marques SIlva" fausto@tse.gov.br wrote:
Lee Revell wrote:
I doubt there's an easy way - why would you want to do that?
Because i have a "embedded device" that does not need the alsa.conf.
Might i suggest IWAI-san's 'salsa' lib? I *think* it forgo's the conf stuff.
Yeah, SALSA-lib is exactly for that purpose. No luxury config file, no sweet plugin but a slim beauty.
Takashi
On Tue, 03 Jul 2007 16:11:58 -0300 Fausto Carvalho Marques SIlva fausto@tse.gov.br wrote:
I have a hard job...to remove dynamic configuration from alsa-lib (conf.c,confmisc.c). I found it difficult because snd_conf_* functions are spread all over *.c files. Is there am easy way of doing it ? Does anyone have some "guidelines" of doing it? Any help is wellcome...
I haven't had a look at the code, but perhaps you can replace all the snd_conf_* functions with copies that do nothing, so you don't have to change all the callers.
-- Giuliano.
participants (5)
-
Fausto Carvalho Marques SIlva
-
Giuliano Pochini
-
John L. Utz III
-
Lee Revell
-
Takashi Iwai