From nobody Sun Mar 30 17:48:57 2025 X-Original-To: ports-bugs@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 4ZQhZz0DhSz5rp4w for ; Sun, 30 Mar 2025 17:48:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZQhZx3LdWz3SHK for ; Sun, 30 Mar 2025 17:48:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743356937; 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=/SLU5KyKWUojzkQrakG/TGk6J81R0/vhRf2/sjbS4Qo=; b=S1qZsSTemm65oLzzJ/Iax27NRgIIwzvst6Q9sNx91OVsr7PrNWlFMHiBfaTiSj5fcuaoZA YRqZF2PlGELMGTuxDkJEnqHN45DwZsbnBvoGRwyhUn7UqNvLrM2nVOL8LSJ8d5dIWYxv0m 1yg91BIsga0NjT02c8/pxNGLlIxPAMl1nVB8WmRJ1RmcxkoNTLpDVCIpcwQOcEYLIDAFnf UV/q0miy7ub/8gjEKM498upbn688VyfsxfyCWoP2Z7fbrT4nyCJH4fjJ909C5CjOhL70Oe Un8NdETxurmoWHEaQKsfACjax6s8FwqUcS7vIVp1bBlyDIybfyJNDhLseVaqZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743356937; a=rsa-sha256; cv=none; b=TV/O164Q3M48lOU0h6gDh7ZEVmDqKpCa2o7nH3xm6f7h5TR7FA+UL0vscfxSpY5iMKiOlD SgNw1w8ofLBuozwYPRcza3zoSrkO9jrMLkA/T50/NOgxml+jTYA6OrW8zRccH13vmUkcTs vLqDEmOPX+YItBMDz8R8ecnTxrfXG3xTPmwzKbbsckINnaac6bfpKl0DURY3nz9rY2YGRf FB69ddOohd/W37NiiKQoTrLBJluD/Z5qWGMTMWOqdiMEAYZO7FJsjkhzQa2Oj+p8noE5h6 LwBaOZOaasE8wCmYWGbm9yQKCQqRzj1NnLVDrzZK+QGVGUwBQ3mODgY1l7KkDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743356937; 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=/SLU5KyKWUojzkQrakG/TGk6J81R0/vhRf2/sjbS4Qo=; b=OSfpBxnsbUX8pR0k0DXnCiwCEhwddeWxt6E2hc4YgLR6j8ZQLLWFz2168hooDmx+/4HAZo u3Hy62zPTc+NvSgH19ruVM/0HqlrE1ST2KcSJnm65gR0Xjxg59Jd343FDsXcjZhuifxwSM dv9U4L5IRVpWKEs8/RQa+gxPZ261DnLfRQWmwuDMk5DZ6BXSmHr+JEFNepeSTFsp8/15x+ uUIFi7awUR0w9wt2Z14bPr3KMiudGdvF2/6KWGQtvAc7W6LqHBI2gahqFQsEENV6siaE5U R5le5UWQwBel0VqfIgIrrFfYljTA+CN11epPAQM2XlLrQaWIczlxDDF3q7BCGA== 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 4ZQhZx2Bnpz1NhH for ; Sun, 30 Mar 2025 17:48:57 +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 52UHmvi3020007 for ; Sun, 30 Mar 2025 17:48:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52UHmv5K020006 for ports-bugs@FreeBSD.org; Sun, 30 Mar 2025 17:48:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280612] emulators/wine-devel: no sound then build with OSS and run x32 apps Date: Sun, 30 Mar 2025 17:48:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280612 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3De1bbaa71d62c8681a576f9f5bedf475c7= 541bd35 commit e1bbaa71d62c8681a576f9f5bedf475c7541bd35 Author: Christos Margiolis AuthorDate: 2025-03-30 17:45:38 +0000 Commit: Christos Margiolis CommitDate: 2025-03-30 17:45:38 +0000 sound: Implement AFMT_FLOAT support Even though the OSS manual [1] advises against using AFMT_FLOAT, there are applications that expect the sound driver to support it, and might not work properly without it. This patch adds AFMT_F32_LE|BE (as well as AFMT_FLOAT for OSS compatibility) in sys/soundcard.h and implements AFMT_F32_LE|BE <-> AFMT_S32_LE|BE conversion functions. As a result, applications can write/read floats to/from sound(4), but internally, because sound(4) works with integers, we convert floating point samples to integer ones, before doing any processing. The reason for encoding/decoding IEEE754s manually, instead of using fpu_kern(9), is that fpu_kern(9) is not supported by all architectures, and also introduces significant overhead. The IEEE754 encoding/decoding implementation has been written by Ariff Abdullah [2]. [1] http://manuals.opensound.com/developer/AFMT_FLOAT.html [2] https://people.freebsd.org/~ariff/utils/ieee754.c PR: 157050, 184380, 264973, 280612, 281390 Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D47638 sys/dev/sound/pcm/channel.c | 4 +++ sys/dev/sound/pcm/feeder_chain.c | 2 ++ sys/dev/sound/pcm/feeder_rate.c | 4 +++ sys/dev/sound/pcm/feeder_volume.c | 2 ++ sys/dev/sound/pcm/pcm.h | 67 +++++++++++++++++++++++++++++++++++= ++-- sys/dev/sound/pcm/sound.h | 13 +++++--- sys/sys/soundcard.h | 8 +++++ tests/sys/sound/pcm_read_write.c | 6 ++++ 8 files changed, 98 insertions(+), 8 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=