summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-02-13 22:49:06 +0000
committerjkh <jkh@FreeBSD.org>1995-02-13 22:49:06 +0000
commitab14a440443e93831ee428f1d1b624427878010f (patch)
tree3fc568af4b42ccb69382765a6b5d5743b0ae5baf /sys/i386/include
parent1a5b05c3c75abfbbd38a2349a215e7269f320915 (diff)
downloadFreeBSD-src-ab14a440443e93831ee428f1d1b624427878010f.zip
FreeBSD-src-ab14a440443e93831ee428f1d1b624427878010f.tar.gz
The following patches are for the sound drivers. These changes will
add a an ioctl call to set the transfer block size (SNDCTL_DSP_SETBLKSIZE) and add the select system call to the drivers. They also fix a problem with the #EXCLUDE macros for the PAS-16 card. Submitted by: Jim Lowe <james@blatz.cs.uwm.edu>
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/soundcard.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/include/soundcard.h b/sys/i386/include/soundcard.h
index cd93d11..5fb6dde 100644
--- a/sys/i386/include/soundcard.h
+++ b/sys/i386/include/soundcard.h
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: soundcard.h,v 1.9 1994/10/01 02:32:23 swallace Exp $
+ * $Id: soundcard.h,v 1.10 1994/11/14 14:13:13 bde Exp $
*/
/*
@@ -536,13 +536,14 @@ typedef struct {
#define SNDCTL_DSP_SYNC _IO ('P', 1)
#define SNDCTL_DSP_SPEED _IOWR('P', 2, int)
#define SNDCTL_DSP_STEREO _IOWR('P', 3, int)
-#define SNDCTL_DSP_GETBLKSIZE _IOWR('P', 4, int)
+#define SNDCTL_DSP_GETBLKSIZE _IOR('P', 4, int)
#define SNDCTL_DSP_SAMPLESIZE SNDCTL_DSP_SETFMT
#define SOUND_PCM_WRITE_CHANNELS _IOWR('P', 6, int)
#define SOUND_PCM_WRITE_FILTER _IOWR('P', 7, int)
#define SNDCTL_DSP_POST _IO ('P', 8)
#define SNDCTL_DSP_SUBDIVIDE _IOWR('P', 9, int)
#define SNDCTL_DSP_SETFRAGMENT _IOWR('P',10, int)
+#define SNDCTL_DSP_SETBLKSIZE _IOW('P', 4, int)
/* Audio data formats (Note! U8=8 and S16_LE=16 for compatibility) */
#define SNDCTL_DSP_GETFMTS _IOR ('P',11, int) /* Returns a mask */
@@ -573,6 +574,7 @@ typedef struct {
#define SOUND_PCM_SETFRAGMENT SNDCTL_DSP_SETFRAGMENT
#define SOUND_PCM_GETFMTS SNDCTL_DSP_GETFMTS
#define SOUND_PCM_SETFMT SNDCTL_DSP_SETFMT
+#define SOUND_PCM_SETBLKSIZE SNDCTL_DSP_SETBLKSIZE
/*********************************************
* IOCTL /dev/pss (experimental PSS API by marc.hoffman@analog.com.
OpenPOWER on IntegriCloud