Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix typo so that 48kHz can be set. From Stephen...
details: https://anonhg.NetBSD.org/src/rev/82a2ea46be1f
branches: trunk
changeset: 521625:82a2ea46be1f
user: augustss <augustss%NetBSD.org@localhost>
date: Sat Feb 02 11:18:42 2002 +0000
description:
Fix typo so that 48kHz can be set. From Stephen Ma in kern/15456.
diffstat:
sys/dev/pci/cmpci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 20bf2c4fc394 -r 82a2ea46be1f sys/dev/pci/cmpci.c
--- a/sys/dev/pci/cmpci.c Sat Feb 02 11:13:44 2002 +0000
+++ b/sys/dev/pci/cmpci.c Sat Feb 02 11:18:42 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmpci.c,v 1.12 2001/12/27 14:17:04 itohy Exp $ */
+/* $NetBSD: cmpci.c,v 1.13 2002/02/02 11:18:42 augustss Exp $ */
/*
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.12 2001/12/27 14:17:04 itohy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.13 2002/02/02 11:18:42 augustss Exp $");
#if defined(AUDIO_DEBUG) || defined(DEBUG)
#define DPRINTF(x) if (cmpcidebug) printf x
@@ -317,7 +317,7 @@
{
int i;
- for (i = 0; i < CMPCI_REG_NUMRATE - 2; i++)
+ for (i = 0; i < CMPCI_REG_NUMRATE - 1; i++)
if (rate <=
(cmpci_rate_table[i].rate+cmpci_rate_table[i+1].rate) / 2)
return i;
Home |
Main Index |
Thread Index |
Old Index