Module Name: src
Committed By: jmcneill
Date: Mon Aug 7 21:50:34 UTC 2017
Modified Files:
src/sys/arch/arm/sunxi: sun8i_h3_codec.c
Log Message:
h3_codec_pr_write: clear write mode bit after setting it; fixes an issue with
output being mutex when skipping tracks in mpg123
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/sunxi/sun8i_h3_codec.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/arch/arm/sunxi/sun8i_h3_codec.c
diff -u src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.1 src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.2
--- src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.1 Sun Aug 6 17:15:45 2017
+++ src/sys/arch/arm/sunxi/sun8i_h3_codec.c Mon Aug 7 21:50:34 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i_h3_codec.c,v 1.1 2017/08/06 17:15:45 jmcneill Exp $ */
+/* $NetBSD: sun8i_h3_codec.c,v 1.2 2017/08/07 21:50:34 jmcneill Exp $ */
/*-
* Copyright (c) 2014-2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sun8i_h3_codec.c,v 1.1 2017/08/06 17:15:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sun8i_h3_codec.c,v 1.2 2017/08/07 21:50:34 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -194,6 +194,10 @@ h3_codec_pr_write(struct h3_codec_softc
/* Write mode */
val |= H3_AC_PR_RW;
WR4(csc, H3_PR_CFG, val);
+
+ /* Clear write mode */
+ val &= ~H3_AC_PR_RW;
+ WR4(csc, H3_PR_CFG, val);
}
static void