[alsa-devel] Clarrification about the alsa volume init framework.

Takashi Iwai tiwai at suse.de
Tue May 10 09:18:16 CEST 2011

At Tue, 10 May 2011 08:48:33 +0200,
Luke Yelavich wrote:
> Hi,
> So I am looking at cleaning up Ubuntu's collection of volume init db data originally set up in Ubuntu's/Debian old big init script. The switch has already been made to the new init system, and any existing settings were migrated from our old init script to the new system, however this is somewhat unclean.
> Is my understanding correct in that the new volume init system was designed to have quirks for hardware that needs particular volume settings? If so, how would upstream like these to be submitted, and would you want to have several dozen or more quirk files in the init db for different hardware? 
> Thanks in advance.

alsactl init should be able to handle different hardware, in general.
Though, the current file handling (reading all explicitly from 00main)
doesn't look good for easy extensions.  If you want to add a new h/w-
specific init file, you'll need to modify 00main as well.  It'd be
better to look up all files (preferably with some extension like
"*.conf") in a directory, so that we need to just put a new file for a
new init quirk.

I know there are possibilities in preinit/* and postinit/*, but then I
see no reason why main directory isn't managed in that way.

Jaroslav, what do you think?



More information about the Alsa-devel mailing list