diff options
author | swallace <swallace@FreeBSD.org> | 1997-02-12 06:56:57 +0000 |
---|---|---|
committer | swallace <swallace@FreeBSD.org> | 1997-02-12 06:56:57 +0000 |
commit | 52a8abc65e6042c9504934b834e1d247bf3b63bb (patch) | |
tree | 109a19b1c518196a43e11ac7f9587526e9384a19 /sys/sys/soundcard.h | |
parent | 50f9d7b97882a3487ff9307ad84b5e6a30da89bc (diff) | |
download | FreeBSD-src-52a8abc65e6042c9504934b834e1d247bf3b63bb.zip FreeBSD-src-52a8abc65e6042c9504934b834e1d247bf3b63bb.tar.gz |
Bug fix for SNDCTL_DSP_GETOSPACE ioctl. It would report 0 bytes
available in buffer when buffer was completely empty.
It now correctly reports the total buffer space available.
Reviewed by: jkh, davidg
Obtained from: Linux 1.3.20's sound driver code
Diffstat (limited to 'sys/sys/soundcard.h')
-rw-r--r-- | sys/sys/soundcard.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/soundcard.h b/sys/sys/soundcard.h index a9c04ac..b19b190 100644 --- a/sys/sys/soundcard.h +++ b/sys/sys/soundcard.h @@ -577,6 +577,7 @@ typedef struct { */ typedef struct audio_buf_info { int fragments; /* # of available fragments (partially usend ones not counted) */ + int fragstotal; /* Total # of fragments allocated */ int fragsize; /* Size of a fragment in bytes */ int bytes; /* Available space in bytes (includes partially used fragments) */ |