From owner-freebsd-multimedia Sat Jun 7 16:05:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA13081 for multimedia-outgoing; Sat, 7 Jun 1997 16:05:21 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA13075 for ; Sat, 7 Jun 1997 16:05:16 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.8.5) with ESMTP id QAA08935; Sat, 7 Jun 1997 16:05:06 -0700 (PDT) Message-Id: <199706072305.QAA08935@rah.star-gate.com> X-Mailer: exmh version 1.6.9 8/22/96 To: Chuck Robey cc: FreeBSD-Multimedia@FreeBSD.ORG Subject: Re: Nas In-reply-to: Your message of "Sat, 07 Jun 1997 18:36:50 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Jun 1997 16:05:06 -0700 From: Amancio Hasty Sender: owner-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk That open call works with the guspnp7 sound driver which is based upon the linux sound driver 3.5 because the gus supports bidirectional i/o as well as the sound driver 3.5 . In the case of the sound blaster cards which don't support full duplex i/o opening a device for read and write will fail. In order to work around this limitation for cards such as the sound blaster you have to keep track of which i/o channel is open so that when you want to read if the write channel is open close it , open the read channel and finally issue your reads to the sound card. Amancio >From The Desk Of Chuck Robey : > I've played around with it, I know what's broken, and the fix method, but > I don't yet know enough about the sound devices to fix it. This call is > failing: > > if ((fd = open(sndStatOut.device, O_RDWR, 0)) == -1) { > UNIDENTMSG; > return AuFalse; > > I checked, this device is maj 30 minor 5, on my machine /dev/dspW. I > found some things that are wrong with Nas setup, and if I can get the two > opens (there's another for the input device, just like it) then I would > have Nas working. > > Anyone know if I have the major/minor messed up? MAKEDEV seems to be > broken for audio, it gives me a mknod error. > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 213 Lakeside Drive Apt T-1 | > Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD > (301) 220-2114 | version 3.0 current -- and great FUN! > ----------------------------+----------------------------------------------- >