Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 1999 10:13:49 +0200
From:      Marcel Moolenaar <marcel@scc.nl>
To:        emulation@FreeBSD.ORG
Subject:   Re: RealPlayer G2 for Linux (6.0-0.99051701)
Message-ID:  <3795813D.48D69E56@scc.nl>
References:  <19990707074237.A311@norn.ca.eu.org>, <19990720182935.B1450@ipass.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Randall Hopper wrote:
> 
> Chris Piazza:
>  |Denis DeLaRoca:
>  |
>  |> And I am getting also an err msg from RealPlayer G2
>  |>
>  |> LINUX: 'ioctl' fd=39 typ=0x44d(M), num=0x76 not implemented
>  |
>  |I've been using this program extensively for the past few days
>  |and AFAIK this warning means absolutely nothing.
>  |It'd be nice if they released a version that had plugin support
>  |for netscape, though :-).
> 
> According to Marcel Moolenaar <marcel@scc.nl>, it's OSS_GETVERSION.  Likely
> it's trying to optimize the sound output based on sound driver version.

Yes, and I expect the sound driver version to be almost unrelated to the
OSS API version :-)

> I wouldn't be surprised if this is related to the video dogging down more
> and more as the clip plays; possibly it's blocking on sound driver writes
> (ISPACE, OSPACE, TRIGGER, and friends).

That's easy to test. Apply the following *untested* patch and fiddle with
the version number.

Index: linux_ioctl.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/linux/linux_ioctl.c,v
retrieving revision 1.36
diff -u -r1.36 linux_ioctl.c
--- linux_ioctl.c       1999/07/17 08:24:57     1.36
+++ linux_ioctl.c       1999/07/21 08:04:34
@@ -1184,6 +1184,11 @@
        return error;
     }
 
+    case 0x4d76: {
+      int version = 0x0;
+      return copyout((caddr_t)&version, (caddr_t)args->arg, sizeof(int));
+    }
+      
     }
 
     uprintf("LINUX: 'ioctl' fd=%d, typ=0x%x(%c), num=0x%x not
implemented\n",

From Linux kernel 2.2.10: include/linux/soundcard.h:
/*
 * OSS interface version. With versions earlier than 3.6 this value is
 * an integer with value less than 361. In versions 3.6 and later
 * it's a six digit hexadecimal value. For example value
 * of 0x030600 represents OSS version 3.6.0.
 * Use ioctl(fd, OSS_GETVERSION, &int) to get the version number of
 * the currently active driver.
 */
#define SOUND_VERSION   0x030802

-- 
Marcel Moolenaar                                  mailto:marcel@scc.nl
SCC Internetworking & Databases                     http://www.scc.nl/
Amsterdam, The Netherlands                         tel: +31 20 4200655


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3795813D.48D69E56>