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: rk3399-gru-sound: Add missing symlink from conf.d tree #162

Closed

Conversation

alpernebbi
Copy link
Contributor

Since V2Module lookup was disabled my rk3399-gru-kevin chromebook can't find the UCM it's supposed to use. This adds a conf.d/rk3399-gru-soun/rk3399-gru-soun.conf symlink for it. The name is not a typo:

$ cat /proc/asound/cards
 0 [rk3399grusound ]: rk3399-gru-soun - rk3399-gru-sound
                      Unknown-UnknownProduct-

$ strace -e trace=file pulseaudio 2>&1 | grep -i ucm2
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/ucm.conf", R_OK) = 0
openat(AT_FDCWD, "/usr/share/alsa/ucm2/ucm.conf", O_RDONLY) = 16
openat(AT_FDCWD, "/usr/share/alsa/ucm2/lib/generic.conf", O_RDONLY) = 16
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/rk3399-gru-soun/Unknown-UnknownProduct-.conf", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/rk3399-gru-soun/rk3399-gru-soun.conf", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/ucm.conf", R_OK) = 0
openat(AT_FDCWD, "/usr/share/alsa/ucm2/ucm.conf", O_RDONLY) = 16
openat(AT_FDCWD, "/usr/share/alsa/ucm2/lib/generic.conf", O_RDONLY) = 16
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/rk3399-gru-soun/Unknown-UnknownProduct-.conf", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/rk3399-gru-soun/rk3399-gru-soun.conf", R_OK) = -1 ENOENT (No such file or directory)

(Ignore the Unknown-UnknownProduct-, that's because I'm using a custom unfinished U-Boot build. For more info there's an older alsa-info output I had uploaded)

Commit b0f6cdf ("ucm.conf: turn off support for V2Module and V2Name
by default") disabled looking up UCM configs via the kernel module
symlinks. The rk3399-gru-sound card doesn't have a conf.d symlink yet,
add one so that boards using it can find its UCM config again.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
@alpernebbi
Copy link
Contributor Author

I also grepped through the alsa-cardinfo db to see if I can find appropriate links for others in the modules folder, attaching a summary of what I found. I don't exactly know what should be done, but maybe it'd be useful to you.

@perexg perexg closed this in c261f5c Jun 13, 2022
@alpernebbi alpernebbi deleted the rk3399-gru-sound-confd branch June 13, 2022 15:32
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

1 participant