Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv14712/core
Modified Files:
timer.c
Log Message:
Minor cleanups for timer API
Index: timer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/timer.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- timer.c 2 Mar 2003 10:50:21 -0000 1.33
+++ timer.c 2 Mar 2003 15:03:37 -0000 1.34
@@ -1311,10 +1311,9 @@
if (t->hw.resolution_min > 0) {
ginfo.resolution_min = t->hw.resolution_min;
ginfo.resolution_max = t->hw.resolution_max;
- ginfo.resolution_step = t->hw.resolution_step;
}
list_for_each(p, &t->open_list_head) {
- ginfo.instances++;
+ ginfo.clients++;
}
} else {
err = -ENOENT;
@@ -1370,6 +1369,12 @@
gstatus.resolution = t->hw.c_resolution(t);
else
gstatus.resolution = t->hw.resolution;
+ if (t->hw.precise_resolution) {
+ t->hw.precise_resolution(t, &gstatus.resolution_num,
&gstatus.resolution_den);
+ } else {
+ gstatus.resolution_num = 1;
+ gstatus.resolution_den = gstatus.resolution;
+ }
} else {
err = -ENOENT;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog