diff options
| author | kent <kent@NetBSD.org> | 2007-03-09 13:20:12 +0000 |
|---|---|---|
| committer | kent <kent@NetBSD.org> | 2007-03-09 13:20:12 +0000 |
| commit | e893f67fa1fc5eecd7cf4b96f963a1c006f9691d (patch) | |
| tree | 6f136256338fb4717ece57c05930a99b3774ea60 /sys/dev | |
| parent | 4012c9304710da50443e8c1cba24abf75548b248 (diff) | |
return information about playing buffer, not recording bufer,
for AUDIO_WSEEK.
PR#35171
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 2e00a32fa2d..81cc5bed23f 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.220 2007/03/04 06:01:40 christos Exp $ */ +/* $NetBSD: audio.c,v 1.221 2007/03/09 13:20:12 kent Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.220 2007/03/04 06:01:40 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.221 2007/03/09 13:20:12 kent Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -2121,7 +2121,7 @@ audio_ioctl(struct audio_softc *sc, u_long cmd, void *addr, int flag, * sample of what we write next? */ case AUDIO_WSEEK: - *(u_long *)addr = audio_stream_get_used(sc->sc_rustream); + *(u_long *)addr = audio_stream_get_used(sc->sc_pustream); break; case AUDIO_SETINFO: |
