Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Teufel CAGE PRO (2cc2:0033): HiFi profile rejected when dongle exposes only one playback PCM
       [not found] <18eac0c25a58d500-webhooks-bot@alsa-project.org>
@ 2026-11-23 18:42 ` GitHub issues - opened
  0 siblings, 0 replies; only message in thread
From: GitHub issues - opened @ 2026-11-23 18:42 UTC (permalink / raw)
  To: alsa-devel

alsa-project/alsa-ucm-conf issue #926 was opened from Zwslin:

## Summary

The UCM profile `USB-Audio/Teufel/CAGE-PRO-HiFi.conf` defines two playback devices:

- `Headset` ("Chat") → `hw:${CardId},0`
- `Headphones` ("Game") → `hw:${CardId},1`

The profile was added in #582 for a dongle with "two stereo outputs: one for game and one for chat". My dongle, however, exposes only **one** playback PCM (`hw:PRO,0`). Opening `hw:PRO,1` fails, so the whole `HiFi` verb is rejected. PipeWire/ACP then offers only the `off` profile, which means the headset can't be used at all without a workaround.

## Environment

- Distribution: CachyOS (Arch-based), kernel 7.3.5-2-cachyos
- alsa-ucm-conf 1.2.16.1-1
- pipewire 1.6.11-2, wireplumber 0.5.19-1.1
- Device: `2cc2:0033 Lautsprecher Teufel GmbH CAGE PRO` (USB strings: Manufacturer "MediaTek Inc", bcdDevice 1.00), wireless USB dongle, full speed

## Observed device layout

`/proc/asound/card2/stream0`:

```
MediaTek Inc CAGE PRO at usb-0000:00:14.0-1, full speed : USB Audio

Playback:
  Interface 1
    Altset 1: S16_LE, 2 ch, 48000/96000 Hz, EP 0x01 OUT (ADAPTIVE)
    Altset 2: S24_3LE, 2 ch, 48000/96000 Hz, EP 0x01 OUT (ADAPTIVE)

Capture:
  Interface 2
    Altset 1: S16_LE, 1 ch, 16000/48000 Hz, EP 0x81 IN (ADAPTIVE)
```

`lsusb -v` shows 4 interfaces: 0 = Audio Control, 1 = Streaming OUT (EP 0x01), 2 = Streaming IN (EP 0x81), 3 = HID. There is no second playback interface, so `aplay -l` lists only `card 2: PRO [CAGE PRO], device 0: USB Audio`.

## Probe output

`spa-acp-tool -c 2 -vv info`:

```
I       alsa-ucm.c:2567      Probing profile HiFi
I      alsa-util.c:724       ALSA device open '_ucm0001.hw:PRO,0' playback
I      alsa-util.c:721       Error opening PCM device _ucm0001.hw:PRO,1: No such file or directory
I       alsa-ucm.c:2591      Profile 'HiFi' mapping 'HiFi: Headphones: sink': output PCM open failed
I       alsa-ucm.c:2621      Profile HiFi not supported
```

## Possibly relevant: the dongle may switch layouts

When the dongle was plugged in, the kernel log showed a first enumeration that referenced additional interfaces/endpoints (including a second OUT endpoint `ep 0x2` on interface 3). The device then disconnected and re-enumerated immediately with the single-output layout shown above:

```
usb 3-1: 1:1: cannot get freq at ep 0x1
usb 3-1: 1:2: cannot get freq at ep 0x1
usb 3-1: 3:1: cannot get freq at ep 0x2
usb 3-1: USB disconnect, device number 6
usb 3-1: 4:1: cannot set freq 48000 to ep 0x81
...
usb 3-1: new full-speed USB device number 7 using xhci_hcd
usb 3-1: New USB device found, idVendor=2cc2, idProduct=0033, bcdDevice= 1.00
```

So the same USB ID seems to come up either with two playback PCMs (Chat + Game, which the current UCM file assumes) or with just one, depending on firmware, mode or timing. I don't know what triggers the switch.

## Workaround

Disabling UCM for this card makes the standard ACP profile set work: `analog-stereo` output plus `mono-fallback` input. Playback and the microphone both work fine.

`~/.config/wireplumber/wireplumber.conf.d/51-teufel-cage-pro.conf`:

```
monitor.alsa.rules = [
  {
    matches = [ { device.name = "alsa_card.usb-MediaTek_Inc_CAGE_PRO_0000000000000000-00" } ]
    actions = { update-props = { api.alsa.use-ucm = false } }
  }
]
```

## Suggested fix

Make the `Headphones`/"Game" device conditional on the second PCM being present, so that the profile still works with the single-PCM layout. One option might be an `If` block with `Type ControlExists` on the index-1 PCM playback control, which the file already references as `PCM,1` and which only exists in the two-PCM layout. I haven't tested this, so please choose whatever condition fits best.

I'm happy to test patches or provide more output (`alsa-info.sh`, full `lsusb -v`).

Issue URL     : https://github.com/alsa-project/alsa-ucm-conf/issues/926
Repository URL: https://github.com/alsa-project/alsa-ucm-conf

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <18eac0c25a58d500-webhooks-bot@alsa-project.org>
2026-11-23 18:42 ` Teufel CAGE PRO (2cc2:0033): HiFi profile rejected when dongle exposes only one playback PCM GitHub issues - opened

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox