[Bug 59557] New: mmdevapi: DualSense speaker and haptics broken since Wine 11.4
http://bugs.winehq.org/show_bug.cgi?id=59557 Bug ID: 59557 Summary: mmdevapi: DualSense speaker and haptics broken since Wine 11.4 Product: Wine Version: 11.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mmdevapi Assignee: wine-bugs@list.winehq.org Reporter: swimmy_j@outlook.com Distribution: --- Created attachment 80613 --> http://bugs.winehq.org/attachment.cgi?id=80613 Patch for File devenum.c My OS Arch Linux Kernel: 6.19.8-arch1-1 DE: Gnome 49(on wayland) Audio Service: PipeWire 1.6.2 Wine: 11.5-1 Game: Horizon Forbidden West https://store.epicgames.com/en-US/p/horizon-forbidden-west-complete-edition First of all, in january 2026, dualsense speaker & haptics(vibration) stopped working after alsa-ucm-conf upgrage to 1.2.15.1-1. My workground: # as root cd /usr/share/alsa/ucm2/USB-Audio/Sony/ mv DualSense-PS5.conf DualSense-PS5.__conf__ mv DualSense-PS5-HiFi.conf DualSense-PS5-HiFi.__conf__ # as normal user systemctl --user stop pipewire-pulse.{socket,service} systemctl --user stop pipewire.{socket,service} systemctl --user start pipewire.{socket,service} systemctl --user start pipewire-pulse.{socket,service} Then everything is ok. In march 2026, Wine upgraded to 11.4. I found that when aloy performed a forward roll without vibration(hatpics) on Horizon Forbidden West(EpicStore Version, referred to hfw, URL: https://store.epicgames.com/en-US/p/horizon-forbidden-west-complete-edition). on focus mode, the sound came from pc speaker, not dualsense speaker. at the same time, i noticed only 2 audio channels of hfw in gnome -> settings -> sound -> volume levels So, i rolled back to Wine 11.3, all issues disappeared. This week, Wine upgraded to 11.5, no help. Using WINEDEBUG and comparing the source code for wine-11.3, wine-11.4, and wine-11.5, finally, locked on the root cause of the issue: wine-11.5/dlls/mmdevapi/devenum.c Files(SHA256): 8274587fa89612adf904bdb2554dea84d718b84cf691cca9d2fb7d8d5d5d659b HorizonForbiddenWest.exe bbe42158cfdc673280971e00c9be820b05816c8f6a568b80ae7829c06c455e24 wine-11.3.tar.xz 1970a46381d3bc2c44d651d08336370e499eeb8b53dc93cbd1ce544f7115e598 wine-11.4.tar.xz 11370b57ea5d548a54d92c9cd65d0ba635f4f1c3eadace09ed1c419f705e19d1 wine-11.5.tar.xz 57a2d3083a9aa1457dd4657ea559cc3479a376b882aa1a5b2174a02726ef599a wine-11.3/dlls/mmdevapi/devenum.c 6f5079682cb3db6f34534e6f3a660672100818f3f06f7268d7797eb6f53d385e wine-11.4/dlls/mmdevapi/devenum.c 6f5079682cb3db6f34534e6f3a660672100818f3f06f7268d7797eb6f53d385e wine-11.5/dlls/mmdevapi/devenum.c After modifying source code, speaker and haptics feature of dualsense are back. It seems that Device_DeviceDesc can only be set to “Wireless Controller”. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59557 swimmy_j@outlook.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Distribution|--- |ArchLinux --- Comment #1 from swimmy_j@outlook.com --- additional information: DualSense: Speaker and Haptics features are only supported in wired mode. Adaptive Trigger and Gyroscope featuers are supported in wired/bluetooth mode. My build and replace file step: # as normal user cd ${BUILD_WINE}/wine-11.5 ./configure --enable-win64 --without-freetype cd dlls/mmdevapi cp --archive devenum.c backup.devenum.c vim devenum.c make clean make # as root user cd /usr/lib/wine/x86_64-windows/ mv mmdevapi.dll mmdevapi.dll.bug cp --archive ${BUILD_WINE}/wine-11.5/dlls/mmdevapi/x86_64-windows/mmdevapi.dll mmdevapi.dll.11.5 chown root:root mmdevapi.dll.11.5 chmod ugo+r mmdevapi.dll.11.5 ln --symbolic mmdevapi.dll.11.5 mmdevapi.dll # as normal user cd ${WINEPREFIX}/drive_c/windows/system32 mv mmdevapi.dll mmdevapi.dll.bug ln --symbolic /usr/lib/wine/x86_64-windows/mmdevapi.dll -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla