summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-23 20:52:51 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-23 20:52:51 +0000
commit364005f7c07e04f6ee295584d5b7fa22a6e8b1c2 (patch)
tree8c8993016164316f1c3c238f3b74bf0b18b8f47f /sys
parentc1d313b0d2ad9c68e6f9686c42d1864d412223db (diff)
reove redundant variable sample rate checks.
ok ratchov (a while ago)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ac97.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c
index dfb165e3ee3..536c1bcf2f0 100644
--- a/sys/dev/ic/ac97.c
+++ b/sys/dev/ic/ac97.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.c,v 1.68 2008/05/25 23:52:30 jakemsr Exp $ */
+/* $OpenBSD: ac97.c,v 1.69 2008/10/23 20:52:50 jakemsr Exp $ */
/*
* Copyright (c) 1999, 2000 Constantine Sapuntzakis
@@ -1103,10 +1103,6 @@ ac97_set_rate(struct ac97_codec_if *codec_if, int target, u_long *rate)
case AC97_REG_PCM_SURR_DAC_RATE:
case AC97_REG_PCM_LFE_DAC_RATE:
power_bit = AC97_POWER_OUT;
- if (!(as->ext_id & AC97_EXT_AUDIO_VRA)) {
- *rate = AC97_SINGLE_RATE;
- return 0;
- }
if (as->ext_id & AC97_EXT_AUDIO_DRA) {
ac97_read(as, AC97_REG_EXT_AUDIO_CTRL, &ext_stat);
if (value > 0x1ffff) {
@@ -1128,19 +1124,11 @@ ac97_set_rate(struct ac97_codec_if *codec_if, int target, u_long *rate)
break;
case AC97_REG_PCM_LR_ADC_RATE:
power_bit = AC97_POWER_IN;
- if (!(as->ext_id & AC97_EXT_AUDIO_VRA)) {
- *rate = AC97_SINGLE_RATE;
- return 0;
- }
if (value > 0xffff)
return EINVAL;
break;
case AC97_REG_PCM_MIC_ADC_RATE:
power_bit = AC97_POWER_IN;
- if (!(as->ext_id & AC97_EXT_AUDIO_VRM)) {
- *rate = AC97_SINGLE_RATE;
- return 0;
- }
if (value > 0xffff)
return EINVAL;
break;