From owner-freebsd-multimedia Tue Mar 13 21:16:27 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from w2xo.pgh.pa.us (18.gibs5.xdsl.nauticom.net [209.195.184.19]) by hub.freebsd.org (Postfix) with ESMTP id 4183837B718 for ; Tue, 13 Mar 2001 21:16:22 -0800 (PST) (envelope-from durham@w2xo.pgh.pa.us) Received: from shazam (shazam [192.168.5.3]) by w2xo.pgh.pa.us (8.11.2/8.9.3) with ESMTP id f2E5Fkq41945 for ; Wed, 14 Mar 2001 05:15:46 GMT (envelope-from durham@w2xo.pgh.pa.us) Date: Wed, 14 Mar 2001 00:18:09 -0500 (EST) From: Jim Durham X-Sender: durham@shazam.int To: freebsd-multimedia@freebsd.org Subject: Ioctl's for dsp device with Luigi's driver Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have a little application that just records to disk from a soundcard at whatever bit rate, number of channels and resolution bits that you tell it. This has been working fine for years on FreeBSD. I have been using Luigi's sound stuff recently. I *think* that the program ran ok on FreeBSD 3.X with Luigi's code. I tried it recently on 4.2-RELEASE and came up with ioctl errors. Here's an example chunk of code that causes the error.. parm = atoi(argv[1]); if (ioctl(dspfd, SOUND_PCM_WRITE_BITS, &parm)) { perror("ioctlwrbits"); exit(1); } In this case "parm" is 44100, or whatever bit rate you're using to record. I read soundcard.h and it looks like this set of ioctls is not valid for Luigi's code. I had thought it was "backward compatable". No? -Jim Durham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message