diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-12-11 09:11:55 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2007-12-11 09:11:55 +0000 |
commit | c66d90525a43b498fe892271a3acb842f1aea97b (patch) | |
tree | 4d0f77316820987a0ce5e71f31469847fc1574c8 /sys/arch/macppc/dev | |
parent | 49247388384cf4df4cdc4e93e5c268eab91d6615 (diff) |
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@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/i2s.c | 12 |
1 files changed, 3 insertions, 9 deletions
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; |