From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 27 18:42:33 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C05CD16A4CE for ; Wed, 27 Apr 2005 18:42:33 +0000 (GMT) Received: from torrent.cc.mcgill.ca (torrent.cc.mcgill.ca [132.206.27.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50BE143D5C for ; Wed, 27 Apr 2005 18:42:33 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from mailscan1.cc.mcgill.ca (mailscan1.CC.McGill.CA [132.216.77.248])j3RIg6YM003846; Wed, 27 Apr 2005 14:42:10 -0400 Received: from cube.cnd.mcgill.ca (cube.CND.McGill.CA [132.216.25.196]) j3RIfjDe025846; Wed, 27 Apr 2005 14:41:46 -0400 (EDT) Received: from localhost.localdomain (acid.cnd.mcgill.ca [132.216.11.151]) by cube.cnd.mcgill.ca (8.12.11/8.12.11) with ESMTP id j3RIfXGW011102; Wed, 27 Apr 2005 14:41:33 -0400 Received: from localhost.localdomain (acid [127.0.0.1]) j3RIfW2M014200; Wed, 27 Apr 2005 14:41:32 -0400 Received: (from mat@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id j3RIfG4A014199; Wed, 27 Apr 2005 14:41:16 -0400 Date: Wed, 27 Apr 2005 14:41:15 -0400 From: Mathew Kanner To: Julian Elischer Message-ID: <20050427184115.GC11709@cnd.mcgill.ca> References: <20050306171027.GE4237@cnd.mcgill.ca> <20050306184416.5603976c@Magellan.Leidinger.net> <20050307030419.GC951@kt-is.co.kr> <20050308.121415.847025091.kazuhito@ph.noda.tus.ac.jp> <426F409D.6010007@elischer.org> <426F4280.9030206@elischer.org> <426F49C3.1020009@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426F49C3.1020009@elischer.org> User-Agent: Mutt/1.4.2i Organization: I speak for myself, operating in Montreal, CANADA cc: FreeBSD Multimedia cc: Alexander@Leidinger.net cc: mat@cnd.mcgill.ca Subject: Re: uaudio patch, X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 18:42:34 -0000 On Apr 27, Julian Elischer wrote: > Julian Elischer wrote: > >Julian Elischer wrote: > > > >>Kazuhito HONDA wrote: > >> > >>>Hello, > >>> > >>>From: Pyun YongHyeon > >>>Subject: Re: uaudio patch, configurable buffer size > >>>Date: Mon, 7 Mar 2005 12:04:19 +0900 > >>> > >>> > >>>>AFAIK, we already have format converter in kernel. > >>>>See feeder_fmt.c. The converter detects differences between hardware > >>>>capabilities and audio samples and automatically converts it(e.g. > >>>>big endian <->little endian, mono <-> stereo, signed <-> unsigned, > >>>>ulaw<->alow etc). > >>> > >>> > >>> > >>> > >>>Ah, I haven't found it for a long time. I tried to change the caps > >>>in uaudio_pcm.c, and a sampling rate can be converted correctly as > >>>you wrote. > >>> > >>>I'll challenge to use this converter in uaudio, too. > >>>If I or someone will succeed in it, I'll write to PR usb/78028 that > >>>it should be closed except applied. > >> > >> > >> > >>while I closed this, I have sort of changed my mind.. > >>this PR gives teh following result: > >> > >> At least they work and produce the following output: > >> ---snip--- > >> pcm0: at addr ? (1p/1r/0v channels duplex default) > >> playback: 2ch, 16/16bit, pcm, 44100Hz > >> playback: 2ch, 24/24bit, pcm, 44100Hz > >> playback: 4ch, 16/16bit, pcm, 44100Hz > >> playback: 4ch, 24/24bit, pcm, 44100Hz > >> playback: 6ch, 16/16bit, pcm, 44100Hz > >> playback: 6ch, 24/24bit, pcm, 44100Hz > >> playback: 2ch, 16/16bit, pcm, 48000Hz > >> playback: 2ch, 24/24bit, pcm, 48000Hz > >> playback: 4ch, 16/16bit, pcm, 48000Hz > >> playback: 4ch, 24/24bit, pcm, 48000Hz > >> playback: 6ch, 16/16bit, pcm, 48000Hz > >> playback: 6ch, 24/24bit, pcm, 48000Hz > >> playback: 2ch, 16/16bit, pcm, 96000Hz > >> playback: 2ch, 24/24bit, pcm, 96000Hz > >> recording: 2ch, 16/16bit, pcm, 44100Hz > >> recording: 2ch, 24/24bit, pcm, 44100Hz > >> recording: 2ch, 16/16bit, pcm, 48000Hz > >> recording: 2ch, 24/24bit, pcm, 48000Hz > >> recording: 2ch, 16/16bit, pcm, 96000Hz > >> recording: 2ch, 24/24bit, pcm, 96000Hz > >> > >> > >>I think this information is important and not available anywhere else. > >> > >>I tried applying it but it didn't work on top of Matt's last patch. > >>I'll have to try it with the unchanged version. This patch is no consistent with then rest of sound. You will notice that with my pending uaudio caps patch that I add this information in boot_verbose which is where it belongs. --Mat