YaST2 Developers Documentation: Sound configuration | ![]() |
![]() functions files intro |
what sound system we're using (true=alsa, false=oss)
id of current card
configuration map of current card
text constants for sound module
flag for letting the module know, that it's launched from then hardware installation screen
was the proposal already generated?
write only mode? (-> do not restart services during writing)
list for storing detected cards
list of detected and unconfigured cards
settings to save to /etc/modules.conf (only those concerning to sound)
settings to save using .audio.alsa ... mixer
rc settings
alsa sound card database
module details
map of card vendors
flag for showing/not showing ui stuff (eg when loading alsa database)
currently used card vendor (pointer to table)
currently used card driver (pointer to table)
currently used card model (pointer to table)
default value of volume for new card
This is true, if sound data were read from /etc/modprobe.conf On write, they shoud be removed and written only to /etc/modprobe.d/sound
When true: During autoinstallation, detected cards will be added automaticaly even if they are not defined in control file
backup structures for sound settings
Is "snd_" prefix used for sound module parameter names? (ALSA only) Variable must be nil for first, will be initialized when needed
Checks (via 'modinfo snd') if "snd_" prefix is used for module parameters (ALSA only)
Returns current prefix of module parameters (ALSA only)
sound module constructor
Probe one card with alsaconf call
Detect old ISA cards (which hwinfo doesn't know) using alsaconf
do hardware detection
searches for sound alias in /etc/modules.conf
returns list of autodetected sound cards that haven't been already configured
update list of unconfigured cards (necessary when deleting configured card)
opens alsa sound cards database
Read all sound settings from the SCR
Just Set module data
Get all sound settings from the first parameter (For autoinstallation use.)
Dump the sound settings to a single map. self explaining (For use by autoinstallation.)
Update the SCR according to sound settings
returns html formated configuration summary
this function converts options for modules from 'modules_conf' data structure to another - it is needed for writing options to /etc/modules conf. eg. we have these configured cards: [ $["model": "sblive", "module":"snd-emu10k1", "options" :$["opt1": "a", "opt2": "b"]], $["model": "sblive", "module":"snd-emu10k1", "options": $["opt2": "c"]], $["model": "other", "module":"mod2", "options": $["opt1": "a", "opt2": "b"]] ] CollectOptions ("snd-emu10k1") returns $["opt1":"a,", "opt2":"b,c"]
creates list of command that will be used for sound system start (emulates 'rcalsasound start' somehow)
reset settings. used at installation time when user invokes 'reset to original proposal'
create a proposal
copy settings to backup variables
restore settings from backup variables
Status of configuration
returns list of configured/proposed sound cards.
stores unique keys. this function is not part of sound_write module because it should not be called during autoinstallation
Get joystick settings from sound database
store mixer settings
sets the channel volume to value [0..100]
initialises volume after adding a new card. unmutes and sets volume for some channels
Test whether sound card supports joystick
Return list of configured/proposed sound cards which support joystick
|
YaST2 Developers Documentation | ![]() |