1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768226252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oj74QgT9tvZeXlNqUoD2q0qNsdlmcCaKTPXGShkijkU=; b=bpj/cgmdgqevmzX8BXKWyE0SN1Vt2NAqUrGePCjoB5WwvNhkv38MmORRgY8krIbPaiijmU iUfcB1vP0JaBYn1EY+X32cU6jN1WVZzyYX5rbpfVBG/hKc5KTJos8QJzmxylhqx3PmEjGN a9FTEZkhpb1tgsBLwDlZTpgG8pEsKN0hO+zwXkpHDEUMSGfF3/1vfItLQE/ouU5V7xch2L x2ySn1JGQH8Hd0Q8l448rRI3/xS19Qu4rJbioexXPSwSVnuC82cG91RxWIJ03PCit+TvuF bWFpddAejLVyiac9DX/CfmXc7k+fxSxzn/uiImSdxQPoNyZZ+26B0LOQ1OLBdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768226252; a=rsa-sha256; cv=none; b=PVdYalX4D3rS1mcAdZ8SqIM9nSOVAfXuAMAy6YJnTJb505n52gS3yl7QwP7eC+np+RpP0a 0MgKpwMAkWpTrL40bEbLKS81MfjlWaE1x1GZbvWr8Av1i/dx+ccukOxclE39PGWpQDpO0Y tUAiFZ75rCLp+eiOjh37WYsC3RNvfQYggp/pokvLVH6HAznihDA5vgz/ZRITYAGABL37Y2 NjbVreQmJhCxSK9OqwbnjyUyqhyRBDZOVbADAsVkWCs5WJuQG8VcfBc4drzaqEJ5TSHVRa pOzN42jbnw/7vEvJ2sYubIfCZemyEINIJSpT3lzwa85QldhT0sGDiCdjNsnv0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dqYq03bJlzDRG for ; Mon, 12 Jan 2026 13:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 60CDvW1X064575 for ; Mon, 12 Jan 2026 13:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 60CDvWX4064574 for multimedia@FreeBSD.org; Mon, 12 Jan 2026 13:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: maintainer-feedback requested: [Bug 292403] multimedia/vlc: AFMT_FLOAT breaks OSS backend with virtual_oss Date: Mon, 12 Jan 2026 13:57:32 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@FreeBSD.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-multimedia (Nobody) for maintainer-feedback: Bug 292403: multimedia/vlc: AFMT_FLOAT breaks OSS backend with virtual_oss https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292403 --- Description --- When trying to play back audio files in VLC with the OSS backend, there is = no audio output to virtual_oss devices. I have tested the latest VLC port on 3 different systems with virtual_oss and noticed the same bug on all of them.= If virtual_oss is disabled, playback on physical sound devices works as usual. The following errors occur in an infinite loop: [0000000800c259e0] oss audio output error: cannot set audio format 0x100000= 00: Invalid argument [0000000800c259e0] main audio output error: module not functional [000000081da6f3e0] main decoder error: failed to create audio output On little-endian architectures, 0x10000000 corresponds to AFMT_FLOAT. Suppo= rt for AFMT_FLOAT was introduced in a recent commit (https://cgit.freebsd.org/src/commit/?id=3D1728d26682c65cb878971f55b4e87e24= d00505 24). EINVAL is being returned by an ioctl() on /dev/dsp with request SNDCTL_DSP_SETFMT. In the following kdump extract, /dev/dsp is the device created by virtual_oss: 58222 vlc CALL openat(AT_FDCWD,0x8091f3bcf,0x100001) 58222 vlc NAMI "/dev/dsp" 58222 vlc RET openat 58/0x3a 58222 vlc CALL ioctl(0x3a,SNDCTL_DSP_SETFMT,0x7fffddbe5c98) 58222 vlc RET ioctl -1 errno 22 Invalid argument Frankly, I am not sure whether to view this as a VLC bug or a virtual_oss o= ne; if it is the latter, I lack the competency to investigate it fully. Either = way, I have not encountered any other applications that are affected (audio in Firefox is fine, for instance). If we limit the scope to VLC, two solutions have worked for me: 1) building with Pulse backend (not entirely satisfactory, as OSS is still broken and Pulse is not a default option...); 2) the attached patch. What is the best way to proceed?