Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi h3_codec_pr_write: clear write mode bit a...



details:   https://anonhg.NetBSD.org/src/rev/2ba2c41ab28f
branches:  trunk
changeset: 825939:2ba2c41ab28f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Aug 07 21:50:34 2017 +0000

description:
h3_codec_pr_write: clear write mode bit after setting it; fixes an issue with output being mutex when skipping tracks in mpg123

diffstat:

 sys/arch/arm/sunxi/sun8i_h3_codec.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r d7bace22b535 -r 2ba2c41ab28f sys/arch/arm/sunxi/sun8i_h3_codec.c
--- a/sys/arch/arm/sunxi/sun8i_h3_codec.c       Mon Aug 07 17:31:11 2017 +0000
+++ b/sys/arch/arm/sunxi/sun8i_h3_codec.c       Mon Aug 07 21:50:34 2017 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
        /* 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



Home | Main Index | Thread Index | Old Index