From owner-freebsd-hackers Thu Jan 15 04:34:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA13521 for hackers-outgoing; Thu, 15 Jan 1998 04:34:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from omnix.net (omnix.net [194.183.217.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA13355 for ; Thu, 15 Jan 1998 04:32:52 -0800 (PST) (envelope-from didier@omnix.net) Received: from localhost (localhost [127.0.0.1]) by omnix.net (8.8.7/8.8.7) with SMTP id MAA18410; Thu, 15 Jan 1998 12:31:04 GMT (envelope-from didier@omnix.net) Date: Thu, 15 Jan 1998 13:31:03 +0100 (CET) From: Didier Derny To: Robert Withrow cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Linux rvplayer and not-implemented ioctl In-Reply-To: <199801011815.NAA24691@spooky.rwwa.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk On Thu, 1 Jan 1998, Robert Withrow wrote: > > Trying to run the 5.0 version of thelinux rvplayer causes: > > LINUX: 'ioctl' fd=7, typ=0x450(P), num=0xf not implemented > > Is this a problem with FreeBSD or the Sound driver, or what? > > --------------------------------------------------------------------- > Robert Withrow, R.W. Withrow Associates, Swampscott MA, witr@rwwa.COM > > > I've had the same probleme. below you can find my patches to the linux emulator to use the RealAudio player 5.0 with FreeBSD 2.2.5-RELEASE IT'S NOT A SOLUTION TO SOLVE THIS PROBLEM. It's just an horrible patch to tell rvplayer that everything is ok. The real solution to this problem is in the FreeBSD 3.0 source code. *** linux.h.orig Wed Jan 14 14:42:21 1998 --- linux.h Wed Jan 14 14:47:22 1998 *************** *** 491,496 **** --- 491,497 ---- #define LINUX_SNDCTL_DSP_GETOSPACE 0x500C #define LINUX_SNDCTL_DSP_GETISPACE 0x500D #define LINUX_SNDCTL_DSP_NONBLOCK 0x500E + #define LINUX_SNDCTL_DSP_GETCAPS 0x500F #define LINUX_SOUND_MIXER_WRITE_VOLUME 0x4d00 #define LINUX_SOUND_MIXER_WRITE_BASS 0x4d01 #define LINUX_SOUND_MIXER_WRITE_TREBLE 0x4d02 *** linux_ioctl.c.orig Wed Jan 14 14:42:05 1998 --- linux_ioctl.c Wed Jan 14 14:45:16 1998 *************** *** 707,713 **** --- 707,716 ---- case LINUX_SNDCTL_DSP_SETFRAGMENT: args->cmd = SNDCTL_DSP_SETFRAGMENT; + /* return ioctl(p, (struct ioctl_args *)args, retval); + */ + return 0; case LINUX_SNDCTL_DSP_GETFMTS: args->cmd = SNDCTL_DSP_GETFMTS; *************** *** 724,729 **** --- 727,742 ---- case LINUX_SNDCTL_DSP_NONBLOCK: args->cmd = SNDCTL_DSP_NONBLOCK; return ioctl(p, (struct ioctl_args *)args, retval); + + case LINUX_SNDCTL_DSP_GETCAPS: + retval = 1; + return 0; + /* + return ioctl(p, (struct ioctl_args *)args, retval); + */ + + case 0x5012: + return 0; case LINUX_SOUND_MIXER_WRITE_VOLUME: args->cmd = SOUND_MIXER_WRITE_VOLUME; -- Didier Derny didier@omnix.net