From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 23 08:50:14 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 CD0DC16A41F for ; Sun, 23 Oct 2005 08:50:14 +0000 (GMT) (envelope-from peo@intersonic.se) Received: from station.inter-sonic.com (station.inter-sonic.com [212.247.8.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A72543D48 for ; Sun, 23 Oct 2005 08:50:13 +0000 (GMT) (envelope-from peo@intersonic.se) Received: from localhost (localhost [127.0.0.1]) by station.inter-sonic.com (Postfix) with ESMTP id 21C602F1422; Sun, 23 Oct 2005 10:50:11 +0200 (CEST) Received: from chinacat.inter-sonic.com (ua-83-227-186-34.cust.bredbandsbolaget.se [83.227.186.34]) by station.inter-sonic.com (Postfix) with ESMTP id 599DD2F1421; Sun, 23 Oct 2005 10:50:08 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by chinacat.inter-sonic.com (Postfix) with ESMTP id 3A88817035; Sun, 23 Oct 2005 10:50:07 +0200 (CEST) Message-ID: <435B4EBE.5030502@intersonic.se> Date: Sun, 23 Oct 2005 10:50:06 +0200 From: Per olof Ljungmark User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051011) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ariff Abdullah References: <43575EBE.2010108@intersonic.se> <20051020113619.irjw1shmsgkc8k4o@netchild.homeip.net> <43578834.3040405@intersonic.se> <20051020214514.76551aac.skywizard@MyBSD.org.my> <4358CB6F.2080901@intersonic.se> <20051021235357.0c169e05.skywizard@MyBSD.org.my> In-Reply-To: <20051021235357.0c169e05.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at inter-sonic.com Cc: freebsd-multimedia@freebsd.org, Fabrice Grattier Subject: Re: uaudio and Digigram UAX220 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2005 08:50:15 -0000 > http://people.freebsd.org/~ariff/snd_RELENG_5_20051009_054.tar.gz > > tar -zxf snd_RELENG_5_20051009_054.tar.gz -C /usr/src/ > > Again, as I've stated in my previous post: > > Your entire playback channel goes haywire by not returning appropriate > sound format. Nothing can be done, even with this patch. Perhaps you > can try replacing all your /usr/src/sys/dev/sound/usb/ sources from > HEAD/CURRENT branch instead. So I recompiled the kernel using http://people.freebsd.org/~ariff/snd_RELENG_5_20051022_055.tar.gz and as you foresaw, it changed nothing. UAX220 works as a native USB Audio device under Win2k, XP, Linux and OS X. I found this statement in the manual for the adapter, perhaps relevant to the problem? I looked at digigram.com/drivers but saw nothing relevant contrary to the statement below, perhaps Fabrice could enlighten me? The manual only refers to Windows XPsp2 as OS so I assume with all others the adapter will report that it supports 48kHz only? ###### From UAX manual: UAX220 operates by default at an internal sample rate of 48 kHz. In case the files played back have a different sampling rate, the operating system performs a real-time frequency conversion. Under Windows XP (≥SP2) only, it is possible to modify the embedded firmware version of the UAX220 so that it accepts other internal sample rates: 8 kHz, 11.025 kHz, 16 kHz, 22.05 kHz, 24 kHz, 32 kHz, 44.1 kHz, 48 kHz. That makes it possible to work with files at e.g. 44.1 kHz without frequency conversion. To use this feature, please download the corresponding firmware update application at www.digigram.com/drivers/index.htm. In the ‘Firmware’ section, select ‘UAX220’. Read the instructions on how to use this application carefully. Attention: When using this firmware, UAX220 notifies Windows that it is able to manage sample rates from 8 through 48 kHz. Nevertheless, UAX220 uses internally the same sampling rate for recording and playback. This entails, that if an application plays a file at a given sample rate, and then another application is launched in parallel to record at another sampling rate, UAX220 will record at the sampling rate defined by the playback application, whereas the recording application assumes to work at another sampling rate. On the other hand, if a recording is already in hand at a certain frequency and a playback is launched at another frequency, the output will have the right frequency. To sum up, the audio stream being recorded or played back first imposes the sampling rate! With the firmware delivered by default, Windows detects that UAX220 supports only 48 kHz, and in consequence performs frequency conversions automatically when it detects that the frequency required by the application is different from 48 kHz.