Wine games expecting 4 channel playback stream to handle
correctly audio and haptic channel arrangment.
Add direct use case and make it as first until
user selects another profile which may cause failure
for wine games.
For a permanent solution, wine should combine 4 channel
device from the sinks created using the channel split
mechanism or add pipewire protocol. In later case, the
the straight hardware device output ports should be used.
Link: https://github.com/alsa-project/alsa-ucm-conf/issues/677
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Comment "Sony Corp. DualSense wireless controller (PS5)"
-SectionUseCase."HiFi" {
+Include.dhw.File "/common/directm.conf"
+
+# keep this use case first - wine compatibility
+Macro.0.DirectUseCase { Id="Direct" PlaybackChannels=4 CaptureChannels=2 }
+
+If.default.Prepend.SectionUseCase."Default" {
Comment "Default"
File "/USB-Audio/Sony/DualSense-PS5-HiFi.conf"
}