diff options
| author | uwe <uwe@NetBSD.org> | 2002-03-12 06:00:42 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2002-03-12 06:00:42 +0000 |
| commit | 4b6b8f2e411577de0aedfe00633eef8145614386 (patch) | |
| tree | ae258f7b1b35292c47304a684cb27d324653d8ff /sys/dev/ebus | |
| parent | a0d389daa39f0bd2ec138e5815df901c61e0412d (diff) | |
Fix whitespace nits (oops).
Diffstat (limited to 'sys/dev/ebus')
| -rw-r--r-- | sys/dev/ebus/cs4231_ebus.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/sys/dev/ebus/cs4231_ebus.c b/sys/dev/ebus/cs4231_ebus.c index 8c67fed6e32..3c8696b864a 100644 --- a/sys/dev/ebus/cs4231_ebus.c +++ b/sys/dev/ebus/cs4231_ebus.c @@ -1,4 +1,4 @@ -/* $NetBSD: cs4231_ebus.c,v 1.1 2002/03/12 04:48:29 uwe Exp $ */ +/* $NetBSD: cs4231_ebus.c,v 1.2 2002/03/12 06:00:42 uwe Exp $ */ /* * Copyright (c) 2002 Valeriy E. Ushakov @@ -46,11 +46,9 @@ #include <dev/ic/ad1848var.h> #include <dev/ic/cs4231var.h> -#define AUDIO_ROM_NAME "sound" - #ifdef AUDIO_DEBUG int cs4231_ebus_debug = 0; -#define DPRINTF(x) if (cs4231_ebus_debug) printf x +#define DPRINTF(x) if (cs4231_ebus_debug) printf x #else #define DPRINTF(x) #endif @@ -105,7 +103,7 @@ struct audio_hw_if audiocs_ebus_hw_if = { cs4231_malloc, cs4231_free, cs4231_round_buffersize, - NULL, /* mappage */ + NULL, /* mappage */ cs4231_get_props, cs4231_ebus_trigger_output, cs4231_ebus_trigger_input, @@ -193,9 +191,9 @@ cs4231_ebus_attach(parent, self, aux) BUS_SPACE_MAP_LINEAR, (bus_space_handle_t *)&ebsc->sc_pdmareg) != 0) { - printf("%s: unable to map playback DMA registers\n", - self->dv_xname); - return; + printf("%s: unable to map playback DMA registers\n", + self->dv_xname); + return; } /* XXX: map capture DMA registers (we just know where they are) */ @@ -205,9 +203,9 @@ cs4231_ebus_attach(parent, self, aux) BUS_SPACE_MAP_LINEAR, (bus_space_handle_t *)&ebsc->sc_rdmareg) != 0) { - printf("%s: unable to map capture DMA registers\n", - self->dv_xname); - return; + printf("%s: unable to map capture DMA registers\n", + self->dv_xname); + return; } /* establish interrupt channels */ @@ -494,7 +492,7 @@ cs4231_ebus_intr(arg) if (status & INTERRUPT_STATUS) { #ifdef AUDIO_DEBUG - int reason; + int reason; reason = ad_read(&sc->sc_ad1848, CS_IRQ_STATUS); DPRINTF(("%s: i24: %s\n", sc->sc_ad1848.sc_dev.dv_xname, @@ -507,13 +505,13 @@ cs4231_ebus_intr(arg) ret = 0; if (cs4231_ebus_dma_intr(&sc->sc_capture, ebsc->sc_rdmareg)) { - ++sc->sc_intrcnt.ev_count; - ret = 1; + ++sc->sc_intrcnt.ev_count; + ret = 1; } if (cs4231_ebus_dma_intr(&sc->sc_playback, ebsc->sc_pdmareg)) { - ++sc->sc_intrcnt.ev_count; - ret = 1; + ++sc->sc_intrcnt.ev_count; + ret = 1; } return (ret); |
