Skip to content

pine64-pinephone: fix audio with alsa-lib 1.2.7

Administrator requested to merge fix-pine64-audio into master

Let /usr/share/alsa/ucm2/conf.d/simple-card/*.conf be a symlink, as it is expected since alsa-lib 1.2.7.

Related: https://github.com/alsa-project/alsa-lib/commit/d6adde0e32376554e461098dcd7cfdb824fabd1e

strace of alsaucm reload without moving the config:

faccessat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf", R_OK) = 0
newfstatat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf", {st_mode=S_IFREG|0644, st_size=196, ...}, AT_SYMLINK_NOFOLLOW) = 0
mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffffbd38b000
readlinkat(AT_FDCWD, "/usr/share/alsa/ucm2/conf.d/simple-card/PinePhone.conf", 0xffffbd38b1b0, 4095) = -1 EINVAL (Invalid argument)
munmap(0xffffbd38b000, 16384)           = 0

The PBP needs a different fix, there the file has been moved to alsa-ucm-conf. Needs to be done in a separate patch, I need to go now.

fixes #1589 (closed) fixes #1552 (closed)

Edited by Administrator

Merge request reports

Loading