Date: Mon, 08 Jun 2026 12:05:16 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 295933] uaudio(4): idle capture stream clobbers active playback sample rate on devices with a shared UAC2 Clock Source - device unusable Message-ID: <bug-295933-227-rmSmWLlzCh@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-295933-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295933 --- Comment #1 from delleceste@gmail.com --- ## Appendix — raw evidence ### FreeBSD `dmesg` (with `hw.usb.uaudio.debug=15`), 44.1 kHz playback start ``` uaudio_configure_msg_sub: fps=8000 sample_rem=4100 # 44100 % 8000 = 4100 (playback) uaudio20_set_speed: ifaceno=0 clockid=41 speed=44100 uaudio20_set_speed: ifaceno=0 clockid=41 speed=48000 uaudio_configure_msg_sub: fps=8000 sample_rem=0 # 48000 % 8000 = 0 (capture default) uaudio_chan_play_sync_callback: Value = 0x0006000a uaudio_chan_play_sync_callback: Comparing 48001 Hz :: 44100 Hz ``` ### FreeBSD `sndstat` (`hw.snd.verbose=2`), 44.1 kHz playback ``` [dsp0.play.0]: spd 44100, fmt 0x00201000, flags 0x2000014c interrupts 3863, underruns 0, feed 3862, ready 119784 channel flags=0x2000014c<RUNNING,TRIGGERED,NBIO,BUSY,BITPERFECT> {userland} -> feeder_root(0x00201000) -> {hardware} [dsp0.record.0]: spd 48000, fmt 0x00200010/0x00201000, flags 0x00000000 ``` ### Linux `/proc/asound/card0/stream0` (same device, 44.1 family plays fine) ``` Playback: Status: Running Interface = 1, Altset = 1 Format: S32_LE, Channels: 2 Endpoint: 0x01 (1 OUT) (ASYNC) Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 Sync Endpoint: 0x81 (1 IN) # explicit Q16.16 feedback Capture: Status: Stop Interface 2 ... # capture interface present but idle ``` ### FreeBSD enumeration (single programmable clock feeds both directions) ``` uaudio0: Play[0]: 384000 / ... / 48000 / 44100 Hz, 2 ch, 32-bit S-LE PCM uaudio0: Record[0]: 384000 / ... / 48000 / 44100 Hz, 2 ch, 32-bit S-LE PCM ``` -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295933-227-rmSmWLlzCh>
