ucm2: Add config for Rockchip/rk3399-gru-sound
alsa-project/alsa-ucm-conf pull request #39 was opened from alpernebbi:
This is the internal card for a number of ChromeOS devices based on the Gru board. Config is taken from ChromeOS sources [1] and modified to mostly look like Rockchip/max98090. Tested on a Samsung Chromebook Plus (rk3399-gru-kevin) running Linux 5.7+.
[1] https://chromium.googlesource.com/chromiumos/overlays/board-overlays/+/75cf7...
Signed-off-by: Alper Nebi Yasak alpernebiyasak@gmail.com
---
I've tested this on a Debian installation (with alsa-lib version 1.2.2) meaning I had to put the two files to /usr/share/alsa/ucm2/rk3399-gru-sound/ instead of .../Rockchip/rk3399-gru-sound, so I hope the latter is a correct path for them with later versions.
All four devices work, but I couldn't get the Speaker/Headphones to play different things or the Mic/Headset to record simultaneously, so I marked those pairs as "ConflictingDevice"s. Without that, e.g. I see all devices in pulseaudio, but when I play two different audio files to Speaker/Headphones sinks I hear an alternating mix of both files on both devices; and both Mic/Headset sources end up recording only from the headset microphone in an alternating way.
Pulseaudio doesn't recognize the headset jack, but acpi_listen does report "jack/headphone HEADPHONE plug" events. I'll look into this more, my best guess now is that the kernel doesn't expose the jack in a way it should.
I also uploaded the alsa-info.sh output to cardinfo database: http://alsa-project.org/db/?f=9b4102975fa9c0f109af6ad687c856c620d76909
Request URL : https://github.com/alsa-project/alsa-ucm-conf/pull/39 Patch URL : https://github.com/alsa-project/alsa-ucm-conf/pull/39.patch Repository URL: https://github.com/alsa-project/alsa-ucm-conf
participants (1)
-
GitHub pull_request - opened