Update of /cvsroot/alsa/alsa-utils/alsamixer
In directory sc8-pr-cvs1:/tmp/cvs-serv10566
Modified Files:
alsamixer.c
Log Message:
Eliot Blennerhassett <[EMAIL PROTECTED]>: fixed negative ranges
Index: alsamixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/alsamixer/alsamixer.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- alsamixer.c 28 May 2003 07:25:26 -0000 1.65
+++ alsamixer.c 28 May 2003 09:04:52 -0000 1.66
@@ -493,6 +493,9 @@
vol1 = max;
else
vol1 = mixer_conv(vol1, 0, 100, min, max);
+ /* Note: we have delta in vol1 and we need to map our */
+ /* delta value to hardware range */
+ vol1 -= min;
if (vol1 <= 0)
vol1 = 1;
if (vol < 0)
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog