Syntax 3
+Define.V1 "" # non-empty string to enable ucm v1 paths
+Define.V2Module yes # empty string to disable
+Define.V2Name yes # empty string to disable
+
If.driver {
Condition {
Type String
Empty "${CardNumber}"
}
True {
-
#
- # The last probed path for no-hw-card:
+ # The probed path for no-hw-card:
#
# ucm2/${OpenName}/${OpenName}.conf
- # ucm/${OpenName}/${OpenName}.conf
#
-
UseCasePath {
legacy {
Directory "${OpenName}"
File "${OpenName}.conf"
}
- v1_legacy {
- Version 1
- Directory "${OpenName}"
- File "${OpenName}.conf"
- }
}
-
}
False {
#
- # The last probed path when hw-card is found:
+ # The probed path when hw-card is found:
#
+ # ucm2/${KernelModule}/${KernelModule}.conf
# ucm2/${CardDriver}/${CardLongName}.conf
# ucm2/${CardDriver}/${CardDriver}.conf
- # ucm/${CardLongName}/${CardLongName}.conf
- # ucm/${CardName}/${CardName}.conf or \
- # ucm/${OpenName}/${OpenName}.conf
#
- UseCasePath {
- longname {
- Directory "${CardDriver}"
- File "${CardLongName}.conf"
- }
- driver {
- Directory "${CardDriver}"
- File "${CardDriver}.conf"
+ If.V2Module {
+ Condition {
+ Type String
+ Empty "${var:V2Module}"
}
- v1_longname {
- Version 1
- Directory "${CardLongName}"
- File "${CardLongName}.conf"
+ False {
+ Define.KernelModulePath "class/sound/card${CardNumber}/device/driver"
+ Define.KernelModule "${sys:$KernelModulePath}"
+ UseCasePath.module {
+ Directory "module"
+ File "${var:KernelModule}.conf"
+ }
}
}
-
- If.hw {
+ If.V2Name {
Condition {
Type String
- Haystack "${OpenName}.conf"
- Needle "hw:"
+ Empty "${var:V2Name}"
+ }
+ False.UseCasePath {
+ longname {
+ Directory "${CardDriver}"
+ File "${CardLongName}.conf"
+ }
+ driver {
+ Directory "${CardDriver}"
+ File "${CardDriver}.conf"
+ }
}
- True {
- UseCasePath.v1_cardnamme {
+ }
+ }
+}
+
+If.V1 {
+ Condition {
+ Type String
+ Empty "${var:V1}"
+ }
+ False.If.v1_driver {
+ Condition {
+ Type String
+ Empty "${CardNumber}"
+ }
+ True {
+ #
+ # The probed path for no-hw-card:
+ #
+ # ucm/${OpenName}/${OpenName}.conf
+ #
+ UseCasePath.v1_legacy {
+ Version 1
+ Directory "${OpenName}"
+ File "${OpenName}.conf"
+ }
+ }
+ False {
+ #
+ # The ucm v1 probed path when hw-card is found:
+ #
+ # ucm/${CardLongName}/${CardLongName}.conf
+ # ucm/${CardName}/${CardName}.conf or \
+ # ucm/${OpenName}/${OpenName}.conf
+ #
+ UseCasePath.v1_longname {
+ Version 1
+ Directory "${CardLongName}"
+ File "${CardLongName}.conf"
+ }
+ If.v1_hw {
+ Condition {
+ Type String
+ Haystack "${OpenName}"
+ Needle "hw:"
+ }
+ True.UseCasePath.v1_cardnamme {
Version 1
Directory "${CardName}"
File "${CardName}.conf"
}
- }
- False {
- UseCasePath.v1_openname {
+ False.UseCasePath.v1_openname {
Version 1
Directory "${OpenName}"
File "${OpenName}.conf"