Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2024 01:45:07 +0000
From:      Lexi Winter <lexi@le-fay.org>
To:        freebsd-current@freebsd.org
Cc:        Florian Walpen <dev@submerge.ch>, Christos Margiolis <christos@freebsd.org>
Subject:   42fdcd9fd917 broke my snd_uaudio(4)
Message-ID:  <ZdanI-T75I67sAgR@ilythia.eden.le-fay.org>

next in thread | raw e-mail | index | archive | help

--hdT9PEeTHIkxZCLx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

hello,

since the commit:

42fdcd9fd917 snd_uaudio(4): Fix config detection with defaults set.

my snd_uaudio(4) no longer works.  the symptom is that applications
attempting to play audio hang forever, and no audio is produced.
reverting this commit fixed the problem.

the issue only occurs if i have this set in /boot/loader.conf:

hw.usb.uaudio.default_bits=32
hw.usb.uaudio.default_rate=48000

removing these two settings makes audio work correctly again.

my audio device:

ugen3.2: <Focusrite Scarlett 18i20 USB> at usbus3
uaudio0 on uhub1
uaudio0: <Focusrite Scarlett 18i20 USB, class 239/2, rev 2.00/6.6c, addr 1> on usbus3
uaudio0: Play[0]: 48000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 192000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 176400 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 96000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 88200 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 48000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 44100 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 48000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 192000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 176400 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 96000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 88200 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 48000 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 44100 Hz, 20 ch, 32-bit S-LE PCM format, 2x4ms buffer.
uaudio0: MIDI sequencer.
pcm0 on uaudio0
uaudio0: No HID volume keys found.

and /dev/sndstat:

FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <Focusrite Scarlett 18i20 USB> on uaudio0 (1p:0v/1r:0v) default
	snddev flags=0x3e6<AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,BITPERFECT,VPC>
	[pcm0:play:dsp0.p0]: spd 48000, fmt 0x01401000, flags 0x2000110c, 0x00000001, pid 22326 (virtual_oss)
	interrupts 115908, underruns 0, feed 115907, ready 123440 [b:30720/15360/2|bs:131040/65520/2]
	channel flags=0x2000110c<RUNNING,TRIGGERED,BUSY,HAS_SIZE,BITPERFECT>
	{userland} -> feeder_root(0x01401000) -> {hardware}
	[pcm0:record:dsp0.r0]: spd 48000, fmt 0x01401000, flags 0x2000112c, 0x00000001, pid 22326 (virtual_oss)
	interrupts 115930, overruns 97, feed 229796, hfree 30720, sfree 65440 [b:30720/15360/2|bs:65440/32720/2]
	channel flags=0x2000112c<RUNNING,TRIGGERED,SLEEPING,BUSY,HAS_SIZE,BITPERFECT>
	{hardware} -> feeder_root(0x01401000) -> {userland}
Installed devices from userspace:
dsp.full: <Virtual OSS> (play/rec)
dsp.record: <Virtual OSS> (play/rec)
dsp: <Virtual OSS> (play/rec)

	regards, lexi.

--hdT9PEeTHIkxZCLx
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmXWpx8ACgkQDHqbqZ41
x5nwEAv/foOVAXOsSKObnN3AAkyz6KN3ZxQIVVwk9cfDlpmBvA3lE2HkM4YqaD8b
9eNhsqJCZZayKTa5f89bM7XnCigMiPqd7OlUvqEMlPbBmcn+G00qdaPluReS99hG
BXTewZ855wpTdjo0bRNQXIAD9E+fjZB+foSiOEuUIotF0Nr3zzhddXM86iO/LacF
GfJ/bgZTrWEobnfHr3OipC91yFpkh8S6aKXOoQCjD//DsO3WMTvof4e1QF178GGw
At9Sk6UaLnHX5yAjCJPL9s7V/HMbdlUdJ0BNicPeg0JBuCygQZIHLVdggiqGMiSB
6Jo8DayfDUj5VqE391S1+BtoCOPxpnvm9T+n9dN6U6svqee9xBJkt7ab9pew6+P8
HsFqfQvKLOhVoSCmxx8fyKZvf5oCYgddrWpq2idJaSj/vcEazA9JZ9kbsbsrddhd
QPi6eU1067IVpSqARemW+HGlC1IgOwjZw5vSO6xZGOTodPkyiKxqA6EdZnxpo7i/
I2xnQC7Y
=i1Aj
-----END PGP SIGNATURE-----

--hdT9PEeTHIkxZCLx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZdanI-T75I67sAgR>