diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-06-16 03:45:41 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-06-16 03:45:41 +0000 |
commit | 387be8e210670287c702be68f06146070692c03f (patch) | |
tree | f4f517aec8d534a4227d043ab0d1e4793cff79e7 /sys/arch | |
parent | fea5b69e4115c63ff4c12959a752e5064792a786 (diff) |
correct sense of rate check... oops.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/dev/awacs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/awacs.c b/sys/arch/macppc/dev/awacs.c index 409a1e73097..60d860df60e 100644 --- a/sys/arch/macppc/dev/awacs.c +++ b/sys/arch/macppc/dev/awacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: awacs.c,v 1.14 2003/06/16 03:22:45 jason Exp $ */ +/* $OpenBSD: awacs.c,v 1.15 2003/06/16 03:45:40 jason Exp $ */ /* $NetBSD: awacs.c,v 1.4 2001/02/26 21:07:51 wiz Exp $ */ /*- @@ -1240,7 +1240,7 @@ awacs_set_rate(struct awacs_softc *sc, struct audio_params *p) for (i = 1; selected == -1 && i < n; i++) { if (p->sample_rate == awacs_speeds[i].rate) selected = i; - else if (p->sample_rate > awacs_speeds[i].rate) { + else if (p->sample_rate < awacs_speeds[i].rate) { u_int diff1, diff2; diff1 = p->sample_rate - awacs_speeds[i - 1].rate; |