From: GitHub pull_request - edited <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: ucm2: USB-Audio: add Topping M62 configuration
Date: Sat, 3 Oct 2026 21:13:10 +0200 (CEST) [thread overview]
Message-ID: <18db1ad6ef076a00-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <alsa-project/alsa-ucm-conf/pr/826@alsa-project.org>
alsa-project/alsa-ucm-conf pull request #826 was edited from NTMan:
ucm2: USB-Audio: add Topping M62 configuration
The M62 exposes a single ten channel playback PCM and a single sixteen
channel capture PCM. The ten playback channels are not a surround
layout: they are five independent stereo buses that the card's own
mixer sums into its outputs, named Playback 1/2 to Playback 9/10 in the
manual.
The descriptor declares no channel positions at all -- bmChannelConfig
is 0x00000000 on both the ten channel and the sixteen channel terminal
-- so the kernel guesses. snd-usb-audio fills a missing channel config
with the standard surround order and publishes FL FR FC LFE RL RR FLC
FRC RC SL as a fixed channel map for the ten playback channels, in the
Playback Channel Map control and in the card's /proc stream file; the
sixteen capture channels are more than a channel map can hold and get
no map at all. Without a profile PipeWire leaves the guess unused and
hands out AUX0..AUX9; wherever the map is used, the desktop believes in
a centre, an LFE and a rear that the hardware does not have. Both
readings break more than cosmetics: with AUX names the balance control
and the speaker test have nothing to work with, with the guess they
work on speakers that do not exist, and either way any per device
equalisation carries ten channel keys where two are meant.
Each bus is therefore published as its own stereo device, split out of
the one PCM. Unless the kernel publishes the output selector described
below, the five are not marked conflicting: they may play at once,
which is the point of having five.
What the card does declare is channel NAMES. iChannelNames points at
"Playback 1" on the playback terminal and at "Analogue 1" on the
capture terminal, each the first of a consecutive run of string
descriptors, and the run reads Analogue 1, Analogue 2, AUX 1, AUX 2,
BT 1, BT 2, Mobile 1, Mobile 2 and Loopback 1 to 8. macOS displays
exactly those because Core Audio follows that field. Every name this
profile shows comes from there. Linux surfaces none
of it: ALSA carries channel positions through chmap and has no notion
of a channel name, so the host sees an anonymous sixteen and this
profile is where the names can live. The order was confirmed by
measurement as well, one column at a time -- feeding the microphone
input lights column 0, and a headphone to AUX loop lights columns 2
and 3.
The inputs are therefore described by the names the card's own panel
and control application use: IN 1, IN 2, AUX, BT and OTG IN. The
two microphone channels are named after the card's mic channels and not
after jacks, because IN 1 is switched on the card between its own
6.3 mm jack, the 3.5 mm jack and the headset jack; that switch lives in
the card's own panel and is not visible to the driver, so a jack name
would be a claim the configuration cannot back.
Those names live in each device's Comment; the device identifiers come
from the vocabulary use-case.h defines -- Mic1 and Mic2 for the two
microphone channels, Bluetooth for the Bluetooth input, and Line1 to
Line11 for the five playback buses, the AUX and OTG inputs and the four
loopback returns. PulseAudio and PipeWire take the leading alphabetic
part of an identifier and look it up in that same list to set the port
type, so a name outside it gives an untyped port.
The two microphone channels are offered as two mono devices and not
additionally as one stereo device covering both. A stereo pair would be
useful, since a balanced source arrives on both at once, but it can only
be declared as conflicting with the two halves, and alsa-lib treats a
conflict list as a group of mutually exclusive devices: it closes the
relation transitively, so a stereo device conflicting with each half
makes the two halves conflict with each other. Two microphones that work
perfectly well at the same time would then be offered only one at a
time, which is the worse loss. Expressing it the other way round, as
SupportedDevice, fails for the same reason: the closure fills the lists
until nothing excludes anything, and all three end up coexisting and
overwriting each other's preamp gain.
Bluetooth and Mobile carry audio, and all four inputs record at once: a
sixteen channel recording with a phone on Bluetooth and another on OTG
shows signal on the analogue, AUX, Bluetooth and Mobile columns
simultaneously.
The eight loopback returns arrive MUTED. Mic Capture Switch carries one
value per capture column and reads on for the first eight and off for
the rest, so columns 8 to 15 deliver digital silence until something
turns them on. That is why they look as though the loop never reaches
the USB stream, while the vendor's control panel meters it happily and
while the same card delivers those returns to a host whose software
turns the switch on. The verb turns all sixteen on, and the four
returns are then declared as stereo devices, below the physical inputs
in priority because a return is what the card is already playing rather
than something arriving from outside. The Direct verb unmutes them too:
it is where someone asks for all sixteen columns at once, so it is the
verb where silence on half of them misleads most.
The card's own faders are digital and sit after the converter, so
raising one lifts the converter's noise floor with the signal. The
analogue stages -- the two microphone preamps before the converter and
the headphone stage after it -- are reachable only over a vendor
protocol on the card's HID interface, and a kernel that speaks it
publishes them as ordinary mixer controls. Each device therefore picks
its volume with a ControlExists condition: where the analogue control
exists the device takes it and the verb pins the digital trim open,
since the two are in series and a fader over their product describes
neither; where it does not exist the device takes the trim, which is
what this profile did before. No particular kernel is required.
The analogue stage after the converter is a single headphone output,
and which of the ten channels reaches it is a choice inside the card;
the next paragraph is where that choice is made, and it is what lets a
playback device name that stage as its own.
Each output on this card listens to one source chosen inside it, and
where the kernel publishes that selector -- a control separate from the
headphone volume, so the two are conditioned separately -- the five
playback devices own it: they conflict with one another, and enabling
one points the headphone output at its own bus. That is what makes the
analogue headphone stage theirs -- the active device is the one the
output is listening to, so its volume is that stage and not the digital
trim. Two things follow. The five buses no longer play at once, which
they can do on this card, their sum reaching an output through one of
the card's internal mixes. And a headphone output left listening to such
a mix is moved to a single bus the first time a device is enabled, a
setting this profile cannot restore. Where the selector is not
published the five stay independent, each with its own trim.
The card keeps all ten playback channels in one mixer element and all
sixteen capture columns in another, so the per bus and per input
volumes come from a control remap by channel index, in the same shape
the Behringer UMC204HD profile uses.
The card has three operating modes, switched from its own panel, and
all three keep the same USB id. Mobile Mode is a plain stereo device;
its descriptor declares no positions either, but the kernel's guess,
FL FR in both directions, is right for two channels, so it needs no
profile, and applying this one to it would ask a two channel PCM for
ten.
The mode is encoded in the high byte of bcdDevice, 01xx Mobile, 02xx
Live Streaming, 03xx Pro Audio, so the profile is selected only for the
latter two. Live Streaming and Pro Audio have identical channel layouts
and differ only in the rates they offer, 44.1 and 48 kHz against those
plus 88.2 and 96 kHz.
The analogue controls and the output selector come from a kernel series
under review:
https://lore.kernel.org/all/20261003184217.34671-1-mikhail.v.gavrilov@gmail.com/
Tested on Fedora with alsa-lib 1.2.16 and PipeWire in all three modes:
in Live Streaming and Pro Audio the five sinks and the named sources
appear as expected, playback lands on the intended pair, each remapped
element moves only its own channels, and a sixteen column recording
confirms the input columns, the loopback returns among them once the
verb has unmuted them; in Mobile Mode the card is left to the generic
configuration.
Signed-off-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Attached alsa-info from all three modes. The `bcdDevice` value is what the profile keys on:
| Mode | bcdDevice | Playback | Capture | Rates (kHz) | Profile |
| --- | --- | --- | --- | --- | --- |
| [alsa-info-MobileMode.txt](https://github.com/user-attachments/files/30801211/alsa-info-MobileMode.txt) | 0145 | 2ch, FL FR | 2ch, FL FR | 44.1, 48 | not applied |
| [alsa-info-LiveStreamingMode.txt](https://github.com/user-attachments/files/30801208/alsa-info-LiveStreamingMode.txt)| 0248 | 10ch | 16ch | 44.1, 48 | applied |
| [alsa-info-ProAudioMode.txt](https://github.com/user-attachments/files/30801204/alsa-info-ProAudioMode.txt) | 0327 | 10ch | 16ch | 44.1, 48, 88.2, 96 | applied |
In all three modes the descriptor declares no channel positions: all ten `bmChannelConfig` fields in each file's `lsusb` section read `0x00000000`. The channel maps in the stream sections are the kernel's guess. In the two ten channel modes it is `FL FR FC LFE RL RR FLC FRC RC SL` for playback, which the hardware does not have -- those are five stereo buses -- and the sixteen channel capture gets no map. In Mobile Mode the same guess gives `FL FR` on both directions, which is right for a stereo device, and the card is left to the generic configuration.
Request URL : https://github.com/alsa-project/alsa-ucm-conf/pull/826
Patch URL : https://github.com/alsa-project/alsa-ucm-conf/pull/826.patch
Repository URL: https://github.com/alsa-project/alsa-ucm-conf
next prev parent reply other threads:[~2026-10-03 19:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alsa-project/alsa-ucm-conf/pr/826@alsa-project.org>
2026-08-06 19:02 ` ucm2: USB-Audio: add Topping M62 configuration GitHub pull_request - opened
2026-08-06 19:16 ` GitHub pull_request - edited
2026-08-06 19:22 ` GitHub pull_request - edited
2026-08-06 19:22 ` GitHub pull_request - edited
2026-08-07 8:57 ` GitHub pull_request - edited
2026-08-07 9:00 ` GitHub pull_request - edited
2026-08-11 12:29 ` GitHub pull_request - edited
2026-08-11 15:48 ` GitHub pull_request - edited
2026-08-20 22:01 ` GitHub pull_request - edited
2026-08-20 22:32 ` GitHub pull_request - edited
2026-08-23 14:40 ` GitHub pull_request - edited
2026-10-03 19:13 ` GitHub pull_request - edited [this message]
2026-10-13 8:44 ` GitHub pull_request - edited
2026-10-14 8:51 ` GitHub pull_request - edited
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18db1ad6ef076a00-webhooks-bot@alsa-project.org \
--to=github@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox