Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 1998 13:31:03 +0100 (CET)
From:      Didier Derny <didier@omnix.net>
To:        Robert Withrow <witr@rwwa.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Linux rvplayer and not-implemented ioctl
Message-ID:  <Pine.BSF.3.96.980115132654.18374A-100000@omnix.net>
In-Reply-To: <199801011815.NAA24691@spooky.rwwa.com>

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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980115132654.18374A-100000>