Date: Sat, 07 Jun 1997 16:05:06 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: Chuck Robey <chuckr@glue.umd.edu> Cc: FreeBSD-Multimedia@FreeBSD.ORG Subject: Re: Nas Message-ID: <199706072305.QAA08935@rah.star-gate.com> In-Reply-To: Your message of "Sat, 07 Jun 1997 18:36:50 EDT." <Pine.BSF.3.96.970607183023.323L-100000@Journey2.mat.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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!
> ----------------------------+-----------------------------------------------
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706072305.QAA08935>
