From 3e669398ee0fb864285bd2900abacee6de8a4d19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 15 Oct 2026 03:08:55 +0200 Subject: [PATCH] USB-Audio: Steinberg UR22C, UR24C: apply the firmware channel count to Direct MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The firmware condition sets DirectCaptureChannels to 2 for firmware versions 01xx/02xx, but the Direct use case is created by a top-level Macro, which UCM evaluates before If blocks. So the Direct use case kept 4 capture channels on that firmware, while the HiFi use case (loaded later) got 2. Define the Direct use case inside the condition instead. With newer firmware the result is unchanged. Not tested on a UR22C or UR24C. It follows the same pattern as the UR44 change in #882, which was tested on the device, and was checked with alsaucm by evaluating both profiles on a UR44 whose bcdDevice (0212) matches the firmware condition. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/883 Signed-off-by: Petr Mrázek Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/Steinberg/UR22C.conf | 5 ++++- ucm2/USB-Audio/Steinberg/UR24C.conf | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ucm2/USB-Audio/Steinberg/UR22C.conf b/ucm2/USB-Audio/Steinberg/UR22C.conf index 990c8ca..b23c671 100644 --- a/ucm2/USB-Audio/Steinberg/UR22C.conf +++ b/ucm2/USB-Audio/Steinberg/UR22C.conf @@ -19,4 +19,7 @@ SectionUseCase."HiFi" { Include.dhw.File "/common/directm.conf" -Macro.0.DirectUseCase { Id="Direct" PlaybackChannels="${var:DirectPlaybackChannels}" CaptureChannels="${var:DirectCaptureChannels}" } +If.direct { + Condition { Type AlwaysTrue } + True.Macro.0.DirectUseCase { Id="Direct" PlaybackChannels="${var:DirectPlaybackChannels}" CaptureChannels="${var:DirectCaptureChannels}" } +} diff --git a/ucm2/USB-Audio/Steinberg/UR24C.conf b/ucm2/USB-Audio/Steinberg/UR24C.conf index becb69c..b9f84e9 100644 --- a/ucm2/USB-Audio/Steinberg/UR24C.conf +++ b/ucm2/USB-Audio/Steinberg/UR24C.conf @@ -19,4 +19,7 @@ SectionUseCase."HiFi" { Include.dhw.File "/common/directm.conf" -Macro.0.DirectUseCase { Id="Direct" PlaybackChannels="${var:DirectPlaybackChannels}" CaptureChannels="${var:DirectCaptureChannels}" } +If.direct { + Condition { Type AlwaysTrue } + True.Macro.0.DirectUseCase { Id="Direct" PlaybackChannels="${var:DirectPlaybackChannels}" CaptureChannels="${var:DirectCaptureChannels}" } +} -- 2.52.0