Sound configuration |
modules/Sound.ycp |
Sound data | |
|
|
This module has an unstable interface. |
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 for storing information about removed 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
Do not detect sounc cards, skip hardware probing
backup structures for sound settings
Function sets internal variable, which indicates, that any settings were modified, to "true"
Functions which returns if the settings were modified
- Return value:
-
settings were modified
sound module constructor
Probe one card with alsaconf call
- Parameters:
-
chip chip name
- Return value:
-
non-empty string with card options when card is present
Detect old ISA cards (which hwinfo doesn't know) using alsaconf
- Return value:
-
success
do hardware detection
- Return value:
-
success/failure
searches for sound alias in /etc/modules.conf
returns list of autodetected sound cards that haven't been already configured
- Parameters:
-
save_info list of already configured cards
- Return value:
-
of unconfigured cards
update list of unconfigured cards (necessary when deleting configured card)
opens alsa sound cards database
- Parameters:
-
use_ui
Read all sound settings from the SCR
- Parameters:
-
interactive if user could be asked for actions (currently only for detecting with alsaconf)
- Return value:
-
True on success
Just Set module data
- Parameters:
-
settings Sound configuration settings
Get all sound settings from the first parameter (For autoinstallation use.)
- Parameters:
-
settings settings to import
- Return value:
-
True on success
Dump the sound settings to a single map. self explaining (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import())
Get list of all kernel modules which are requied by the configured cards
- Return value:
-
Unique list of modules
Update the SCR according to sound settings
- Return value:
-
True on success
returns html formated configuration summary
- Return value:
-
Summary string
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"]
- Parameters:
-
modname module name
- Return value:
-
Map with collected options
creates list of command that will be used for sound system start (emulates 'rcalsasound start' somehow)
- Return value:
-
of shell commands
reset settings. used at installation time when user invokes 'reset to original proposal'
create a proposal
- Return value:
-
success/failure
copy settings to backup variables
restore settings from backup variables
Status of configuration
- Return value:
-
true if configuration was changed
returns list of configured/proposed sound cards.
- Return value:
-
of maps: [$["name": "ASDASD", "card_no": 0]...]
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
- Parameters:
-
modname name of sound module
- Return value:
-
map with options
store mixer settings
sets the channel volume to value [0..100]
- Parameters:
-
c_id card # channel channel name value volume of channel [0..100]
- Return value:
-
success
initialises volume after adding a new card. unmutes and sets volume for some channels
- Parameters:
-
c_id card id. modname name of sound module
Test whether sound card supports joystick
- Parameters:
-
c_id id of sound card
- Return value:
-
True if sound card c_id supports joystick
Return list of configured/proposed sound cards which support joystick
- Return value:
-
list of maps: [$["card_no":0, "name":"Sound Blaster Live!"]]