Theo de Raadt <[EMAIL PROTECTED]> wrote: > How about a kernel solution. > > Instead of always rounding up, we can make the code round to farthest > thing.
There is no single rounding function in the kernel, it's in the hands of the individual drivers. Most modern hardware goes through dev/ic/ac97.c. The rounding up is incidental for hardware that requires inverted values; rather than ~vol ac97_mixer_[gs]et_port() does vol=255-vol. (Interestingly, the minimum delta is available in struct mixer_devinfo, although at first glance only ac97 and uaudio bother to fill it in, and of course it is not available through the libossaudio interface most mixer apps use.) -- Christian "naddy" Weisgerber [EMAIL PROTECTED]