Skip to contentSkip to conversation

Remove dynamic configuration from alsa-lib

DISCUSSION Fausto Carvalho Marques SIlva 5 participants 6 messages Jul 3, 2007 – Jul 8, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Fausto Carvalho Marques SIlva

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

#2 lore raw
Quoted 3 lines · Lee Revell

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...

#3 lore raw
Quoted 6 lines · On Tue, 03 Jul 2007 16:29:17 -0300 "Fausto Carvalho Marques SIlva"…
Quoted 3 lines · Lee Revell

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.

Quoted 14 lines

My configuration is only:

pcm.default {
type hw
card 0
device 0
}

ctl.default {
type hw
card 0
}

Quoted 4 lines

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.

Quoted 5 lines

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

At Tue, 3 Jul 2007 12:44:35 -0700,

Quoted 6 lines · John L. Utz III
Quoted 2 lines · On Tue, 03 Jul 2007 16:29:17 -0300 "Fausto Carvalho Marques SIlva"…

Lee Revell wrote:

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

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

#5 lore raw
In reply to Fausto Carvalho Marques SIlva
Quoted 7 lines · On Tue, 03 Jul 2007 16:11:58 -0300 Fausto Carvalho Marques SIlva…

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.