diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-17 07:29:05 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-09-17 07:29:05 +0000 |
commit | 5b23b35c9fbb526f2d34f69fe63d2f74c61f24f4 (patch) | |
tree | 73d453686f95571e8841f16b4b61b533edaf7c3f /sys/dev/ic | |
parent | 5cbd62cf6b3dc1e1ae806a8b535c2134f1f4c260 (diff) |
remove unused arcofi_drain() routine
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/arcofi.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/dev/ic/arcofi.c b/sys/dev/ic/arcofi.c index b24b62aa445..b93181e36ef 100644 --- a/sys/dev/ic/arcofi.c +++ b/sys/dev/ic/arcofi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcofi.c,v 1.14 2016/09/14 06:12:19 ratchov Exp $ */ +/* $OpenBSD: arcofi.c,v 1.15 2016/09/17 07:29:04 ratchov Exp $ */ /* * Copyright (c) 2011 Miodrag Vallat. @@ -195,7 +195,6 @@ int arcofi_set_param(struct arcofi_softc *, int, int, int, void arcofi_close(void *); int arcofi_commit_settings(void *); -int arcofi_drain(void *); int arcofi_getdev(void *, struct audio_device *); int arcofi_get_port(void *, mixer_ctrl_t *); int arcofi_get_props(void *); @@ -293,31 +292,6 @@ arcofi_close(void *v) sc->sc_open = 0; } -int -arcofi_drain(void *v) -{ - struct arcofi_softc *sc = (struct arcofi_softc *)v; - - mtx_enter(&audio_lock); - if ((arcofi_read(sc, ARCOFI_FIFO_SR) & FIFO_SR_OUT_EMPTY) == 0) { - /* enable output FIFO empty interrupt... */ - arcofi_write(sc, ARCOFI_FIFO_IR, - arcofi_read(sc, ARCOFI_FIFO_IR) | - FIFO_IR_ENABLE(FIFO_IR_OUT_EMPTY)); - /* ...and wait for it to fire */ - if (msleep(&sc->sc_xmit, &audio_lock, 0, "arcofidr", - 1 + (ARCOFI_FIFO_SIZE * hz) / 8000) != 0) { - printf("%s: drain did not complete\n", - sc->sc_dev.dv_xname); - arcofi_write(sc, ARCOFI_FIFO_IR, - arcofi_read(sc, ARCOFI_FIFO_IR) & - ~FIFO_IR_ENABLE(FIFO_IR_OUT_EMPTY)); - } - } - mtx_leave(&audio_lock); - return 0; -} - /* * Compute proper sample and hardware settings. Invoked both for record * and playback, as we don't support independent settings. |