summaryrefslogtreecommitdiffstats
path: root/sys/gnu/dev
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-01-09 05:08:32 +0000
committerobrien <obrien@FreeBSD.org>2004-01-09 05:08:32 +0000
commit9dd2d8e3281ff3115002b3336ac8cc3697b329b3 (patch)
tree19bcb061a4be3f6ad270ef3426c19ad501afa53c /sys/gnu/dev
parenta97eee1597e5caedac0d9ce38ba6edde6667c37f (diff)
downloadFreeBSD-src-9dd2d8e3281ff3115002b3336ac8cc3697b329b3.zip
FreeBSD-src-9dd2d8e3281ff3115002b3336ac8cc3697b329b3.tar.gz
Dike out some very Linux-specific parts that we can't compile with.
Also protect AC97_MUTE which is also defined in our own ac97.h.
Diffstat (limited to 'sys/gnu/dev')
-rw-r--r--sys/gnu/dev/sound/pci/emu10k1-ac97.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/gnu/dev/sound/pci/emu10k1-ac97.h b/sys/gnu/dev/sound/pci/emu10k1-ac97.h
index 6af0528..4f4b072 100644
--- a/sys/gnu/dev/sound/pci/emu10k1-ac97.h
+++ b/sys/gnu/dev/sound/pci/emu10k1-ac97.h
@@ -1,8 +1,12 @@
+/* $FreeBSD$ */
+
#ifndef _AC97_CODEC_H_
#define _AC97_CODEC_H_
+#ifdef __linux__
#include <linux/types.h>
#include <linux/soundcard.h>
+#endif
/* AC97 1.0 */
#define AC97_RESET 0x0000 //
@@ -64,7 +68,9 @@
#define AC97_VENDOR_ID2 0x007e
/* volume control bit defines */
+#ifndef AC97_MUTE
#define AC97_MUTE 0x8000
+#endif
#define AC97_MICBOOST 0x0040
#define AC97_LEFTVOL 0x3f00
#define AC97_RIGHTVOL 0x003f
@@ -213,6 +219,7 @@
(FOO < SOUND_MIXER_NRDEVICES) && \
(CODEC)->supported_mixers & (1<<FOO) )
+#ifdef __linux__
struct ac97_codec {
/* AC97 controller connected with */
void *private_data;
@@ -281,5 +288,6 @@ extern unsigned int ac97_set_adc_rate(struct ac97_codec *codec, unsigned int rat
extern unsigned int ac97_set_dac_rate(struct ac97_codec *codec, unsigned int rate);
extern int ac97_save_state(struct ac97_codec *codec);
extern int ac97_restore_state(struct ac97_codec *codec);
+#endif /*__linux__*/
#endif /* _AC97_CODEC_H_ */
OpenPOWER on IntegriCloud