Module Name:    src
Committed By:   isaki
Date:           Sun Apr 21 07:09:13 UTC 2019

Modified Files:
        src/sys/dev/ic [isaki-audio2]: arcofi.c

Log Message:
Oops, add accidentally dropped chunks.


To generate a diff of this commit:
cvs rdiff -u -r1.1.28.2 -r1.1.28.3 src/sys/dev/ic/arcofi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/arcofi.c
diff -u src/sys/dev/ic/arcofi.c:1.1.28.2 src/sys/dev/ic/arcofi.c:1.1.28.3
--- src/sys/dev/ic/arcofi.c:1.1.28.2	Sun Apr 21 06:55:34 2019
+++ src/sys/dev/ic/arcofi.c	Sun Apr 21 07:09:13 2019
@@ -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_cr3_to_portmask(uint, 
 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 @@ arcofi_start_output(void *v, void *wbuf,
 	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));

Reply via email to