From owner-freebsd-multimedia@FreeBSD.ORG Wed Feb 2 05:46:11 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 2AFD816A4CF for ; Wed, 2 Feb 2005 05:46:11 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D98643D2D for ; Wed, 2 Feb 2005 05:46:10 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id j125iaAh024017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 2 Feb 2005 14:44:37 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.13.1/8.13.1) with ESMTP id j125kFim009271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Feb 2005 14:46:15 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.13.1/8.13.1/Submit) id j125kCSN009270; Wed, 2 Feb 2005 14:46:12 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Wed, 2 Feb 2005 14:46:12 +0900 From: Pyun YongHyeon To: Kazuhito HONDA Message-ID: <20050202054612.GA8538@kt-is.co.kr> References: <20050201.025634.343191193.kazuhito@ph.noda.tus.ac.jp> <20050202.002449.343190992.kazuhito@ph.noda.tus.ac.jp> <200502011815.j11IFWkB004113@Mail.NOSPAM.DynDNS.dK> <20050202.125013.343181897.kazuhito@ph.noda.tus.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050202.125013.343181897.kazuhito@ph.noda.tus.ac.jp> User-Agent: Mutt/1.4.2.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: freebsd-multimedia@freebsd.org Subject: Re: Which USB-Soundcards work? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 05:46:11 -0000 On Wed, Feb 02, 2005 at 12:50:13PM +0900, Kazuhito HONDA wrote: > > > play channel supported format list invalid > > pcm1: chn_init(pcm1:play:0) failed: err = 19 > > pcm1: pcm_chn_create(ua_chan, 1, 0xc19f4a80) failed > > record channel supported format list invalid > > pcm1: chn_init(pcm1:record:0) failed: err = 19 > > pcm1: pcm_chn_create(ua_chan, -1, 0xc19f4a80) failed > > These look like the same problem as below: > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=246398+0+archive/2004/freebsd-usb/20041231.freebsd-usb > > If they are just same problems, It will be resolved by changing > UAUDIO_PCM_BUFF_SIZE definition to (16*1024)-4 in uaudio_pcm.c. > (if it is (18*1024)-1, sound right-left will be counterchanged.) > > This problem must come from maxsegz size > in the function bus_dma_tag_create() in uaudio_pcm.c > which is smaller than UAUDIO_PCM_BUFF_SIZE > and one digit smaller than maxsegzs of other audio devices. > Actually, this problem can be fixed by changing maxsegz > from 0x3fff to 0x3ffff. > But I don't know it has some reasons, > or it is a mere copy mistake. > I guess this is a bug. As you know DMA buffer should be less than the maxsegz. And if the USB device can handle DMA transferrs up to 0x3ffff bytes in a segment it's ok to set the value in bus_dma_tag_create(9). The value 0x3fff(16383) seems to be too small one and I believe most hardwares can DMA up to 64KB at least. So I guess it's an "copy & paste mistake". -- Regards, Pyun YongHyeon http://www.kr.freebsd.org/~yongari | yongari@freebsd.org