summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/ac97.h
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-06-23 17:32:40 +0000
committercg <cg@FreeBSD.org>2001-06-23 17:32:40 +0000
commit20fbfefbf3afd4f0cf079a012abce21cab3907cc (patch)
treeae89b112d4ff400641011dbe46e38585b4d27b66 /sys/dev/sound/pcm/ac97.h
parentf8e11dde2671e192fa12edbf3487f63e8e0ade6e (diff)
downloadFreeBSD-src-20fbfefbf3afd4f0cf079a012abce21cab3907cc.zip
FreeBSD-src-20fbfefbf3afd4f0cf079a012abce21cab3907cc.tar.gz
move a private struct definition from ac97.h to ac97.c
add proper handling of cards which take eapd=1 to mean 'produce sound' instead of 'external amplifier power down'
Diffstat (limited to 'sys/dev/sound/pcm/ac97.h')
-rw-r--r--sys/dev/sound/pcm/ac97.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/sound/pcm/ac97.h b/sys/dev/sound/pcm/ac97.h
index b9159e1..38dd2df 100644
--- a/sys/dev/sound/pcm/ac97.h
+++ b/sys/dev/sound/pcm/ac97.h
@@ -63,16 +63,7 @@
#define AC97_REG_ID1 0x7c
#define AC97_REG_ID2 0x7e
-struct ac97mixtable_entry {
- int reg:8;
- unsigned bits:4;
- unsigned ofs:4;
- unsigned stereo:1;
- unsigned mute:1;
- unsigned recidx:4;
- unsigned mask:1;
- unsigned enable:1;
-};
+#define AC97_F_EAPD_INV 0x00000001
#define AC97_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj))
#define AC97_CREATE(dev, devinfo, cls) ac97_create(dev, devinfo, &cls ## _class)
@@ -85,6 +76,8 @@ extern kobj_class_t ac97_getmixerclass(void);
struct ac97_info *ac97_create(device_t dev, void *devinfo, kobj_class_t cls);
void ac97_destroy(struct ac97_info *codec);
+void ac97_setflags(struct ac97_info *codec, u_int32_t val);
+u_int32_t ac97_getflags(struct ac97_info *codec);
int ac97_setrate(struct ac97_info *codec, int which, int rate);
int ac97_setextmode(struct ac97_info *codec, u_int16_t mode);
u_int16_t ac97_getextmode(struct ac97_info *codec);
OpenPOWER on IntegriCloud