Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use the approximated sampling rate to compute th...



details:   https://anonhg.NetBSD.org/src/rev/e62151dca206
branches:  trunk
changeset: 475983:e62151dca206
user:      kleink <kleink%NetBSD.org@localhost>
date:      Thu Sep 02 17:26:15 1999 +0000

description:
Use the approximated sampling rate to compute the filter rate.

diffstat:

 sys/dev/pci/eso.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 626f34e716d0 -r e62151dca206 sys/dev/pci/eso.c
--- a/sys/dev/pci/eso.c Wed Sep 01 21:03:02 1999 +0000
+++ b/sys/dev/pci/eso.c Thu Sep 02 17:26:15 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eso.c,v 1.5 1999/08/14 22:42:16 kleink Exp $   */
+/*     $NetBSD: eso.c,v 1.6 1999/09/02 17:26:15 kleink Exp $   */
 
 /*
  * Copyright (c) 1999 Klaus J. Klein
@@ -748,7 +748,7 @@
                srg = rd[clk] | (clk == 1 ? ESO_CLK1_SELECT : 0x00);
 
                /* Roll-off frequency of 87%, as in the ES1888 driver. */
-               fltdiv = 256 - 200279L / p->sample_rate;
+               fltdiv = 256 - 200279L / r[clk];
 
                /* Update to reflect the possibly inexact rate. */
                p->sample_rate = r[clk];



Home | Main Index | Thread Index | Old Index