Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Give uaudio its own debug flag.
details: https://anonhg.NetBSD.org/src/rev/1046ea81aba8
branches: trunk
changeset: 477173:1046ea81aba8
user: augustss <augustss%NetBSD.org@localhost>
date: Thu Oct 14 01:18:39 1999 +0000
description:
Give uaudio its own debug flag.
diffstat:
sys/dev/usb/uaudio.c | 20 ++++++++++----------
sys/dev/usb/usb_port.h | 3 ++-
2 files changed, 12 insertions(+), 11 deletions(-)
diffs (107 lines):
diff -r 997afeda148e -r 1046ea81aba8 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c Thu Oct 14 00:08:45 1999 +0000
+++ b/sys/dev/usb/uaudio.c Thu Oct 14 01:18:39 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.3 1999/10/13 20:13:29 augustss Exp $ */
+/* $NetBSD: uaudio.c,v 1.4 1999/10/14 01:18:40 augustss Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
#include <dev/usb/uaudioreg.h>
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
#define DPRINTF(x) if (uaudiodebug) logprintf x
#define DPRINTFN(n,x) if (uaudiodebug>(n)) logprintf x
int uaudiodebug = 0;
@@ -518,7 +518,7 @@
sc->sc_ctls[sc->sc_nctls++] = *mc;
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
if (uaudiodebug > 2) {
int i;
DPRINTF(("uaudio_mixer_add_ctl: wValue=%04x",mc->wValue[0]));
@@ -615,7 +615,7 @@
usb_descriptor_t *v;
usb_descriptor_t **dps;
{
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
struct usb_audio_input_terminal *d =
(struct usb_audio_input_terminal *)v;
@@ -634,7 +634,7 @@
usb_descriptor_t *v;
usb_descriptor_t **dps;
{
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
struct usb_audio_output_terminal *d =
(struct usb_audio_output_terminal *)v;
@@ -717,7 +717,7 @@
usb_descriptor_t *v;
usb_descriptor_t **dps;
{
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
struct usb_audio_selector_unit *d =
(struct usb_audio_selector_unit *)v;
@@ -859,7 +859,7 @@
usb_descriptor_t *v;
usb_descriptor_t **dps;
{
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
struct usb_audio_processing_unit *d =
(struct usb_audio_processing_unit *)v;
@@ -1463,7 +1463,7 @@
"wIndex=0x%04x len=%d, val=%d\n",
type, which, wValue, wIndex, len, val & 0xffff));
r = usbd_do_request(sc->sc_udev, &req, &data);
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
if (r != USBD_NORMAL_COMPLETION)
DPRINTF(("uaudio_set: r=%d\n", r));
#endif
@@ -1708,7 +1708,7 @@
return (r);
/* Some devices do not support this request, so ignore errors. */
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
r = uaudio_set_speed(sc, endpt, ch->sample_rate);
DPRINTF(("uaudio_chan_open: set_speed failed r=%s\n",
usbd_errstr(r)));
@@ -1823,7 +1823,7 @@
ch->cur += total;
}
-#ifdef USB_DEBUG
+#ifdef UAUDIO_DEBUG
if (uaudiodebug > 8) {
DPRINTF(("uaudio_chan_transfer: buffer=%p, residue=0.%03d\n",
cb->buffer, ch->residue));
diff -r 997afeda148e -r 1046ea81aba8 sys/dev/usb/usb_port.h
--- a/sys/dev/usb/usb_port.h Thu Oct 14 00:08:45 1999 +0000
+++ b/sys/dev/usb/usb_port.h Thu Oct 14 01:18:39 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_port.h,v 1.13 1999/10/13 08:10:58 augustss Exp $ */
+/* $NetBSD: usb_port.h,v 1.14 1999/10/14 01:18:39 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -56,6 +56,7 @@
#define UHCI_DEBUG 1
#define UHUB_DEBUG 1
#define ULPT_DEBUG 1
+#define UAUDIO_DEBUG 1
#endif
typedef struct device *device_ptr_t;
Home |
Main Index |
Thread Index |
Old Index