Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend use case search paths to use kernel driver name #78

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions ucm2/driver/qcom-apq8016-sbc.conf
19 changes: 19 additions & 0 deletions ucm2/ucm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Syntax 3

Define.V1 "" # non-empty string to enable ucm v1 paths
Define.V2Module yes # empty string to disable
Define.V2Driver yes # empty string to disable
Define.V2Name yes # empty string to disable

If.driver {
Expand Down Expand Up @@ -59,6 +60,24 @@ If.driver {
}
}
}
If.V2Driver {
Condition {
Type String
Empty "${var:V2Driver}"
}
False {
Define.KernelDriverPath "class/sound/card${CardNumber}/device/driver"
Define.KernelDriver "$${sys:$KernelDriverPath}"
UseCasePath.kerneldriverlongname {
Directory "driver/${var:KernelDriver}"
File "${CardLongName}.conf"
}
UseCasePath.kerneldriver {
Directory "driver"
File "${var:KernelDriver}.conf"
}
}
}
If.V2Name {
Condition {
Type String
Expand Down