usb/78028: The system must tell users information of a USB sound device.

Alexander Leidinger Alexander at Leidinger.net
Fri Feb 25 03:00:41 PST 2005


The following reply was made to PR usb/78028; it has been noted by GNATS.

From: Alexander Leidinger <Alexander at Leidinger.net>
To: Kazuhito HONDA <kazuhito at ph.noda.tus.ac.jp>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: usb/78028: The system must tell users information of a USB
	sound device.
Date: Fri, 25 Feb 2005 11:54:16 +0100

 Kazuhito HONDA <kazuhito at ph.noda.tus.ac.jp> wrote:
 >> Fix:
 > A patch below is applied to src/sys/dev/sound/usb/uaudio.c
 >
 > --- uaudio.c.orig	Thu Jan  6 10:43:22 2005
 > +++ uaudio.c	Fri Feb 25 00:00:22 2005
 > @@ -2054,7 +2054,7 @@
 > 		       USBDEVNAME(sc->sc_dev), format);
 > 		return (USBD_NORMAL_COMPLETION);
 > 	}
 > -#ifdef USB_DEBUG
 > +#if defined(USB_DEBUG) || defined(__FreeBSD__)
 > 	printf("%s: %s: %dch, %d/%dbit, %s,", USBDEVNAME(sc->sc_dev),
 > 	       dir == UE_DIR_IN ? "recording" : "playback",
 > 	       chan, prec, asf1d->bSubFrameSize * 8, format_str);
 
 Don't you think this information is better suited in the otput of
 /dev/sndstat?
 
 Bye,
 Alexander.
 
 -- 
 http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
 http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
 If you plan to leave your mark in the sands of time,
 you better wear work shoes.
 
 


More information about the freebsd-usb mailing list