From owner-freebsd-usb@FreeBSD.ORG Thu Feb 24 16:00:59 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 855E116A4D0 for ; Thu, 24 Feb 2005 16:00:59 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E75643D78 for ; Thu, 24 Feb 2005 16:00:48 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1OG0lBC069387 for ; Thu, 24 Feb 2005 16:00:47 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1OG0lfI069385; Thu, 24 Feb 2005 16:00:47 GMT (envelope-from gnats) Resent-Date: Thu, 24 Feb 2005 16:00:47 GMT Resent-Message-Id: <200502241600.j1OG0lfI069385@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kazuhito HONDA Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3570316A4CE for ; Thu, 24 Feb 2005 15:56:35 +0000 (GMT) Received: from t-mta3.odn.ne.jp (mfep3.odn.ne.jp [143.90.131.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED27F43D39 for ; Thu, 24 Feb 2005 15:56:33 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([61.196.0.94]) by t-mta3.odn.ne.jp with ESMTP id <20050224155633025.NKOK.496069.t-mta3.odn.ne.jp@mta3.odn.ne.jp>; Fri, 25 Feb 2005 00:56:33 +0900 Message-Id: <20050225.005632.343192547.kazuhito@ph.noda.tus.ac.jp> Date: Fri, 25 Feb 2005 00:56:32 +0900 (JST) From: Kazuhito HONDA To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/78028: The system must tell users information of a USB sound device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Kazuhito HONDA List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 16:00:59 -0000 >Number: 78028 >Category: usb >Synopsis: The system must tell users information of a USB sound device. >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 24 16:00:47 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Kazuhito HONDA >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD kaoru 6.0-CURRENT FreeBSD 6.0-CURRENT #221: Tue Feb 22 17:57:42 JST 2005 root@kaoru:/usr/obj/src/sys/i386/compile/KAORU.6.0B.0 i386 >Description: Some USB audio devices have fixed sampling rates. So users must know sampling rates proper to them. Thus the system must teach the fixed samplig rates. >How-To-Repeat: >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); >Release-Note: >Audit-Trail: >Unformatted: