summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2001-10-24 12:40:54 +0000
committerCameron Grant <cg@FreeBSD.org>2001-10-24 12:40:54 +0000
commit16a33022e74ff0f06813f3b292d907d267ff803f (patch)
treef44fd44dc2666fbe2484e1627825dfa7c926ea76
parent8309fd9aef07f878996341c7bcbaa023f817f107 (diff)
Notes
-rw-r--r--sys/dev/sound/pcm/dsp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index fb731445e1be..d5a05d11990b 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -808,7 +808,7 @@ dsp_ioctl(dev_t i_dev, u_long cmd, caddr_t arg, int mode, struct thread *td)
}
break;
- case SNDCTL_DSP_GETISPACE: /* XXX Space for reading? Makes no sense... */
+ case SNDCTL_DSP_GETISPACE:
/* return the size of data available in the input queue */
{
audio_buf_info *a = (audio_buf_info *)arg;
@@ -816,8 +816,7 @@ dsp_ioctl(dev_t i_dev, u_long cmd, caddr_t arg, int mode, struct thread *td)
struct snd_dbuf *bs = rdch->bufsoft;
CHN_LOCK(rdch);
- chn_rdupdate(rdch);
- a->bytes = sndbuf_getfree(bs);
+ a->bytes = sndbuf_getready(bs);
a->fragments = a->bytes / sndbuf_getblksz(bs);
a->fragstotal = sndbuf_getblkcnt(bs);
a->fragsize = sndbuf_getblksz(bs);