Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2001 06:52:31 +0100 (CET)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        Jim Durham <durham@w2xo.pgh.pa.us>
Cc:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: Ioctl's for dsp device with Luigi's driver
Message-ID:  <200103140552.GAA13978@info.iet.unipi.it>
In-Reply-To: <Pine.BSF.4.21.0103140004340.27904-100000@shazam.int> from Jim Durham at "Mar 14, 2001 00:18:09 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103140552.GAA13978>