From 99c03c4382d8dc9ac6b011a94d01bc6eb062b2b4 Mon Sep 17 00:00:00 2001 From: augustss Date: Mon, 23 Mar 1998 00:39:18 +0000 Subject: [PATCH] Track mycroft's change in src/sys/compat/oss/ossaudio.c. --- lib/libossaudio/ossaudio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libossaudio/ossaudio.c b/lib/libossaudio/ossaudio.c index 098776b3d480..81fc9875bd00 100644 --- a/lib/libossaudio/ossaudio.c +++ b/lib/libossaudio/ossaudio.c @@ -1,4 +1,4 @@ -/* $NetBSD: ossaudio.c,v 1.4 1997/10/29 00:31:06 augustss Exp $ */ +/* $NetBSD: ossaudio.c,v 1.5 1998/03/23 00:39:18 augustss Exp $ */ /* * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -266,7 +266,7 @@ audio_ioctl(int fd, unsigned long com, void *argp) if ((idat & 0xffff) < 4 || (idat & 0xffff) > 17) return EINVAL; tmpinfo.blocksize = 1 << (idat & 0xffff); - tmpinfo.hiwat = (idat >> 16) & 0xffff; + tmpinfo.hiwat = (idat >> 16) & 0x7fff; if (tmpinfo.hiwat == 0) /* 0 means set to max */ tmpinfo.hiwat = 65536; (void) ioctl(fd, AUDIO_SETINFO, &tmpinfo); @@ -276,7 +276,7 @@ audio_ioctl(int fd, unsigned long com, void *argp) u = tmpinfo.blocksize; for(idat = 0; u; idat++, u >>= 1) ; - idat |= (tmpinfo.hiwat & 0xffff) << 16; + idat |= (tmpinfo.hiwat & 0x7fff) << 16; INTARG = idat; break; case SNDCTL_DSP_GETFMTS: