-
Notifications
You must be signed in to change notification settings - Fork 201
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
ucm2: Separate the configuration lookups (hw based) #79
Conversation
cfb86a8
to
7d9a8b0
Compare
…ation tree Introduce ucm2/conf.d/ tree with symlinks to the real hardware configurations. In this way, we do not rely to create the configuration paths based on simple driver / device identification, but we can store the configurations more logically to make the maintenance (code reuse, multiple changes) more easy. BugLink: alsa-project#70 BugLink: alsa-project#76 BugLink: alsa-project#78 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Directory "conf.d/${var:Driver}" | ||
File "${CardLongName}.conf" | ||
} | ||
UseCasePath.driver { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will conflict with the False.UseCasePath -> driver below, won't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, ignore this comment please.
} | ||
True.Define { | ||
KernelDriverPath "class/sound/card${CardNumber}/device/driver" | ||
Driver "${sys:$KernelDriverPath}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$$sys
, just in case?
# ucm2/${CardDriver}/${CardLongName}.conf | ||
# ucm2/${CardDriver}/${CardDriver}.conf | ||
# ucm2/conf.d/[${CardDriver}|${KernelDriver}]/${CardLongName}.conf | ||
# ucm2/conf.d/[${CardDriver}|${KernelDriver}]/[${CardDriver}|${KernelDriver}].conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please point, how is the ${CardDriver}
handled? In your code I see only ucm2/conf.d/${KernelDriver}/${CardLongName}.conf
and ucm2/conf.d/${KernelDriver}/${KernelDriver}.conf
Tested on Qualcomm boards, works perfectly: Linaro/meta-qcom@2adcb49#diff-b634ac912c308ac65f0bd24b4606466c7a8142316d8dba5292634e6f9e8bcff5 |
Merged in 4cfceb1 . |
Introduce ucm2/conf.d/ tree with symlinks to the real hardware configurations.
In this way, we do not rely to create the configuration paths based on
simple driver / device identification, but we can store the configurations
more logically to make the maintenance (code reuse, multiple changes)
more easy.
BugLink: #70
BugLink: #76
BugLink: #78