From 9dd2d8e3281ff3115002b3336ac8cc3697b329b3 Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 9 Jan 2004 05:08:32 +0000 Subject: 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. --- sys/gnu/dev/sound/pci/emu10k1-ac97.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/gnu/dev') 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 #include +#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<