From owner-freebsd-emulation Wed Jul 21 7:41:53 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 4133514DB1 for ; Wed, 21 Jul 1999 07:41:46 -0700 (PDT) (envelope-from freebsd-emulation@scc.nl) Received: (from daemon@localhost) by dwarf.hq.scc.nl (8.9.3/8.9.2) id KAA52827 for emulation@FreeBSD.ORG; Wed, 21 Jul 1999 10:13:54 +0200 (CEST) (envelope-from freebsd-emulation@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for emulation@FreeBSD.ORG (emulation@FreeBSD.ORG) To: emulation@FreeBSD.ORG Date: Wed, 21 Jul 1999 10:13:49 +0200 From: Marcel Moolenaar Message-ID: <3795813D.48D69E56@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <19990707074237.A311@norn.ca.eu.org>, <19990720182935.B1450@ipass.net> Subject: Re: RealPlayer G2 for Linux (6.0-0.99051701) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 , 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