From owner-freebsd-emulation Tue Dec 14 19:30:36 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp7.atl.mindspring.net (smtp7.atl.mindspring.net [207.69.128.51]) by hub.freebsd.org (Postfix) with ESMTP id 8908C14EDC for ; Tue, 14 Dec 1999 19:30:26 -0800 (PST) (envelope-from vsilyaev@mindspring.com) Received: from mindspring.com (user-2ivea5e.dialup.mindspring.com [165.247.40.174]) by smtp7.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id WAA28880; Tue, 14 Dec 1999 22:30:12 -0500 (EST) Received: (from vsilyaev@localhost) by mindspring.com (8.9.3/8.9.3) id WAA00529; Tue, 14 Dec 1999 22:30:10 -0500 (EST) (envelope-from vsilyaev) Date: Tue, 14 Dec 1999 22:30:09 -0500 From: "Vladimir N. Silyaev" To: Andrew Gallatin Cc: Doug Ambrisko , "Vladimir N. Silyaev" , freebsd-emulation@FreeBSD.ORG Subject: vmware and sound (was: vmware questions) Message-ID: <19991214223008.A451@jupiter.delta.ny.us> References: <19991212204415.A18746@jupiter.delta.ny.us> <199912131726.JAA17715@whistle.com> <14421.17201.39674.22005@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <14421.17201.39674.22005@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Mon, Dec 13, 1999 at 02:17:20PM -0500 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Dec 13, 1999 at 02:17:20PM -0500, Andrew Gallatin wrote: > > Doug Ambrisko writes: > > | Oh no, I never tried to use sound. Ok it's added into my TODO list. > > > > FYI, sound works just fine for me in vmware. I'm using the old > > voxware stuff on my machine because of troubles with the pcm stuff on > > my 770Z laptop. (Now before people tell me to fix it I'm working > > on getting the Aironet driver fixed and other things). > > > Damn. > > I had hoped the linux sound compat was fully functional again. At > least Realplayer G2 now works well with newpcm. It basically hadn't > worked at all between now & the introduction of newpcm. > > I'm using NT4 as my guest os. I have sound setup in NT4 the way > vmware suggests (sb 1.x pro 16 driver, i/o 220, irq 5, dma chans 1 & > 7, mpu-401 disabled). After applying the following patch, I think you will be heard some sound. --- sys/dev/sound/pcm/dsp.c.orig Mon Dec 6 00:22:13 1999 +++ sys/dev/sound/pcm/dsp.c Tue Dec 14 22:15:37 1999 @@ -416,9 +416,11 @@ /* eg: 4dwave can only interrupt at buffer midpoint, so * it will force blocksize == bufsize/2 */ +#if 0 count = c->buffer.bufsize / c->blocksize; bytes = ffs(c->blocksize) - 1; *arg_i = (count << 16) | bytes; +#endif } break; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This is a dirty hack, because probably vmware checked the passed and returned parameters. And optional diff, for mixers support. --- sys/dev/sound/pcm/sound.c.orig Tue Dec 7 23:55:34 1999 +++ sys/dev/sound/pcm/sound.c Tue Dec 14 22:16:21 1999 @@ -330,7 +330,10 @@ case SND_DEV_AUDIO: case SND_DEV_DSP: case SND_DEV_DSP16: - return dsp_ioctl(d, chan, cmd, arg); + if (IOCGROUP(cmd)=='M') + return mixer_ioctl(d, cmd, arg); + else + return dsp_ioctl(d, chan, cmd, arg); default: return ENXIO; -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- Vladimir Silyaev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message