Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2008 20:20:07 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Martin Laabs <martin.laabs@mailbox.tu-dresden.de>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/125542: audio/oss does not return propper SNDCTL_DSP_GETBLKSIZE size
Message-ID:  <200807142020.09115.jkim@FreeBSD.org>
In-Reply-To: <200807121600.m6CG0Hl1017996@freefall.freebsd.org>
References:  <200807121600.m6CG0Hl1017996@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is one of the incompatibilities between FreeBSD vs. OSS API.

soundcard.h from FreeBSD:

#define SNDCTL_DSP_GETBLKSIZE	_IOR('P', 4, int)

soundcard.h from OSS:

#define SNDCTL_DSP_GETBLKSIZE	__SIOWR('P', 4, int)

Note FreeBSD version is read-only and OSS version is not.  It seems 
OSS version is wrong but it is an obsolete API:

http://manuals.opensound.com/developer/SNDCTL_DSP_GETBLKSIZE.html

You have two choices here.  Compile your appliacations with 
include/soundcard.h from OSS distribution or use 
SNDCTL_DSP_GET[IO]SPACE as recommeneded in the manual.  The latter is 
obviously better choice and there is no incompatibility between the 
two versions.

Jung-uk Kim



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