From owner-freebsd-questions@FreeBSD.ORG Sun Aug 17 22:10:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 921561065681 for ; Sun, 17 Aug 2008 22:10:02 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.213.67.47]) by mx1.freebsd.org (Postfix) with ESMTP id 621568FC16 for ; Sun, 17 Aug 2008 22:10:02 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (unknown [172.16.100.24]) by mail.barafranca.com (Postfix) with ESMTP id 49B07C74; Sun, 17 Aug 2008 21:56:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at barafranca.com Received: from mail.barafranca.com ([172.16.100.24]) by localhost (mail.barafranca.com [172.16.100.24]) (amavisd-new, port 10024) with ESMTP id LkaYah42taGK; Sun, 17 Aug 2008 21:55:51 +0000 (UTC) Received: from [192.168.1.65] (unknown [81.4.19.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTPSA id 35795C38; Sun, 17 Aug 2008 21:55:49 +0000 (UTC) Message-ID: <48A89E6E.2010805@barafranca.com> Date: Mon, 18 Aug 2008 00:55:58 +0300 From: Hugo Silva User-Agent: Thunderbird 2.0.0.9 (X11/20071213) MIME-Version: 1.0 References: <19021118.post@talk.nabble.com> In-Reply-To: <19021118.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jakub Lach , freebsd-questions@freebsd.org Subject: Re: Linux Wolfenstein Enemy Territory - no sound X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2008 22:10:02 -0000 Jakub Lach wrote: > Hello. > > I recently installed from ports (games/linux-enemyterritory). > At first it complained about missing X11 lib, and I concluded > that installing linux-xorg-libs should sort it out. I wass correct > (perhaps it should be added as dependency?). > > Running et it gives: > > ------- sound initialization ------- > /dev/dsp: Invalid argument > Could not mmap /dev/dsp > ------------------------------------ > > Apparently, it's common problem on Linux too. Simplest > solution reported to be working is: > > echo "et.x86 0 0 direct">/proc/asound/card0/pcm1p/oss > > So I think something like > > sysctl -w something.something="et.x86 0 0 direct" > > should work for me. > > Searching for device, I have found: > > sysctl -a | grep 'pcm' > dev.emu10kx.0._pcm_front_l: 100 > dev.emu10kx.0._pcm_front_r: 100 > dev.pcm.0.%desc: EMU10Kx DSP front PCM interface > dev.pcm.0.%driver: pcm > dev.pcm.0.%parent: emu10kx0 > dev.pcm.0.eapd: 1 > dev.pcm.0.play.vchans: 1 > dev.pcm.0.play.vchanrate: 48000 > dev.pcm.0.play.vchanformat: s16le > dev.pcm.0.rec.vchans: 1 > dev.pcm.0.rec.vchanrate: 48000 > dev.pcm.0.rec.vchanformat: s16le > dev.pcm.0.buffersize: 65536 > dev.pcm.1.%desc: EMU10Kx DSP rear PCM interface > dev.pcm.1.%driver: pcm > dev.pcm.1.%parent: emu10kx0 > dev.pcm.1.play.vchans: 1 > dev.pcm.1.play.vchanrate: 48000 > dev.pcm.1.play.vchanformat: s16le > dev.pcm.1.buffersize: 65536 > > and > > sysctl -a | grep 'oss' > compat.linux.oss_version: 198144 > > However, I don't have idea what to do next. > > Symlinking /dev/dsp/ to /dev/dsp0.0 or /dev/dsp1.0 > doesn't cut it. > > regards > > You need hw.snd.compat_linux_mmap=1 Happy frags :) Regards, Hugo