From owner-freebsd-multimedia@FreeBSD.ORG Thu Mar 30 01:14:15 2006 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 9C57916A400 for ; Thu, 30 Mar 2006 01:14:15 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86BAF43D45 for ; Thu, 30 Mar 2006 01:14:09 +0000 (GMT) (envelope-from grafan@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so220831wxc for ; Wed, 29 Mar 2006 17:14:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AW5gD6H4iHyNlPbaQLSWKgqp6xHBhV2CKcjJoAlZcgCj177ntBWTR++HM9ASt9pSdQKvZ9KRoy6PDTLUV/1rOMZNS05c7R1bHSbDmWmNYjJCE3/eKRSjTmS8m4nG3p004vfhatF3tC/56anxJGaLTPkP0HsarY87KhsBNNllIvU= Received: by 10.70.110.13 with SMTP id i13mr1857400wxc; Wed, 29 Mar 2006 17:14:08 -0800 (PST) Received: by 10.70.125.6 with HTTP; Wed, 29 Mar 2006 17:14:08 -0800 (PST) Message-ID: <6eb82e0603291714y3271eca5l927d15c177d7d61f@mail.gmail.com> Date: Wed, 29 Mar 2006 20:14:08 -0500 From: "Rong-En Fan" To: "Ariff Abdullah" In-Reply-To: <20060329133529.66e18afa.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6eb82e0603282051j65496dcbr536a2d6f6478e774@mail.gmail.com> <20060329133529.66e18afa.ariff@FreeBSD.org> Cc: freebsd-multimedia@freebsd.org Subject: Re: skype sound problem 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: Thu, 30 Mar 2006 01:14:15 -0000 On 3/29/06, Ariff Abdullah wrote: > On Tue, 28 Mar 2006 23:51:45 -0500 > "Rong-En Fan" wrote: > > Hi, > > > > When I use skype, just call anyone then hang up it. Then, the skype > > can not open the dsp device again. fstat shows that no process is > > opening /dev/dsp*. But, /dev/sndstat > > shows: > > [...] > > You may notice that pid 1004 is using record and dsp0.2, this > > process is skype_bin. > > If I close skype, /dev/sndstat still shows that pid 1004 occupies > > record channel and dsp0.2 (but ps shows that there is no pid 1004). > > Any ideas? > > > > I'm running -CURRENT around March 22 on i386. I dont think I have > > this problem in Feb or in Jan. I will try do a binary search later > > (In fact, I tried to boot with Feb > > 1's kernel, but got a panic about 'bad dir' :-(). > > > > This is a known issue (at least, for me). > > Update your src (at least for sys/dev/sound/pcm), and apply this > patch: > > http://people.freebsd.org/~ariff/test/sound.c.diff Hi, I have updated my -current to March 29, apply the patch above. However, it does not solve my problem. dmesg: pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xc0000c00-0xc0000dff,0xc0000800-0xc00008ff irq 11 at device 31.5 on pci0 pcm0: Reserved 0x200 bytes for rid 0x18 type 3 at 0xc0000c00 pcm0: Reserved 0x100 bytes for rid 0x1c type 3 at 0xc0000800 pcm0: [MPSAFE] pcm0: pcm0: Codec features headphone, 20 bit DAC, 5 bit master volume, no 3D Stereo Enhancement pcm0: Primary codec extended features variable rate PCM, AMAP, reserved 4 pcm0: ac97 codec dac ready count: 0 pcm0: sndbuf_setmap 1f109000, 4000; 0xd58e7000 -> 1f109000 pcm0: sndbuf_setmap 1f105000, 4000; 0xd58eb000 -> 1f105000 pcm0: measured ac97 link rate at 47994 Hz, will use 48000 Hz /etc/sysctl.conf hw.snd.pcm0.vchans=3D10 hw.snd.maxautovchans=3D10 (I tried put them in loader.conf, result is the same) I use modules for snd_ich and sound. Hope the information above might help. If you want more information from me, just let me know :) Thanks, Rong-En Fan