Today the world upgrade packages were: Calculating dependencies... done! [ebuild U ] media-libs/alsa-topology-conf-1.2.5::gentoo [1.2.4::gentoo] 12 KiB [ebuild U ] media-libs/alsa-ucm-conf-1.2.5::gentoo [1.2.4::gentoo] 24 KiB [ebuild U ] dev-ruby/test-unit-3.4.2:2::gentoo [3.4.1:2::gentoo] USE="-doc -test" RUBY_TARGETS="ruby27 ruby30 -ruby25 -ruby26" 120 KiB [ebuild U ] sys-devel/gettext-0.21-r1::gentoo [0.21::gentoo] USE="acl cxx java ncurses nls openmp -cvs -doc -emacs -git -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild U ] media-libs/alsa-lib-1.2.5::gentoo [1.2.4::gentoo] USE="thread-safety -alisp -debug -doc -python" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_9 -python3_7 -python3_8" 1,044 KiB [ebuild U ] media-sound/alsa-utils-1.2.5:0.9::gentoo [1.2.4:0.9::gentoo] USE="libsamplerate ncurses nls -bat -doc (-selinux)" 1,296 KiB [ebuild U ] sys-fs/mtools-4.0.29::gentoo [4.0.28::gentoo] USE="X" 431 KiB [ebuild R ] dev-python/gmpy-2.1.0_beta5:2::gentoo USE="-doc (-mpir%)" PYTHON_TARGETS="python3_8 python3_9 -python3_10 -python3_7" 0 KiB [ebuild U ] media-libs/netpbm-10.86.22::gentoo [10.86.21::gentoo] USE="X jpeg png tiff xml zlib -doc -jbig -postscript -rle -static-libs (-svga)" CPU_FLAGS_X86="sse2" 3,610 KiB [ebuild U ] dev-perl/File-ShareDir-1.118.0::gentoo [1.116.0::gentoo] USE="-minimal -test" 29 KiB [ebuild U ] media-libs/ilmbase-2.5.6:0/25::gentoo [2.5.5:0/25::gentoo] USE="-large-stack -static-libs -test" ABI_X86="32 (64) (-x32)" 26,895 KiB [ebuild U ] dev-util/cppcheck-2.4.1::gentoo [2.2::gentoo] USE="pcre qt5 z3 -htmlreport" PYTHON_TARGETS="python3_8 python3_9* -python3_7*" 3,674 KiB [ebuild U ] media-libs/openexr-2.5.6:0/25::gentoo [2.5.5:0/25::gentoo] USE="-doc -examples -static-libs -test -utils" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="-avx" 26,895 KiB [ebuild U ] dev-lang/python-3.10.0_beta2:3.10::gentoo [3.10.0_beta1:3.10::gentoo] USE="bluetooth gdbm ncurses readline sqlite ssl tk xml -build -examples -hardened -ipv6 -test -verify-sig -wininst" 18,223 KiB [ebuild U ] www-client/firefox-bin-89.0:0/89::gentoo [88.0.1:0/88::gentoo] USE="alsa ffmpeg gmp-autoupdate -pulseaudio (-selinux) -wayland" L10N="ar -ach -af -an -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" 73,588 KiB [ebuild U ] dev-ruby/bundler-2.2.18:2::gentoo [2.2.17:2::gentoo] USE="doc -test" RUBY_TARGETS="ruby27 ruby30 -ruby25 -ruby26" 382 KiB Total: 16 packages (15 upgrades, 1 reinstall), Size of downloads: 156,217 KiB After installing the upgrade, I lost the audio playback. The audio playback was restored when I masked the new versions of media-libs/* and media-sound/* packages and then downgraded them to the previous versions =media-libs/alsa-topology-conf-1.2.5 =media-libs/alsa-ucm-conf-1.2.5 =media-libs/alsa-lib-1.2.5 =media-sound/alsa-utils-1.2.5 =media-libs/netpbm-10.86.22 =media-libs/ilmbase-2.5.6 =media-libs/openexr-2.5.6
Update: You need only to mask out two packages: =media-libs/alsa-lib-1.2.5 =media-sound/alsa-utils-1.2.5 These are the error messages after media-libs/alsa-lib-1.2.5 update: $ speaker-test speaker-test 1.2.4 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:855:(parse_card) cannot find card '0dmix:0' ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_card_id returned error: No such device ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5576:(snd_config_expand) Evaluate error: No such device ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM dmix:0dmix:0 Playback open error: -19,No such device
Please verify that with none of it masked, updated, you’ve restarted all applications (ideally just reboot)?
This is exactly what I have done: Full update with no masks and then reboot. Then I masked all the media packages and downgraded them. The sound worked. After this I removed one mask at a time until the sound problem happens again. The problem occurs only if media-libs/alsa-lib is upgraded to 1.2.5. media-sound/alsa-utils has dependency on media-libs/alsa-lib
Pretty much the same issue here after upgrading the following packages to 1.2.5: * media-libs/alsa-topology-conf * media-libs/alsa-ucm-conf * media-libs/alsa-lib * media-sound/alsa-utils My sound card is an Intel Skylake SOC.
Same here: speaker-test speaker-test 1.2.5 Playback device is default Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:855:(parse_card) cannot find card '0' ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5088:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/conf.c:5576:(snd_config_expand) Evaluate error: No such file or directory ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.5/work/alsa-lib-1.2.5/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default Playback open error: -2,No such file or directory
https://github.com/alsa-project/alsa-lib/issues/142
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7735de1b044ad7e978d833421c8608f41612f217 commit 7735de1b044ad7e978d833421c8608f41612f217 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-06-01 12:53:16 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-01 13:03:05 +0000 profiles: mask ALSA 1.2.5 for now Bug: https://bugs.gentoo.org/793410 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 9 +++++++++ 1 file changed, 9 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ace06b6381a8dd5e5d8a17319d34e710b77190 commit 02ace06b6381a8dd5e5d8a17319d34e710b77190 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-06-01 13:27:40 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-06-01 13:27:40 +0000 profiles: fix typo in ALSA 1.2.5 mask Fixes: 7735de1b044ad7e978d833421c8608f41612f217 Bug: https://bugs.gentoo.org/793410 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Restarting pulseaudio got things working for me killall -9 pulseaudio
(In reply to Mike Lothian from comment #9) > Restarting pulseaudio got things working for me > > killall -9 pulseaudio Same here with pipewire but the linked upstream bug indicates another issue with alsa-lib-1.2.5
hmm, reboot does not help? kill PA does? What about an extra logoff/login?
I'm not using pulseaudio. I think pulseaudio could be a different problem.
I don't use PulseAudio either and am affected. I saw a change in the snd_cards_limit etc file while downgrading, could this be related to having multiple devices connected (HDMI, DVI, etc)?
PA part should be fixed with this: https://github.com/alsa-project/alsa-lib/commit/ddfc32abf5697de1618b9e7ffdf57a0f97013090
One needs to restart PA though.
New alsa-lib will need a new pipewire release, see: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1251
pipewire-0.3.29 is out. alsa-lib-1.2.5 needs a patch though.
Indeed, I can confirm that with https://github.com/alsa-project/alsa-lib/commit/ddfc32abf5697de1618b9e7ffdf57a0f97013090.patch applied to alsa-lib-1.2.5 I can use pipewire 0.3.29 just fine (a restart of pipewire daemons was required of course).
Joakim, you seem to be most knowledgeable on this, so would you happen to know if we need any additional patches before unmasking alsa-lib 1.2.5 and associated packages?
(In reply to Niklāvs Koļesņikovs from comment #19) > Joakim, you seem to be most knowledgeable on this, so would you happen to > know if we need any additional patches before unmasking alsa-lib 1.2.5 and > associated packages? Saw you mentioning me in the PR :) Anyhow I think you need(in alsa-utils): https://github.com/alsa-project/alsa-utils/commit/78212445de4c8e07873cbc7dff2abcacd031f151 since that one was mentioned in the same bug report
looking deeper into what pipewire did (_alibpref) you want to have the two _alibpref commits too. I don't know if the other UCM related commits are tied to _alibpref as well.
Yes, I see what you mean, so pipewire 0.3.29 is optionally using alsa-lib functionality that's not in any release version - I really do not know how I feel about that. Let me have a think about that before deciding whether to include that. Personally I'd rather just ship a snapshot once upstream fixes look like they have calmed down rather than add a lot of patching on to what's supposed to be a known versioned release. ;)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a151fbb00ab4a8d9be82dc84a1c920a83777f52e commit a151fbb00ab4a8d9be82dc84a1c920a83777f52e Author: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> AuthorDate: 2021-06-03 19:02:32 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-06-05 20:09:16 +0000 media-libs/alsa-lib: updates to a snapshot for many important fixes This commit updates alsa-lib to a snapshot from June 4, 2021 containing a fix for missing HDMI audio profiles that many people reported across distributions. Also multiple fixes for possible crashes or worse. Thanks-to: Joakim Tjernlund <joakim.tjernlund@infinera.com> (HDMI issue) Thanks-to: Wim Taymans <wtaymans@redhat.com> (_alibpref clarification) Thanks-to: Jaroslav Kysela <perex@perex.cz> (Fedora patchset) Bug: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1251 Closes: https://bugs.gentoo.org/793410 Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> media-libs/alsa-lib/Manifest | 2 +- ...1.2.5.ebuild => alsa-lib-1.2.5_p20210604.ebuild} | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c458266658aadf51451562dd8fe14eeca1071cfc commit c458266658aadf51451562dd8fe14eeca1071cfc Author: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> AuthorDate: 2021-06-03 20:17:57 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-06-05 20:09:17 +0000 media-sound/alsa-utils: adds two likely relevant upstream patches Adds an upstream commit as a patch that according to Joakim Tjernlund accompanies the one we need to fix alsa-lib 1.2.5 missing many HDMI profiles. Additionally adds another patch that fixes a possible crash. Thanks-to: Joakim Tjernlund <joakim.tjernlund@infinera.com> Bug: https://bugs.gentoo.org/793410 Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> ...ils-1.2.5.ebuild => alsa-utils-1.2.5-r1.ebuild} | 2 + ....5-fix-potential-null-pointer-from-strchr.patch | 49 ++++++++++++++++++++++ ...alsa-utils-1.2.5-fix-the-nested-iteration.patch | 28 +++++++++++++ 3 files changed, 79 insertions(+)
Hey, everyone, as you can see a much improved ALSA userland 1.2.5 variant has now been added to the main Gentoo tree but because one of the people testing this encountered a still crashing application, it was decided to keep them masked for now, so that not everyone on ~testing was automatically opten-in to possibly still troubled release. However those feeling adventurous (or just need it), can edit package.unmask to include =media-libs/alsa-lib-1.2.5_p20210604 =media-libs/alsa-topology-conf-1.2.5 =media-libs/alsa-ucm-conf-1.2.5-r1 =media-plugins/alsa-plugins-1.2.5 =media-sound/alsa-utils-1.2.5-r1 and test out what's likely to be very similar to the rumored ALSA 1.2.5.1 that might be released "soon". Finally, I'd like to once more thank everyone involved in making these updated ebuilds possible which mostly includes people already covered by the commit messages that the bot posted to this thread, so I won't repeat myself, but I'd like to add to the list Sam James who worked with me in getting these ebuilds production ready as well as Lars Wendler who did the final checks, caught many mistakes made by me finally agreed to commit them to the main tree. Thanks everyone, let's hope ALSA 1.2.5 is off to a solid state now!