Module Name: src Committed By: jmcneill Date: Thu Jun 8 11:05:16 UTC 2017
Modified Files: src/sys/dev/ic: pl041.c Log Message: bus_space_write_multi_4 takes a count, not number of bytes. With this, audio works in qemu. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ic/pl041.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/pl041.c diff -u src/sys/dev/ic/pl041.c:1.2 src/sys/dev/ic/pl041.c:1.3 --- src/sys/dev/ic/pl041.c:1.2 Thu Jun 8 10:40:13 2017 +++ src/sys/dev/ic/pl041.c Thu Jun 8 11:05:16 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: pl041.c,v 1.2 2017/06/08 10:40:13 jmcneill Exp $ */ +/* $NetBSD: pl041.c,v 1.3 2017/06/08 11:05:16 jmcneill Exp $ */ /*- * Copyright (c) 2017 Jared McNeill <jmcne...@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pl041.c,v 1.2 2017/06/08 10:40:13 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pl041.c,v 1.3 2017/06/08 11:05:16 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -109,7 +109,7 @@ aaci_write_data(struct aaci_softc *sc) const int len = min(AACI_FIFO_DEPTH / 2, min(sc->sc_pblkresid, (uintptr_t)sc->sc_pend - (uintptr_t)sc->sc_pcur)); KASSERT((len & 3) == 0); - AACI_WRITE_MULTI(sc, AACIDR, sc->sc_pcur, len); + AACI_WRITE_MULTI(sc, AACIDR, sc->sc_pcur, len >> 2); sc->sc_pcur += (len >> 2); if (sc->sc_pcur == sc->sc_pend) sc->sc_pcur = sc->sc_pstart;