Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jmcneill-audiomp3]: src/sys/arch/hpcmips/dev splaudio -> splvm
details: https://anonhg.NetBSD.org/src/rev/bee3a7e72522
branches: jmcneill-audiomp3
changeset: 771361:bee3a7e72522
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Nov 20 14:16:55 2011 +0000
description:
splaudio -> splvm
diffstat:
sys/arch/hpcmips/dev/ucbsnd.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 04b9a0ea1546 -r bee3a7e72522 sys/arch/hpcmips/dev/ucbsnd.c
--- a/sys/arch/hpcmips/dev/ucbsnd.c Sun Nov 20 14:13:25 2011 +0000
+++ b/sys/arch/hpcmips/dev/ucbsnd.c Sun Nov 20 14:16:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ucbsnd.c,v 1.19 2008/06/12 16:50:53 tsutsui Exp $ */
+/* $NetBSD: ucbsnd.c,v 1.19.32.1 2011/11/20 14:16:55 jmcneill Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucbsnd.c,v 1.19 2008/06/12 16:50:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucbsnd.c,v 1.19.32.1 2011/11/20 14:16:55 jmcneill Exp $");
#include "opt_use_poll.h"
@@ -522,7 +522,7 @@
if (sc == NULL)
return (ENXIO);
- s = splaudio();
+ s = splvm();
ringbuf_reset(&sc->sc_rb);
splx(s);
@@ -573,7 +573,7 @@
ringbuf_producer_return(&sc->sc_rb, bufsize);
- s = splaudio();
+ s = splvm();
if (sc->sa_state == UCBSND_IDLE && ringbuf_full(&sc->sc_rb)) {
sc->sa_transfer_mode = UCBSND_TRANSFERMODE_DMA;
sc->sa_state = UCBSND_INIT;
@@ -630,7 +630,7 @@
return (error);
errout:
printf("%s: timeout. reset ring-buffer.\n", sc->sc_dev.dv_xname);
- s = splaudio();
+ s = splvm();
ringbuf_reset(&sc->sc_rb);
splx(s);
@@ -705,7 +705,7 @@
u_int32_t ret;
int s;
- s = splaudio();
+ s = splvm();
ret = ringbuf_full(rb) ? 0 :
rb->rb_buf + rb->rb_inp * rb->rb_blksize;
splx(s);
@@ -720,7 +720,7 @@
assert(cnt <= rb->rb_blksize);
- s = splaudio();
+ s = splvm();
rb->rb_outp++;
rb->rb_bufcnt[rb->rb_inp] = cnt;
Home |
Main Index |
Thread Index |
Old Index