From owner-freebsd-bugs@FreeBSD.ORG Sun May 8 02:00:21 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FADA106568B for ; Sun, 8 May 2011 02:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 639518FC1A for ; Sun, 8 May 2011 02:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4820I3X003989 for ; Sun, 8 May 2011 02:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4820IP2003988; Sun, 8 May 2011 02:00:18 GMT (envelope-from gnats) Resent-Date: Sun, 8 May 2011 02:00:18 GMT Resent-Message-Id: <201105080200.p4820IP2003988@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gerald Pfeifer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C7521065670 for ; Sun, 8 May 2011 01:56:08 +0000 (UTC) (envelope-from pfeifer@sputnik1.dbai.tuwien.ac.at) Received: from sputnik1.dbai.tuwien.ac.at (sputnik1.dbai.tuwien.ac.at [128.131.111.141]) by mx1.freebsd.org (Postfix) with ESMTP id 106778FC0A for ; Sun, 8 May 2011 01:56:07 +0000 (UTC) Received: from sputnik1.dbai.tuwien.ac.at (localhost [127.0.0.1]) by sputnik1.dbai.tuwien.ac.at (8.14.4/8.14.4) with ESMTP id p481W89X092038; Sun, 8 May 2011 03:32:08 +0200 (CEST) (envelope-from pfeifer@sputnik1.dbai.tuwien.ac.at) Received: (from pfeifer@localhost) by sputnik1.dbai.tuwien.ac.at (8.14.4/8.14.4/Submit) id p481W7v2092037; Sun, 8 May 2011 03:32:07 +0200 (CEST) (envelope-from pfeifer) Message-Id: <201105080132.p481W7v2092037@sputnik1.dbai.tuwien.ac.at> Date: Sun, 8 May 2011 03:32:07 +0200 (CEST) From: Gerald Pfeifer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/156874: OSS lacks SNDCTL_DSP_HALT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2011 02:00:21 -0000 >Number: 156874 >Category: misc >Synopsis: OSS lacks SNDCTL_DSP_HALT >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 08 02:00:18 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: FreeBSD 8.2-RELEASE i386 >Organization: >Environment: System: FreeBSD sputnik1.dbai.tuwien.ac.at 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: When compiling current versions of Wine, I ran into the problem that FreeBSD does not feature SNDCTL_DSP_HALT in its OSS stack. The standard documentation at http://manuals.opensound.com/developer/SNDCTL_DSP_HALT.html notes that In the earlier OSS versions this ioctl call was called as SNDCTL_DSP_RESET. This name is still valid but for clarity reasons it is not recommended in new programs (designed for OSS 4.0 or later). Indeed FreeBSD features SNDCTL_DSP_RESET, so this should just be a matter of something like the patch below? (I'm a ports committer, not src, and cannot test/commit.) >How-To-Repeat: >Fix: Submitted by: gerald --- /usr/include/sys/soundcard.h 2011-04-17 18:48:28.000000000 +0200 +++ ./soundcard.h 2011-05-08 03:27:52.000000000 +0200 @@ -311,7 +311,8 @@ * IOCTL Commands for /dev/sequencer */ -#define SNDCTL_SEQ_RESET _IO ('Q', 0) +#define SNDCTL_SEQ_HALT _IO ('Q', 0) +#define SNDCTL_SEQ_RESET SNDCTL_SEQ_HALT /* Historic interface */ #define SNDCTL_SEQ_SYNC _IO ('Q', 1) #define SNDCTL_SYNTH_INFO _IOWR('Q', 2, struct synth_info) #define SNDCTL_SEQ_CTRLRATE _IOWR('Q', 3, int) /* Set/get timer res.(hz) */ >Release-Note: >Audit-Trail: >Unformatted: