From owner-freebsd-multimedia@FreeBSD.ORG Thu Mar 3 10:58:56 2011 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 553C8106564A; Thu, 3 Mar 2011 10:58:56 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 5B67C8FC1B; Thu, 3 Mar 2011 10:58:54 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA07378; Thu, 03 Mar 2011 12:58:51 +0200 (EET) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Pv6F9-000JPH-IJ; Thu, 03 Mar 2011 12:58:51 +0200 Message-ID: <4D6F746A.1020507@freebsd.org> Date: Thu, 03 Mar 2011 12:58:50 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110302 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: Koop Mast References: <4D6E558B.5090706@freebsd.org> <1299109316.45274.34.camel@crashalot.rainbow-runner.nl> In-Reply-To: <1299109316.45274.34.camel@crashalot.rainbow-runner.nl> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org, multimedia@freebsd.org, mkbosmans@gmail.com Subject: Re: pulseaudio: module.c: module-detect is deprecated: Please use module-udev-detect instead of module-detect! 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, 03 Mar 2011 10:58:56 -0000 on 03/03/2011 01:41 Koop Mast said the following: > > Could you give this patch a try? It should get rid of the message. Just > put it in audio/pulseaudio/files. > > http://people.freebsd.org/~kwm/patch-src_modules_module-detect.c The patch works as expected. Thank you! BTW, I also found the following change necessary in my environment. Without it I can not record from full-duplex devices, only play through them. The problem seems to be that FreeBSD doesn't support the following usage pattern: open(/dev/dsp, O_RDWR); mmap(fd, PROT_READ); mmap(fd, PROT_WRITE); FreeBSD will only support writing in this case. FreeBSD requires two separate file descriptors to be opened: open(/dev/dsp, O_RDONLY); open(/dev/dsp, O_WRONLY); mmap(fd1, PROT_READ); mmap(fd2, PROT_WRITE); But implementing this approach would be a bigger change to the code. So it's easier to just disable mmap on FreeBSD. The obvious diff: --- src/modules/oss/module-oss.c.orig 2010-11-26 02:45:23.000000000 +0200 +++ src/modules/oss/module-oss.c 2011-03-03 12:35:33.578266715 +0200 @@ -1164,7 +1164,7 @@ int fd = -1; int nfrags, orig_frag_size, frag_size; int mode, caps; - pa_bool_t record = TRUE, playback = TRUE, use_mmap = TRUE; + pa_bool_t record = TRUE, playback = TRUE, use_mmap = FALSE; pa_sample_spec ss; pa_channel_map map; pa_modargs *ma = NULL; Last note. Each time I log into a KDE session I get the following message: pulseaudio[NNNN]: pid.c: Daemon already running. Looks like possibly some (minor) issue in automatic pulseaudio daemon startup? Thank you again! -- Andriy Gapon