diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-07-06 04:25:29 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-07-06 04:25:29 +0000 |
commit | a7f27ca34d81c30f487b00145683c5601018bf96 (patch) | |
tree | 948a100b4212d88ea208dfcbd2725bd6845d3502 /sys/dev/audio.c | |
parent | d0405435b05a8691731e8a22aac30630fe9072f7 (diff) |
the AUDIO_WSEEK ioctl should return the number of bytes in the play
buffer, not the record buffer.
inspired by recent similar change in NetBSD.
"patches look correct to me" marc@
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r-- | sys/dev/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 263befa1533..c924fbf6114 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.58 2007/07/06 04:12:50 jakemsr Exp $ */ +/* $OpenBSD: audio.c,v 1.59 2007/07/06 04:25:28 jakemsr Exp $ */ /* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */ /* @@ -1723,7 +1723,7 @@ audio_ioctl(dev, cmd, addr, flag, p) * sample of what we write next? */ case AUDIO_WSEEK: - *(u_long *)addr = sc->sc_rr.used; + *(u_long *)addr = sc->sc_pr.used; break; case AUDIO_SETINFO: |