Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/audio Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/d6d19a7fafe4
branches:  netbsd-9
changeset: 458452:d6d19a7fafe4
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Oct 06 11:02:32 2019 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #286):

        sys/dev/audio/audio.c: revision 1.31

Tune some debug message level.
These messages are important for debugging hardware driver.

diffstat:

 sys/dev/audio/audio.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7631f63904b2 -r d6d19a7fafe4 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sun Oct 06 11:00:15 2019 +0000
+++ b/sys/dev/audio/audio.c     Sun Oct 06 11:02:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.28.2.2 2019/10/06 11:00:15 martin Exp $    */
+/*     $NetBSD: audio.c,v 1.28.2.3 2019/10/06 11:02:32 martin Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.2 2019/10/06 11:00:15 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.3 2019/10/06 11:02:32 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -4621,7 +4621,7 @@
                audio_params_t p = format2_to_params(&mixer->hwbuf.fmt);
                rounded = sc->hw_if->round_blocksize(sc->hw_hdl, blksize,
                    mode, &p);
-               TRACE(2, "round_blocksize %d -> %d", blksize, rounded);
+               TRACE(1, "round_blocksize %d -> %d", blksize, rounded);
                if (rounded != blksize) {
                        if ((rounded * NBBY) % (mixer->hwbuf.fmt.stride *
                            mixer->hwbuf.fmt.channels) != 0) {
@@ -4646,7 +4646,7 @@
                size_t rounded;
                rounded = sc->hw_if->round_buffersize(sc->hw_hdl, mode,
                    bufsize);
-               TRACE(2, "round_buffersize %zd -> %zd", bufsize, rounded);
+               TRACE(1, "round_buffersize %zd -> %zd", bufsize, rounded);
                if (rounded < bufsize) {
                        /* buffersize needs NBLKHW blocks at least. */
                        device_printf(sc->sc_dev,
@@ -4669,7 +4669,7 @@
                        capacity = mixer->frames_per_block * hwblks;
                }
        }
-       TRACE(2, "buffersize for %s = %zu",
+       TRACE(1, "buffersize for %s = %zu",
            (mode == AUMODE_PLAY) ? "playback" : "recording",
            bufsize);
        mixer->hwbuf.capacity = capacity;



Home | Main Index | Thread Index | Old Index