Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/isaki-audio2]: src/sys/dev/ic Oops, add accidentally dropped chunks.



details:   https://anonhg.NetBSD.org/src/rev/87fb94996e09
branches:  isaki-audio2
changeset: 455973:87fb94996e09
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun Apr 21 07:09:13 2019 +0000

description:
Oops, add accidentally dropped chunks.

diffstat:

 sys/dev/ic/arcofi.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 93c45d3e2f76 -r 87fb94996e09 sys/dev/ic/arcofi.c
--- a/sys/dev/ic/arcofi.c       Sun Apr 21 06:55:34 2019 +0000
+++ b/sys/dev/ic/arcofi.c       Sun Apr 21 07:09:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arcofi.c,v 1.1.28.2 2019/04/21 06:55:34 isaki Exp $    */
+/*     $NetBSD: arcofi.c,v 1.1.28.3 2019/04/21 07:09:13 isaki Exp $    */
 /*     $OpenBSD: arcofi.c,v 1.6 2013/05/15 08:29:24 ratchov Exp $      */
 
 /*
@@ -195,6 +195,8 @@
 static int     arcofi_gain_to_mi(uint);
 static uint    arcofi_mi_to_gain(int);
 static uint    arcofi_portmask_to_cr3(int);
+static int     arcofi_recv_data(struct arcofi_softc *);
+static int     arcofi_xmit_data(struct arcofi_softc *);
 
 static int     arcofi_open(void *, int);
 static void    arcofi_close(void *);
@@ -568,6 +570,9 @@
        sc->sc_xmit.cb = cb;
        sc->sc_xmit.cbarg = cbarg;
 
+       /* Fill FIFO */
+       arcofi_xmit_data(sc);
+
        /* enable output FIFO interrupts */
        arcofi_write(sc, ARCOFI_FIFO_IR, arcofi_read(sc, ARCOFI_FIFO_IR) |
            FIFO_IR_ENABLE(FIFO_IR_OUT_HALF_EMPTY));



Home | Main Index | Thread Index | Old Index