summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/ac97.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-03-23 16:39:01 +0000
committercg <cg@FreeBSD.org>2001-03-23 16:39:01 +0000
commitc987c179af09645d94872732054b5f5bcf005bb9 (patch)
tree6333e9892d11106f1c5cb55cd10c491e0a448c9e /sys/dev/sound/pcm/ac97.c
parent8e5f42ddb80de05145923cee88caa14c51bc2ffb (diff)
downloadFreeBSD-src-c987c179af09645d94872732054b5f5bcf005bb9.zip
FreeBSD-src-c987c179af09645d94872732054b5f5bcf005bb9.tar.gz
* power up the external amplifier
* after chip reset, reapply power settings
Diffstat (limited to 'sys/dev/sound/pcm/ac97.c')
-rw-r--r--sys/dev/sound/pcm/ac97.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c
index 8db992e..b8e47e5 100644
--- a/sys/dev/sound/pcm/ac97.c
+++ b/sys/dev/sound/pcm/ac97.c
@@ -327,9 +327,10 @@ ac97_initmixer(struct ac97_info *codec)
return ENODEV;
}
- wrcd(codec, AC97_REG_POWER, 0);
+ wrcd(codec, AC97_REG_POWER, 0x8000);
wrcd(codec, AC97_REG_RESET, 0);
DELAY(100000);
+ wrcd(codec, AC97_REG_POWER, 0x8000);
i = rdcd(codec, AC97_REG_RESET);
codec->caps = i & 0x03ff;
OpenPOWER on IntegriCloud