Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2000 00:27:14 +0200 (EET)
From:      Victor Ivanov <v0rbiz@ab-bg.net>
To:        hackers@freebsd.org
Subject:   Re: Bug in ioctl() [Was: Help needed with ioctl() calls]
Message-ID:  <Pine.BSF.4.21.0002200011120.12127-100000@bissy.ab-bg.net>
In-Reply-To: <20000219184059.A327@marder-1>

next in thread | previous in thread | raw e-mail | index | archive | help
  mixer uses 100 levels for each "device" (master volume, pcm, synth,
etc), but your hardware maybe uses 64 (or 128). mixer needs to be
universal.. so does the ioctl() and the interface to the hardware
mixer. Look at the sources in the kernel :)... maybe you'll find something
like this (which looses accuracy, but there's no other way):

  percent = actual * 100 / 64;

  in this case both 91 and 92 are 58 when measuring 1..64
  and this is not a bug :)




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0002200011120.12127-100000>