From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 17 09:50:40 2003 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 4865D16A4B3 for ; Fri, 17 Oct 2003 09:50:40 -0700 (PDT) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.5.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41DAF43FDD for ; Fri, 17 Oct 2003 09:50:39 -0700 (PDT) (envelope-from agapon@cv-nj.com) Received: from edge.foundation.invalid (ool-4355489e.dyn.optonline.net [67.85.72.158]) by mta8.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HMW00HNYUSDFW@mta8.srv.hcvlny.cv.net> for freebsd-multimedia@freebsd.org; Fri, 17 Oct 2003 12:50:38 -0400 (EDT) Received: from cv-nj.com (localhost.foundation.invalid [127.0.0.1]) h9HGob7Z032854 for ; Fri, 17 Oct 2003 12:50:37 -0400 (EDT envelope-from agapon@cv-nj.com) Date: Fri, 17 Oct 2003 12:50:36 -0400 From: Andriy Gapon To: freebsd-multimedia@freebsd.org Message-id: <3F901DDC.8010809@cv-nj.com> Organization: none MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en, uk, ru User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030701 Subject: full duplex problem 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: Fri, 17 Oct 2003 16:50:40 -0000 Maybe I misunderstand how full duplex is supposed to work, but I observe the following problem - when one application writes to /dev/dsp and then I start reading from the device with another application the playback becomes much slower, it's hard to say how much exactly, but definetly slower than half-speed. Another strange thing is that if I start the recording application first (it reads from the device in blocking mode) and then I start the playback application, the recording application would get EAGAIN (Resource temporarily unavailable) error, which is very surprising. A recording application can be as simple as `cat` in this case. My system/hardware/config: FreeBSD 4.8-RELEASE sbc0: at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0 sbc0: setting card to irq 5, drq 1, 5 pcm0: on sbc0 FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x220 irq 5 drq 1:5 bufsz 4096d (1p/1r/6v channels duplex) hw.snd.targetirqrate: 32 hw.snd.report_soft_formats: 1 hw.snd.verbose: 1 hw.snd.maxautovchans: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 6 I can not find any reports of problems with full duplex with SB hardware and FreeBSD since after circa 97, so I am a little bit puzzled. I will apprecite any ideas at what I might try to do or what I should read. -- Andriy Gapon