]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
USB-Audio: Scarlett 18i20 fix ADAT capture channel count for Gen 1/2
authorDerek Keith <derek@codeurge.com>
Mon, 23 Mar 2026 11:11:58 +0000 (05:11 -0600)
committerJaroslav Kysela <perex@perex.cz>
Fri, 27 Mar 2026 13:56:44 +0000 (14:56 +0100)
commit17b48b1aa77401bbe084cad3dd17dd98ba676ad1
tree5d30bccb1c41a3ad85535105d684dd260e533ca0
parentfb35cbd82aa516af373b874af64a87af093e6328
USB-Audio: Scarlett 18i20 fix ADAT capture channel count for Gen 1/2

The Scarlett 18i20 Gen 1 (0x800c) and Gen 2 (0x8201) have 18 capture
channels, but the ADAT Optical Input device ("Direct 2") unconditionally
maps 8 channels (indices 12-19). Channel indices 18 and 19 exceed the
available capture channels, causing WirePlumber/PipeWire to reject the
UCM profile:

  spa.alsa: Error in ALSA UCM profile for _ucm0003.hw:USB,0 (Direct2):
    CaptureChannel6=18 >= CaptureChannels=18

Conditionally size the ADAT capture device based on DirectCaptureChannels:
- Gen 1/2 (18 channels): 6-channel ADAT (indices 12-17)
- Gen 3+ (20+ channels): 8-channel ADAT (indices 12-19)

Tested on a Scarlett 18i20 Gen 2 (USB1235:8201) running PipeWire 1.4
with WirePlumber on CachyOS.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/731
Signed-off-by: Derek Keith <derek@codeurge.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Focusrite/Scarlett-18i20-HiFi.conf