summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/ac97.h
diff options
context:
space:
mode:
authororion <orion@FreeBSD.org>2002-04-26 15:27:56 +0000
committerorion <orion@FreeBSD.org>2002-04-26 15:27:56 +0000
commit26b0684eded6ebe30a368697ff95432e67a619bd (patch)
treea9cd4bb081c2af5f3ab6080d194e61f77fd1acae /sys/dev/sound/pcm/ac97.h
parent1601ff57974fa4740bc1a2472558e272136f3ad0 (diff)
downloadFreeBSD-src-26b0684eded6ebe30a368697ff95432e67a619bd.zip
FreeBSD-src-26b0684eded6ebe30a368697ff95432e67a619bd.tar.gz
Add ac97_reset function that polls ready bits in power register. One
component in tweaks required for the ICH3 controller in the thinkpad x22 reported by Colin Perkins on -multimedia.
Diffstat (limited to 'sys/dev/sound/pcm/ac97.h')
-rw-r--r--sys/dev/sound/pcm/ac97.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/ac97.h b/sys/dev/sound/pcm/ac97.h
index 3c2e508..67dbc3f 100644
--- a/sys/dev/sound/pcm/ac97.h
+++ b/sys/dev/sound/pcm/ac97.h
@@ -56,6 +56,12 @@
#define AC97_REG_GEN 0x20
#define AC97_REG_3D 0x22
#define AC97_REG_POWER 0x26
+#define AC97_POWER_ADC (1 << 0)
+#define AC97_POWER_DAC (1 << 1)
+#define AC97_POWER_ANL (1 << 2)
+#define AC97_POWER_REF (1 << 3)
+#define AC97_POWER_STATUS (AC97_POWER_ADC | AC97_POWER_DAC | \
+ AC97_POWER_REF | AC97_POWER_ANL )
#define AC97_REGEXT_ID 0x28
#define AC97_EXTCAP_VRA (1 << 0)
#define AC97_EXTCAP_DRA (1 << 1)
OpenPOWER on IntegriCloud