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

ucm2: Separate the configuration lookups (hw based) #79

Closed
wants to merge 1 commit into from

Conversation

perexg
Copy link
Member

@perexg perexg commented Feb 3, 2021

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

…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 {
Copy link
Contributor

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?

Copy link
Contributor

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}"
Copy link
Contributor

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
Copy link
Contributor

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

@lumag
Copy link
Contributor

lumag commented Feb 5, 2021

@lumag
Copy link
Contributor

lumag commented Feb 11, 2021

@perexg , any updates on this PR? We'd like to update support for existing Qualcomm cards and update #63 and #70 so that they can be finally merged.

@perexg
Copy link
Member Author

perexg commented Feb 11, 2021

Merged in 4cfceb1 .

@perexg perexg closed this Feb 11, 2021
@perexg perexg deleted the conf-d branch February 11, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants