Summary: | audio/kmix: 23.08.{0,1,2,3,4} can't detect mixers [regression] | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Vladimir Druzenko <vvd> | ||||
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | ale, d8zNeCFG, dsh, jhale, js, kde, swills, vvd | ||||
Priority: | --- | Keywords: | regression | ||||
Version: | Latest | Flags: | jhale:
maintainer-feedback+
|
||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Vladimir Druzenko
![]() ![]() Same problem here. In the tray it shows a tooltip with "No mixer devices available". Same here. In addition, I use a setup without pulseaudio: x11/plasma5-plasma has PULSEAUDIO=off. -- Martin This is probably interesting: https://invent.kde.org/multimedia/kmix/-/blob/master/README.oss4?ref_type=heads If I just copy the following to /tmp [0]% ll /tmp/*mix* -rwxr-xr-x 1 root wheel 412368 17 Sep. 10:59 /tmp/kmix -rwxr-xr-x 1 root wheel 287648 7 Aug. 20:02 /tmp/libkmixcore.so.23.04.3 lrwxr-xr-x 1 root wheel 22 17 Sep. 11:01 /tmp/libkmixcore.so.5 -> libkmixcore.so.23.04.3 [0]% then I can start a functioning kmix using LD_LIBRARY_PATH=/tmp /tmp/kmix All the rest is KDE Gear 23.08.1 and latest ports, in general. Therefore, not much else besides kmix itself seems to be wrong. -- Martin Starting the old and the new kmix with stdout and stderr redirected to logfiles, and then diffing the logfiles, yields only a very small difference:
2,6d1
< org.kde.kmix: Mixer id was empty when creating DBUS path. Emergency code created the id= "OSS:::1"
< org.kde.kmix: Mixer id was empty when creating DBUS path. Emergency code created the id= "OSS:::1"
< org.kde.kmix: Mixer id was empty when creating DBUS path. Emergency code created the id= "OSS:::1"
< org.kde.kmix: Mixer id was empty when creating DBUS path. Emergency code created the id= "OSS:::1"
< org.kde.kmix: Mixer id was empty when creating DBUS path. Emergency code created the id= "OSS:::1"
7a3,4
> adding 1 mixers
> mixer "MPRIS2::Playback_Streams:1" "Flux pour applications"
-- Martin
(In reply to Martin Birgmeier from comment #4) To clarify the /tmp/kmix shown, it is the 23.04.3 version. Forgot to specify -p when copying it from the backup. -- Martin (In reply to Martin Birgmeier from comment #6) After read commit https://invent.kde.org/multimedia/kmix/-/commit/dbf2ddad I created this "hack" and it fixed (partially?) the issue: --- CMakeLists.txt.orig +++ CMakeLists.txt @@ -126,7 +126,7 @@ if (${TEST_COMPILE_RESULT} AND (${TEST_RUN_RESULT} EQUAL 0)) message(STATUS "Detected OSS version ${TEST_RESULT_VERSION}") - if (${TEST_RESULT_VERSION} GREATER_EQUAL 0x040000) + if (${TEST_RESULT_VERSION} GREATER_EQUAL 0x050000) message(STATUS "Building with OSS 4 support") set(HAVE_OSS_4 true) add_definitions(-DHAVE_OSS_4) So it detects OSS4, but it isn't compatible with OSS in FreeBSD and fallback to OSS3 is a possible temporary workaround. Same for 23.08.2 and my workaround work too. Created attachment 245894 [details] Port patch The OSS4 backend doesn't work on FreeBSD, it uses many IOCTL that are not supported, I don't think it can be patched to make it working, using OSS3 seems the right thing. kmix tries to use other backends first (ALSA for sure, PulseAudio optionally), but fallback to OSS if it cannot find a working mixer, that is what's happening. Jonathan Marten <jonathan.marten@kdemail.net> should be alerted about it: https://invent.kde.org/multimedia/kmix/-/blob/da4dff77f9db4fac5c8157472c45126751825a04/README.oss4 Anyway, my patch simply revert to the previous situation, disabling OSS4 unconditionally and enabling OSS3. Same for 23.08.3. Same for 23.08.4. ping A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=35b5dec477c73d1f3c81d00cdabd027c78040637 commit 35b5dec477c73d1f3c81d00cdabd027c78040637 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-01-10 00:11:27 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-01-10 00:18:22 +0000 audio/kmix: Fix OSS backend support PR: 273476 Reported by: vvd MFH: 2024Q1 audio/kmix/Makefile | 1 + audio/kmix/files/patch-CMakeLists.txt (new) | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) A commit in branch 2024Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=17292fe162db8385371feb6a5686db6882846d2d commit 17292fe162db8385371feb6a5686db6882846d2d Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2024-01-10 00:11:27 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2024-01-10 00:19:24 +0000 audio/kmix: Fix OSS backend support PR: 273476 Reported by: vvd MFH: 2024Q1 (cherry picked from commit 35b5dec477c73d1f3c81d00cdabd027c78040637) audio/kmix/Makefile | 1 + audio/kmix/files/patch-CMakeLists.txt (new) | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) Should be fixed now. (In reply to Jason E. Hale from comment #15) Thanks! Can you send patch to upstream? |