From owner-freebsd-current@FreeBSD.ORG Fri May 6 18:02:27 2011 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AB841065670 for ; Fri, 6 May 2011 18:02:27 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id CEF408FC0C for ; Fri, 6 May 2011 18:02:26 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id C63F51E002C7; Fri, 6 May 2011 19:45:01 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p46HgitM003848; Fri, 6 May 2011 19:42:44 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p46HgiFp003847; Fri, 6 May 2011 19:42:44 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 6 May 2011 19:42:44 +0200 To: Andriy Gapon Message-ID: <20110506174244.GA3644@triton8.kn-bremen.de> References: <4DC3B764.4030801@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DC3B764.4030801@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@FreeBSD.org, multimedia@FreeBSD.org Subject: Re: dsp mmap change X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2011 18:02:27 -0000 On Fri, May 06, 2011 at 11:55:00AM +0300, Andriy Gapon wrote: > > I would like to ask for a review and/or testing of the following patch: > http://people.freebsd.org/~avg/dev_dsp_mmap.diff > > It's supposed to fix an issue described here: > http://lists.freebsd.org/pipermail/freebsd-multimedia/2011-February/011691.html > > In short, the following pseudo-code should do the right thing: > fd = open(/dev/dsp, O_RDWR); > mmap(PROT_READ, fd); > mmap(PROT_WRITE, fd); > > Thank you! Working here with skype 2.1.0.81 and pulseaudio without (and also still with) disabline mmap for the mic. Very nice! :) Note: I had to disable the checkbox `Allow Skype to automatically adjust my mixer levels', else it records garbage at least with my mic. (that is one of a webcam.) Thanx, Juergen