Bug 279787 - Can't select SPDIF input of USB sound card with 14.x
Summary: Can't select SPDIF input of USB sound card with 14.x
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 14.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-16 12:10 UTC by Felix J. Ogris
Modified: 2024-06-17 16:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix J. Ogris 2024-06-16 12:10:20 UTC
I am no longer able to select "pcm2" (which is SPDIF input on my USB sound card) nor "line2" as recording source on 14.1-R (nor 14.0-R). mixer(8) does not report these input sources anymore:

# mixer
pcm0:mixer: <vendor 0x0d8c USB Sound Device> on uaudio0 (play/rec) (default)
    vol       = 0.75:0.75     pbk
    pcm       = 0.75:0.75     pbk
    line      = 0.75:0.75     rec
    mic       = 0.25:0.25     rec src

Trying to set pcm as recsrc:

# mixer pcm.recsrc=set
mixer: pcm.recsrc=set: Operation not supported by device

usbconfig and /dev/sndstat:

# usbconfig 
...
ugen0.3: <CM106 Like Sound Device C-Media Electronics, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA)

# cat /dev/sndstat
Installed devices:
pcm0: <vendor 0x0d8c USB Sound Device> (play/rec) default
No devices installed from userspace.

I already tried setting usb quirk UQ_AU_SET_SPDIF_CM6206 during runtime and in loader.conf as suggested on the forum.
Various external USB sound cards from different vendors show that same behaviour.


On another host running 13.3 from memstick:

# mixer -h
usage: mixer [-f device] [-s | -S] [dev [+|-][voll[:[+|-]volr]] ...
       mixer [-f device] [-s | -S] recsrc ...
       mixer [-f device] [-s | -S] {^|+|-|=}rec rdev ...
 devices: vol, pcm, line, mic
 rec devices: line, mic, pcm2, line1
# mixer =rec pcm2
# mixer recsrc
Recording source: pcm2

# usbconfig
...
ugen0.10: <vendor 0x0d8c USB Sound Device> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA)

# cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC257 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC257 (Right Analog Mic)> (rec)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
pcm3: <USB audio> (play/rec)
No devices installed from userspace.

# sysctl hw.snd.default_unit
hw.snd.default_unit: 3