From 9c10799ac4e2aa8c4aab1a2189c9ea1ffaa68721 Mon Sep 17 00:00:00 2001 From: kleink Date: Thu, 2 Sep 1999 17:26:15 +0000 Subject: [PATCH] Use the approximated sampling rate to compute the filter rate. --- sys/dev/pci/eso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/eso.c b/sys/dev/pci/eso.c index c625716aca2b..1a4accfe209a 100644 --- a/sys/dev/pci/eso.c +++ b/sys/dev/pci/eso.c @@ -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 @@ eso_set_params(hdl, setmode, usemode, play, rec) 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];