Date: Tue, 14 Dec 1999 22:30:09 -0500 From: "Vladimir N. Silyaev" <vsilyaev@mindspring.com> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: Doug Ambrisko <ambrisko@whistle.com>, "Vladimir N. Silyaev" <vsilyaev@mindspring.com>, freebsd-emulation@FreeBSD.ORG Subject: vmware and sound (was: vmware questions) Message-ID: <19991214223008.A451@jupiter.delta.ny.us> 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 References: <19991212204415.A18746@jupiter.delta.ny.us> <199912131726.JAA17715@whistle.com> <14421.17201.39674.22005@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991214223008.A451>
