summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authormiko <miko@cvs.openbsd.org>2018-09-14 08:45:47 +0000
committermiko <miko@cvs.openbsd.org>2018-09-14 08:45:47 +0000
commit2d09188661f3572b182b4384b2a6af4aa4cab5eb (patch)
tree1150a84f190aba8c5a915c5f2db8d223a2510980 /sys/dev/pci
parent16119d5c3353f8dd21d1a3b409bc9f350dad7f27 (diff)
ansify auich_trigger_input() and remove #ifdef around DPRINTF(); ok ratchov@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/auich.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/pci/auich.c b/sys/dev/pci/auich.c
index 14345707179..a38fe99e45f 100644
--- a/sys/dev/pci/auich.c
+++ b/sys/dev/pci/auich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auich.c,v 1.108 2018/09/14 08:37:34 miko Exp $ */
+/* $OpenBSD: auich.c,v 1.109 2018/09/14 08:45:46 miko Exp $ */
/*
* Copyright (c) 2000,2001 Michael Shalayeff
@@ -1166,26 +1166,20 @@ auich_trigger_output(void *v, void *start, void *end, int blksize,
}
int
-auich_trigger_input(v, start, end, blksize, intr, arg, param)
- void *v;
- void *start, *end;
- int blksize;
- void (*intr)(void *);
- void *arg;
- struct audio_params *param;
+auich_trigger_input(void *v, void *start, void *end, int blksize,
+ void (*intr)(void *), void *arg, struct audio_params *param)
{
struct auich_softc *sc = v;
struct auich_dma *p;
size_t size;
-#ifdef AUICH_DEBUG
DPRINTF(AUICH_DEBUG_DMA,
("auich_trigger_input(%p, %p, %d, %p, %p, %p) sts=%b\n",
start, end, blksize, intr, arg, param,
bus_space_read_2(sc->iot, sc->aud_ioh,
AUICH_PCMI + sc->sc_sts_reg),
AUICH_ISTS_BITS));
-#endif
+
if (sc->sc_rdma->addr == start)
p = sc->sc_rdma;
else