Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/rockchip Remove debug printfs



details:   https://anonhg.NetBSD.org/src/rev/0a261dfde522
branches:  trunk
changeset: 466873:0a261dfde522
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 04 13:54:04 2020 +0000

description:
Remove debug printfs

diffstat:

 sys/arch/arm/rockchip/rk_i2s.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r a2db8e48a4f5 -r 0a261dfde522 sys/arch/arm/rockchip/rk_i2s.c
--- a/sys/arch/arm/rockchip/rk_i2s.c    Sat Jan 04 13:32:32 2020 +0000
+++ b/sys/arch/arm/rockchip/rk_i2s.c    Sat Jan 04 13:54:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_i2s.c,v 1.1 2019/11/16 13:24:03 jmcneill Exp $ */
+/* $NetBSD: rk_i2s.c,v 1.2 2020/01/04 13:54:04 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_i2s.c,v 1.1 2019/11/16 13:24:03 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_i2s.c,v 1.2 2020/01/04 13:54:04 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -182,7 +182,6 @@
        ckr = RD4(sc, I2S_CKR);
        if ((ckr & CKR_MSS) == 0) {
                const u_int mclk_rate = clk_get_rate(sc->sc_clk);
-               device_printf(sc->sc_dev, "%s: sysclk rate %u Hz\n", __func__, mclk_rate);
                const u_int bclk_rate = 2 * 32 * RK_I2S_SAMPLE_RATE;
                const u_int bclk_div = mclk_rate / bclk_rate;
                const u_int lrck_div = bclk_rate / RK_I2S_SAMPLE_RATE;
@@ -430,7 +429,6 @@
        struct rk_i2s_softc * const sc = audio_dai_private(dai);
        int error;
 
-       device_printf(sc->sc_dev, "set sysclk %u Hz\n", rate);
        error = clk_set_rate(sc->sc_clk, rate);
        if (error != 0) {
                device_printf(sc->sc_dev, "failed to set sysclk to %u Hz: %d\n",



Home | Main Index | Thread Index | Old Index