From c66d90525a43b498fe892271a3acb842f1aea97b Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Tue, 11 Dec 2007 09:11:55 +0000 Subject: remove support for 8kHz sample rates. not all i2s based audio devices support 8kHz sample rates, and there is insufficient code to enable it properly on the devices that do support 8kHz. fixes "evil sound" problem reported by ajacoutot@ and jdixon@. ok deanna@, ratchov@, ajacoutot@ --- sys/arch/macppc/dev/i2s.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'sys/arch/macppc/dev') diff --git a/sys/arch/macppc/dev/i2s.c b/sys/arch/macppc/dev/i2s.c index aafcdab4f00..817ba64d3d4 100644 --- a/sys/arch/macppc/dev/i2s.c +++ b/sys/arch/macppc/dev/i2s.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2s.c,v 1.10 2007/11/05 00:17:28 jakemsr Exp $ */ +/* $OpenBSD: i2s.c,v 1.11 2007/12/11 09:11:54 jakemsr Exp $ */ /* $NetBSD: i2s.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -790,16 +790,10 @@ i2s_set_rate(sc, rate) /* sanify */ if (rate > 48000) rate = 48000; - else if (rate < 8000) - rate = 8000; + else if (rate < 44100) + rate = 44100; switch (rate) { - case 8000: - clksrc = 18432000; /* 18MHz */ - reg = CLKSRC_18MHz; - mclk_fs = 256; - break; - case 44100: clksrc = 45158400; /* 45MHz */ reg = CLKSRC_45MHz; -- cgit v1.2.3