From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 8 12:52:53 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76DCD16A4DF; Fri, 8 Sep 2006 12:52:53 +0000 (UTC) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from phws.ph.noda.tus.ac.jp (phws.ph.noda.tus.ac.jp [133.31.102.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57C943D7D; Fri, 8 Sep 2006 12:52:50 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (localhost [127.0.0.1]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id EA81735C07D; Fri, 8 Sep 2006 21:52:48 +0900 (JST) Received: from phws.ph.noda.tus.ac.jp ([127.0.0.1]) by localhost (phws [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01498-07; Fri, 8 Sep 2006 21:52:48 +0900 (JST) Received: from localhost (noda-ph-24.rs.noda.tus.ac.jp [133.31.87.24]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id A49CE35C07B; Fri, 8 Sep 2006 21:52:48 +0900 (JST) Date: Fri, 08 Sep 2006 21:52:48 +0900 (JST) Message-Id: <20060908.215248.846936370.kazuhito@ph.noda.tus.ac.jp> To: Alexander@Leidinger.net From: Kazuhito HONDA In-Reply-To: <20060907142744.aazrsemxkwcok40w@webmail.leidinger.net> References: <20060907113820.GO22564@hoeg.nl> <20060907142744.aazrsemxkwcok40w@webmail.leidinger.net> X-Mailer: Mew version 3.3 on XEmacs 21.5-b22 (cucumber) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ph.noda.tus.ac.jp X-Mailman-Approved-At: Fri, 08 Sep 2006 13:10:45 +0000 Cc: freebsd-hackers@FreeBSD.org, ed@fxq.nl, multimedia@FreeBSD.org, kazuhito@ph.noda.tus.ac.jp Subject: Re: *****SPAM***** Re: Oddity in snd_uaudio(4) driver? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 12:52:53 -0000 Hello, > Quoting Ed Schouten (from Thu, 7 Sep 2006 13:38:20 +0200): > > > > If we would rewrite this code to something more basic, let's say we > > rename 'speed' to 'x' and the UA_SAMP_ macros to some predefined > > variables: > > > > | if (x >= 10 && x <= 20) { > > | ... > > | } else if (x < 10) { > > | ... > > | } else if (x < 20) { > > | ... > > | } > > In this example, UA_SAMP_ macros are exchanged to some constants. But UA_SAMP_ macros don't have any predefined constants. uaudio.c is a general driver for USB audio devices. Each USB audio device has peculiar sampling rates. They are different from those of another device. UA_SAMP_macros give the peculiar sampling rates. They can't be exchanged to some constants. From: Alexander Leidinger Subject: Re: Oddity in snd_uaudio(4) driver? Date: Thu, 07 Sep 2006 14:27:44 +0200 > I assume the last part is a > typo in the uaudio code and should be a '>' instead of a '<': That's right. Sincerely yours Kazuhito HONDA