From nobody Thu Feb 22 01:45:07 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TgGDY1pHrz5BY6D for ; Thu, 22 Feb 2024 01:45:17 +0000 (UTC) (envelope-from lexi@le-fay.org) Received: from thyme.eden.le-Fay.ORG (THYME.EDEN.LE-FAY.ORG [81.187.47.194]) by mx1.freebsd.org (Postfix) with ESMTP id 4TgGDX2lJgz4m9l; Thu, 22 Feb 2024 01:45:16 +0000 (UTC) (envelope-from lexi@le-fay.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=le-fay.org header.s=thyme header.b=WZSTKKwT; spf=pass (mx1.freebsd.org: domain of lexi@le-fay.org designates 81.187.47.194 as permitted sender) smtp.mailfrom=lexi@le-fay.org; dmarc=none Received: from iris.eden.le-Fay.ORG (IRIS.EDEN.LE-FAY.ORG [IPv6:2001:8b0:aab5:106:3::6]) by thyme.eden.le-Fay.ORG (Postfix) with ESMTP id 6F681AE; Thu, 22 Feb 2024 01:45:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=thyme; t=1708566305; bh=fCFwoz3yna0v89ke3V1MAA4XmO/JmL59wdm+V+rmng4=; h=Date:From:To:Cc:Subject; b=WZSTKKwTLmpnNzjgCtb6MGWwb1iZ5f70xRN3hFdeEo1qen2dOxt8nTWBT1op2OndU bd+bNKFIszcAm8LRSEPqIxDC3ncXjIrBn3jcmIPPNL1XEq8e+wOU6owfHUVYqYTWvf COUShJGFGo+8dILeuc1gSzxf+uSg/x/H0BrVneaU= Received: from ilythia.eden.le-fay.org (ILYTHIA.EDEN.LE-FAY.ORG [IPv6:2001:8b0:aab5:106:3::10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id 318552C041F; Thu, 22 Feb 2024 01:45:07 +0000 (GMT) Date: Thu, 22 Feb 2024 01:45:07 +0000 From: Lexi Winter To: freebsd-current@freebsd.org Cc: Florian Walpen , Christos Margiolis Subject: 42fdcd9fd917 broke my snd_uaudio(4) Message-ID: Mail-Followup-To: freebsd-current@freebsd.org, Florian Walpen , Christos Margiolis List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hdT9PEeTHIkxZCLx" Content-Disposition: inline X-Rspamd-Queue-Id: 4TgGDX2lJgz4m9l X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.50 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[le-fay.org:s=thyme]; R_SPF_ALLOW(-0.20)[+ip4:81.187.47.194]; RCVD_NO_TLS_LAST(0.10)[]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:20712, ipnet:81.187.0.0/16, country:GB]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[le-fay.org:dkim]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; DMARC_NA(0.00)[le-fay.org]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[le-fay.org:+] --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: at usbus3 uaudio0 on uhub1 uaudio0: 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: on uaudio0 (1p:0v/1r:0v) default snddev flags=0x3e6 [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 {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 {hardware} -> feeder_root(0x01401000) -> {userland} Installed devices from userspace: dsp.full: (play/rec) dsp.record: (play/rec) dsp: (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--