
functions
files
intro
|
|
Sound
|
read_routines.ycp
|
Routines for reading sound card configuration
|
|
|
Imports
Includes
Local Functions
|
|
|
local read_card_name_from_alsa (integer card_id) -> string
|
|
tries to determine card model name from audio.alsa agent
- Parameters:
- Return value:
|
card name, "Sound card" on failure |
local extractUniqueKey (string comment) -> map
|
|
Extacts the unique key and the name of the card from comment in the
modules.conf placed before char-major-81-x
- Parameters:
comment |
before the char-major-81-x |
- Return value:
|
example: $[ "unique_key" : string, "name" : string ] or nil |
local read_modprobe (path mod_path) -> list<map>
|
|
reads already saved info from given file
- Parameters:
local read_save_info () -> list<map>
|
|
reads already saved info from modules.conf
- Example:
-
of return value:
[
$[
"alias": "snd-card-0",
"module": "snd-card-emu10k1",
"options": ["snd_id":"0", "snd_index":"card1"],
"unique_key":"asdf.asdfasdfasdf",
"model": "Sound Blaster Live!"
],
$[...]
] |
|