From owner-freebsd-multimedia Sat Apr 17 7:19:54 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (Postfix) with SMTP id 546B315020 for ; Sat, 17 Apr 1999 07:19:16 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id NAA16620; Sat, 17 Apr 1999 13:50:48 +0200 From: Luigi Rizzo Message-Id: <199904171150.NAA16620@labinfo.iet.unipi.it> Subject: Re: Reason why fxtv can't capture audio with Luigi's sound code... To: aa8vb@ipass.net (Randall Hopper) Date: Sat, 17 Apr 1999 13:50:48 +0200 (MET DST) Cc: andre.albsmeier@mchp.siemens.de, freebsd-multimedia@FreeBSD.ORG In-Reply-To: <19990417094238.A3349@ipass.net> from "Randall Hopper" at Apr 17, 99 09:42:19 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1380 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi. Yes, in the Voxware world, the way to test whether the soundcard > supported an audio format was to try to activate it, and verify that the > return value of the ioctl matched what you passed in. If it didn't, then ... > It looks like this is just a small compatibility wrinkle in Luigi's > drivers that hopefully is easy to smooth out. Given that the change you > described below got it working, then SNDCTL_DSP_SETFMT is the only one of > the four ioctl's not returning the requested value if the request succeeds > (for the format you're trying to establish at least). > > (Ccing Luigi in case he missed your post.) roger... the thing is, if i remember well, that i had to extend the SNDCTL_DSP_SETFMT to take care of cards which have some restriction on full-duplex operation (surprise surprise, SB16...). The one (or two, don't remember) bits i added do not correspond to any existing format for what matters, so perhaps one might mask them off. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO . EMAIL: luigi@iet.unipi.it . Dip. di Ing. dell'Informazione HTTP://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message