From owner-freebsd-current@FreeBSD.ORG Sat Jun 9 19:18:30 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B40E16A46B for ; Sat, 9 Jun 2007 19:18:30 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.19.101.164]) by mx1.freebsd.org (Postfix) with ESMTP id 1B91713C4B0 for ; Sat, 9 Jun 2007 19:18:30 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (localhost [127.0.0.1]) by mail.barafranca.com (Postfix) with ESMTP id B2408C4BD4 for ; Sat, 9 Jun 2007 19:52:09 +0000 (UTC) Received: from mail.barafranca.com ([67.19.101.164]) by localhost (mail.barafranca.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48366-06 for ; Sat, 9 Jun 2007 19:51:33 +0000 (UTC) Received: from nexus.bsdlan.org (a213-22-26-49.cpe.netcabo.pt [213.22.26.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTP id 9F1CAC4C14 for ; Sat, 9 Jun 2007 19:51:32 +0000 (UTC) Message-ID: <466AFD29.7040108@barafranca.com> Date: Sat, 09 Jun 2007 20:19:05 +0100 From: Hugo Silva User-Agent: Thunderbird 2.0.0.0 (X11/20070609) MIME-Version: 1.0 To: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at barafranca.com X-Spam-Status: No, score=0 tagged_above=-1 required=4 tests=[none] X-Spam-Score: 0 X-Spam-Level: Cc: Subject: snd_es137x & -CURRENT, /dev/dsp: Invalid argument -- Could not mmap /dev/dsp - linux emulation problem? 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: Sat, 09 Jun 2007 19:18:30 -0000 Hi list, I am having some problems using my sound card while playing OpenGL games on 7.0-CURRENT. The same game (wolfenstein enemy territory) worked on 6.1-STABLE with the same sound cards, on a install I'm still keeping on another disk. p.s: sound works on everything else (amarok, cat /bin/ls > /dev/dsp, etc) that's not linux emulated. From the game: ... snip ... ----- finished R_Init ----- ------- sound initialization ------- /dev/dsp: Invalid argument Could not mmap /dev/dsp ............ truss output: ... snip ... linux_open("/dev/dsp",0x2,01) = 132 (0x84) linux_getuid(0x81586d0,0x2840cff4,0x1,0x2,0x81aad20) = 1001 (0x3e9) setresuid(0xffffffff,0x3e9,0xffffffff,0x2,0x2840cff4) = 0 (0x0) linux_ioctl(0x84,0x8004500f,0xbfbfe854,0x2,0x81aad20) = 0 (0x0) linux_ioctl(0x84,0x8004500b,0xbfbfe85c,0x2,0x81aad20) = 0 (0x0) linux_ioctl(0x84,0xc0045003,0xbfbfe858,0x2,0x81aad20) = 0 (0x0) linux_ioctl(0x84,0xc0045002,0x926d3b4,0x2,0x81aad20) = 0 (0x0) linux_ioctl(0x84,0xc0045005,0xbfbfe860,0x10,0x81aad20) = 0 (0x0) linux_ioctl(0x84,0x8010500c,0xbfbfe844,0x10,0x81aad20) = 0 (0x0) linux_mmap(0xbfbfe820,0x10000,0xbfbfe858,0x2,0x81aad20) ERR#22 'Invalid argument' write(2,"/dev/dsp: Invalid argument\n",27) = 27 (0x1b) write(2,"Could not mmap /dev/dsp\n",24) = 24 (0x18) ............. $ uname -a: FreeBSD nexus.bsdlan.org 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Jun 9 15:26:23 WEST 2007 klr@nexus.bsdlan.org:/usr/obj/usr/src/sys/NEXUS i386 soundcards: pcm0: port 0xb400-0xb43f irq 17 at device 9.0 on pci1 pcm0: pcm0: [ITHREAD] pcm0: pcm1: port 0xb800-0xb83f irq 21 at device 10.0 on pci1 pcm1: pcm1: [ITHREAD] pcm1: $ sysctl -a | egrep '(snd|pcm|sound)': hw.snd.latency_profile: 1 hw.snd.latency: 5 hw.snd.report_soft_formats: 1 hw.snd.feeder_buffersize: 16384 hw.snd.feeder_rate_round: 25 hw.snd.feeder_rate_max: 2016000 hw.snd.feeder_rate_min: 1 hw.snd.verbose: 1 hw.snd.maxautovchans: 16 hw.snd.default_unit: 0 hw.snd.version: 2007060100/i386 dev.pcm.0.%desc: Creative CT5880-C dev.pcm.0.%driver: pcm dev.pcm.0.%location: slot=9 function=0 dev.pcm.0.%pnpinfo: vendor=0x1274 device=0x5880 subvendor=0x1274 subdevice=0x8001 class=0x040100 dev.pcm.0.%parent: pci1 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 4 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: 4096 dev.pcm.0.spdif_enabled: 0 dev.pcm.0.latency_timer: 64 dev.pcm.0.polling: 0 dev.pcm.1.%desc: AudioPCI ES1373-B dev.pcm.1.%driver: pcm dev.pcm.1.%location: slot=10 function=0 dev.pcm.1.%pnpinfo: vendor=0x1274 device=0x1371 subvendor=0x1274 subdevice=0x1371 class=0x040100 dev.pcm.1.%parent: pci1 dev.pcm.1.play.vchans: 4 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le dev.pcm.1.rec.vchans: 1 dev.pcm.1.rec.vchanrate: 48000 dev.pcm.1.rec.vchanformat: s16le dev.pcm.1.buffersize: 4096 dev.pcm.1.latency_timer: 64 dev.pcm.1.polling: 0 Installed linux ports (relevant to the case): linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries linux_base-fc-4_9 Base set of packages needed in Linux mode (for i386/amd64) Nvidia driver: nvidia-driver-1.0.9746_5 NVidia graphics card binary drivers for hardware OpenGL ren $ kldstat Id Refs Address Size Name 1 9 0xc0400000 45f324 kernel 2 1 0xc0860000 26318 linux.ko 3 1 0xc0887000 6d3a4c nvidia.ko 4 1 0xc429c000 a1000 zfs.ko device sound and device es_137x compiled directly in the kernel. I'm out of ideas, what could be causing this problem ? It works flawlessly on 6.1-STABLE. If anyone needs more information to track this down, please let me know. Best regards, Hugo