From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 9 02:27:27 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 49FB916A40F; Sat, 9 Sep 2006 02:27:27 +0000 (UTC) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FF5C43D45; Sat, 9 Sep 2006 02:27:25 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([211.3.217.199]) by t-mta7.odn.ne.jp with ESMTP id <20060909022721982.XPMW.402072.t-mta7.odn.ne.jp@mta7.odn.ne.jp>; Sat, 9 Sep 2006 11:27:21 +0900 Date: Sat, 09 Sep 2006 11:27:21 +0900 (JST) Message-Id: <20060909.112721.343191496.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.4.19 (Constant Variable) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 09 Sep 2006 03:10:32 +0000 Cc: freebsd-hackers@FreeBSD.org, ed@fxq.nl, multimedia@FreeBSD.org, kazuhito@ph.noda.tus.ac.jp Subject: 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: Sat, 09 Sep 2006 02:27:27 -0000 Hello, The subject of my previous mail includes `***SPAM***'. My spam filter struck this tag. I'll resend this mail since none read my previous mail. > 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