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
+Define.V2ConfD yes # empty string to disable
+Define.V2Module yes # non-empty string to enable module name lookups (obsolete)
+Define.V2Name yes # non-empty string to enable driver & card name lookups (obsolete)
If.driver {
Condition {
#
# The probed path when hw-card is found:
#
- # ucm2/${KernelModule}/${KernelModule}.conf
- # ucm2/${CardDriver}/${CardLongName}.conf
- # ucm2/${CardDriver}/${CardDriver}.conf
+ # ucm2/conf.d/[${CardDriver}|${KernelDriver}]/${CardLongName}.conf
+ # ucm2/conf.d/[${CardDriver}|${KernelDriver}]/[${CardDriver}|${KernelDriver}].conf
+ # ucm2/${KernelModule}/${KernelModule}.conf (obsolete)
+ # ucm2/${CardDriver}/${CardLongName}.conf (obsolete)
+ # ucm2/${CardDriver}/${CardDriver}.conf (obsolete)
#
+ If.V2ConfD {
+ Condition {
+ Type String
+ Empty "${var:V2ConfD}"
+ }
+ False {
+ Define.Driver "${CardDriver}"
+ If.nodrv {
+ Condition {
+ Type String
+ Empty "${var:Driver}"
+ }
+ True.Define {
+ KernelDriverPath "class/sound/card${CardNumber}/device/driver"
+ Driver "${sys:$KernelDriverPath}"
+ }
+ }
+ UseCasePath.confd1 {
+ Directory "conf.d/${var:Driver}"
+ File "${CardLongName}.conf"
+ }
+ UseCasePath.confd2 {
+ Directory "conf.d/${var:Driver}"
+ File "${var:Driver}.conf"
+ }
+ }
+ }
If.V2Module {
Condition {
Type String