From e893f67fa1fc5eecd7cf4b96f963a1c006f9691d Mon Sep 17 00:00:00 2001 From: kent Date: Fri, 9 Mar 2007 13:20:12 +0000 Subject: [PATCH] return information about playing buffer, not recording bufer, for AUDIO_WSEEK. PR#35171 --- sys/dev/audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 2e00a32fa2d5..81cc5bed23fc 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 -__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: