From owner-freebsd-multimedia Tue Mar 13 21:52:32 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 3008737B718 for ; Tue, 13 Mar 2001 21:52:28 -0800 (PST) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id GAA13978; Wed, 14 Mar 2001 06:52:32 +0100 (CET) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200103140552.GAA13978@info.iet.unipi.it> Subject: Re: Ioctl's for dsp device with Luigi's driver In-Reply-To: from Jim Durham at "Mar 14, 2001 00:18:09 am" To: Jim Durham Date: Wed, 14 Mar 2001 06:52:31 +0100 (CET) Cc: freebsd-multimedia@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 4.2 uses the "newpcm" driver, which is not mine and a different code from what is in 3.x. You might ask Cameron Grant who is the author of newpcm and is doing a great job supporting it. cheers luigi > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message