Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2001 03:34:03 +0100
From:      "cameron grant" <gandalf@vilnya.demon.co.uk>
To:        <joeo@cracktown.com>, <freebsd-multimedia@freebsd.org>
Subject:   Re: stable pcm problem with some linux games errs apps
Message-ID:  <00c201c147c6$09991a90$0504020a@haveblue>
References:  <Pine.LNX.4.30.0109271710530.12814-100000@asmodean-ssn.nks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Setting up some debugging reveals that both these games do a ioctl
> DSP_SETFRAGMENT requesting only 1 DMA block.

the oss spec says:
The 16 most significant bits (MMMM) determine the maximum number of
fragments. By default, the driver computes this based on available buffer
space. The minimum value is 2 and the maximum depends on the total buffer
space available for the device. Set MMMM=0x7fff if you don't want to limit
the number of fragments.

> I was hoping that the workaround for would be a simple kluge, but
> chn_setblocksize(...) in /sys/dev/sound/pcm/channel.c has some additional
> logic in it that sets the blkcnt much higher...

that logic is only used where no blocksize is requested.

if i knew what it was trying to do by requesting 1 block, i could implement
it.

    -cg



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c201c147c6$09991a90$0504020a>