mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-09 13:30:03 -05:00
ucm: add the run-time variable substitution
Those two variables are supported:
${ConfName} - configuration file name
${CardId} - card identification string (like PCH)
${CardName} - card name (driver)
${CardLongName} - card long name (driver)
${env:ENV_NAME} - returns the environment variable ENV_NAME
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
40aef87f1e
commit
0dd89f3892
3 changed files with 179 additions and 22 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#define SYNTAX_VERSION_MAX 2
|
||||
|
||||
#define MAX_FILE 256
|
||||
#define MAX_CARD_SHORT_NAME 32
|
||||
#define MAX_CARD_LONG_NAME 80
|
||||
|
||||
#define SEQUENCE_ELEMENT_TYPE_CDEV 1
|
||||
|
|
@ -204,6 +205,7 @@ struct use_case_verb {
|
|||
*/
|
||||
struct snd_use_case_mgr {
|
||||
char *card_name;
|
||||
char card_short_name[MAX_CARD_SHORT_NAME];
|
||||
char card_long_name[MAX_CARD_LONG_NAME];
|
||||
char conf_file_name[MAX_CARD_LONG_NAME];
|
||||
char *comment;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue