Let you key a radio through a CM108 sound card's PTT line

Dire Wolf, Graywolf and others key a radio through a CM108-family sound
card (a Digirig, an AIOC) by setting a GPIO pin through its hidraw
device, which only root can open otherwise. Dire Wolf's own rule gives
it to the audio group, which most Arch users aren't in, and shouldn't
need to be. udev/70-hampack-cm108.rules tags those devices uaccess
instead, so whoever is at the desktop can use them, as they can the
sound card. It matches the devices Dire Wolf 1.8 treats as
CM108-compatible, and no other C-Media devices.

update.sh installs it in /etc/udev/rules.d when it changes, and reloads
and re-applies udev's rules; hampackremove removes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:54:42 -07:00
co-authored by Claude Opus 5.5
parent fee5ce341a
commit 5f15ff3821
10 changed files with 112 additions and 4 deletions
+17
View File
@@ -132,6 +132,23 @@ Dire Wolf, not1mm, QLog and POTACAT quit:
|------|--------|-------|---------|--------|---------|-----|--------|-----------|--------|------|---------|----------|-------|-------|
| | | | | | | | | | | | | | | |
## PTT through a CM108 sound card
With a Digirig, an AIOC or another CM108-family interface plugged in, after
`update` has installed `/etc/udev/rules.d/70-hampack-cm108.rules`:
1. `ls /dev/hidraw*` and `udevadm info /dev/hidrawN` find the interface's
hidraw device (its idVendor is 0d8c, 0c76 or 1209).
2. `getfacl /dev/hidrawN` gives you rw, through an ACL ("user:YOU:rw-"),
without being in the audio group.
3. Dire Wolf's `cm108` tool lists the device with "**" and you can run it
without sudo. With `PTT CM108` in direwolf.conf, a beacon keys the radio.
4. A C-Media USB headset that isn't CM108-compatible gets no ACL.
| Date | Commit | Interface | ACL | Keys the radio | Notes |
|------|--------|-----------|-----|----------------|-------|
| | | | | | |
## Pairing radios with sound cards
- Two radios plugged in at once: each gets its own sound card.