diff options
author | 2005-10-19 22:52:02 +0000 | |
---|---|---|
committer | 2005-10-19 22:52:02 +0000 | |
commit | c4d314ce18a6834b6c99e68038f2b81684c53bde (patch) | |
tree | 33c44531989b0e285f00c79258d6063675d28e32 /sys | |
parent | Changed poll to use kernel threads instead of in timer context (diff) | |
download | wireguard-openbsd-c4d314ce18a6834b6c99e68038f2b81684c53bde.tar.xz wireguard-openbsd-c4d314ce18a6834b6c99e68038f2b81684c53bde.zip |
make this compile with AUDIO_DEBUG; reported in tech@ by
Gordon Willem Klok (gklok at cogeco dot ca).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/gus.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index ff9e0ffef32..0673da05c23 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gus.c,v 1.27 2004/06/13 21:49:24 niklas Exp $ */ +/* $OpenBSD: gus.c,v 1.28 2005/10/19 22:52:02 fgsch Exp $ */ /* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */ /*- @@ -498,8 +498,8 @@ stereo_dmaintr(arg) dmarecords[dmarecord_index].bsdaddr = sa->buffer; dmarecords[dmarecord_index].count = sa->size; dmarecords[dmarecord_index].channel = 1; - dmarecords[dmarecord_index].direction = 1; - dmarecord_index = ++dmarecord_index % NDMARECS; + dmarecords[dmarecord_index++].direction = 1; + dmarecord_index = dmarecord_index % NDMARECS; } #endif @@ -592,8 +592,8 @@ gus_dma_output(addr, buf, size, intr, arg) dmarecords[dmarecord_index].bsdaddr = buffer; dmarecords[dmarecord_index].count = size; dmarecords[dmarecord_index].channel = 0; - dmarecords[dmarecord_index].direction = 1; - dmarecord_index = ++dmarecord_index % NDMARECS; + dmarecords[dmarecord_index++].direction = 1; + dmarecord_index = dmarecord_index % NDMARECS; } #endif @@ -893,8 +893,8 @@ gus_dmaout_dointr(sc) playstats[playcntr].playbuf = sc->sc_playbuf; playstats[playcntr].dmabuf = sc->sc_dmabuf; playstats[playcntr].bufcnt = sc->sc_bufcnt; - playstats[playcntr].curaddr = gus_get_curaddr(sc, GUS_VOICE_LEFT); - playcntr = ++playcntr % NDMARECS; + playstats[playcntr++].curaddr = gus_get_curaddr(sc, GUS_VOICE_LEFT); + playcntr = playcntr % NDMARECS; } #endif bus_space_write_1(iot, ioh2, GUS_VOICE_SELECT, GUS_VOICE_LEFT); @@ -1141,8 +1141,8 @@ gus_start_playing(sc, bufno) playstats[playcntr].playbuf = bufno; playstats[playcntr].dmabuf = sc->sc_dmabuf; playstats[playcntr].bufcnt = sc->sc_bufcnt; - playstats[playcntr].vaction = 5; - playcntr = ++playcntr % NDMARECS; + playstats[playcntr++].vaction = 5; + playcntr = playcntr % NDMARECS; } #endif @@ -1239,8 +1239,8 @@ gus_continue_playing(sc, voice) playstats[playcntr].endaddr = sc->sc_voc[voice].end_addr; playstats[playcntr].playbuf = sc->sc_playbuf; playstats[playcntr].dmabuf = sc->sc_dmabuf; - playstats[playcntr].bufcnt = sc->sc_bufcnt; - playcntr = ++playcntr % NDMARECS; + playstats[playcntr++].bufcnt = sc->sc_bufcnt; + playcntr = playcntr % NDMARECS; } #endif |