From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 06:06:59 2005 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A473E16A4CE; Tue, 11 Jan 2005 06:06:59 +0000 (GMT) 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 01A7443D1D; Tue, 11 Jan 2005 06:06:59 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (unknown [133.31.111.131]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id 262F04D8002; Tue, 11 Jan 2005 15:07:49 +0900 (JST) Date: Tue, 11 Jan 2005 15:06:56 +0900 (JST) Message-Id: <20050111.150656.521220515.kazuhito@ph.noda.tus.ac.jp> To: arved@freebsd.org From: Kazuhito HONDA In-Reply-To: <20041231122817.GT687@arved.at> References: <20041229105800.GS687@arved.at> <41D47F90.1080500@elischer.org> <20041231122817.GT687@arved.at> X-Mailer: Mew version 3.3 on XEmacs 21.5-b18 (chestnut) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: julian@elischer.org cc: freebsd-usb@freebsd.org Subject: Re: Latest uaudio commits break Logitech USB Headset X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 06:06:59 -0000 Hello. From: Tilman Linneweh Subject: Re: Latest uaudio commits break Logitech USB Headset Date: Fri, 31 Dec 2004 13:28:17 +0100 > * Julian Elischer [2004-12-30 23:22]: > > > > --- patch begins here --- > > --- src/sys/dev/sound/usb/uaudio_pcm.c.orig Sun Oct 31 02:56:01 2004 > > +++ src/sys/dev/sound/usb/uaudio_pcm.c Thu Dec 9 04:21:10 2004 > > > > @@ -58,7 +58,7 @@ > > > > static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; > > > > -#define UAUDIO_PCM_BUFF_SIZE 16*1024 > > +#define UAUDIO_PCM_BUFF_SIZE (16*1024-1) > > > > /************************************************************/ > > static void * > > --- patch ends here --- > > Thanks a lot! > Playback now works again. Please commit! Your headphone included your Logitech USB headset is 16-bit stereo, isn't it? If it's true, I'm afraid that left sound is heard from your right ear and right sound is from yuur left ear. Because my USB auduio device, Sound Blaster Digital Music is such. Would you please check it? If right and left are opposite, you have to change decrease quantity of UAUDIO_PCM_BUFF_SIZE. In the case of Sound Blaster Digital Music, the following was enough: -#define UAUDIO_PCM_BUFF_SIZE 16*1024 +#define UAUDIO_PCM_BUFF_SIZE (16*1024-4) ~~ > Recording, as far as I remember never worked with the device. > With CURRENT+your patch, recording results in a kernel panic: I can't redo panic in my USB audio, and I couldn't find Logitech USB headset in my electrical town. We may be able to get more information when USB_DEBUG is valid in uaudio.c, perhaps. In the first place, uaudio system of FreeBSD can't record and play simultaneously. To explain in detail, though it can record and play simultaneously, USB system become runaway when recording or playing is stopped. So I forbidden simultaneous use. Therefore, I regret that USB headsets can't be used as a headset. reagards, kazuhito HONDA kazuhito@ph.noda.tus.ac.jp