Summary: | audio/oss does not return propper SNDCTL_DSP_GETBLKSIZE size | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Martin Laabs <martin.laabs> | ||||||
Component: | Individual Port(s) | Assignee: | Jung-uk Kim <jkim> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | ||||||||
Priority: | Normal | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Martin Laabs
2008-07-12 17:00:03 UTC
Responsible Changed From-To: freebsd-ports-bugs->jkim Over to maintainer (via the GNATS Auto Assign Tool) jkim 2008-07-15 16:36:13 UTC FreeBSD ports repository Modified files: audio/oss Makefile Added files: audio/oss/files patch-kernel-framework-audio-audio_core.c Log: Work around SNDCTL_DSP_GETBLKSIZE API incompatibility. PR: ports/125542 Revision Changes Path 1.26 +1 -0 ports/audio/oss/Makefile 1.1 +12 -0 ports/audio/oss/files/patch-kernel-framework-audio-audio_core.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" On Monday 14 July 2008 08:20 pm, Jung-uk Kim wrote: > 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. I just committed a fix. FYI, my test program is attached. Thanks for the report! Jung-uk Kim State Changed From-To: open->closed The fix was committed long ago. |