Date: 25 Feb 2002 22:37:27 -0500 From: Joe Clarke <marcus@marcuscom.com> To: pascal@interactionvirtuelle.com Cc: questions@FreeBSD.ORG Subject: Re: emu10k1 driver ? Message-ID: <1014694651.22082.3.camel@shumai.marcuscom.com> In-Reply-To: <200202260300.g1Q30nK01208@MystNET.dhs.org> References: <200202260300.g1Q30nK01208@MystNET.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2002-02-25 at 22:00, Pascal Villeuneuve wrote: > Is there is an equivalence of the linux EMU10K1 driver that support all the > feature of a Soud blaster live card in freebsd, and if it exist how can i > configure it, if not how can i make it installing; when i do a "make" > in the driver directory a got this, > "config", line 11: Need an operator > "Makefile", line 8: Missing dependency operator > "Makefile", line 9: Need an operator > "Makefile", line 11: Need an operator > "Makefile", line 13: Need an operator > Error expanding embedded variable. > Yes i have the linux compatibility,but i think > something is missing. > kuz i want to be able to use the rear channel ports. > tanx. > this is the MakeFile Uh, this looks like a Linux Makefile. This isn't going to get you very far on FreeBSD. FreeBSD has a emu10k1 driver as part of the pcm sound system. Try doing a kldload snd And see if your card is detected. You should be able to tell by doing a cat /dev/sndstat After loading the driver. If you see an entry there for your card, then you're set. I'm not sure if this driver supports all the features of the Sound Blaster Live, though. If you find this driver is lacking, consider patching it, or purchasing the FreeBSD OSS drivers from http://www.4front-tech.com. Joe > > > # Don't change anything below > > include config > > CFLAGS := > MODFLAGS := > > ifeq (.opts,$(wildcard .opts)) > include .opts > do-it-all: all > else > do-it-all: opts > endif > > opts: > $(MAKE) -Cscripts > @echo "**" > @echo "** Compilation configured for `cat .opts | grep > KERNEL_VERSION`, > now compile it with:" > @echo "** make" > @echo "**" > > EMU10K1_MOD := emu10k1.o > EMU10K1_OBJS := audio.o cardmi.o cardmo.o cardwi.o cardwo.o efxmgr.o > emuadxmg.o\ > hwaccess.o irqmgr.o main.o midi.o mixer.o recmgr.o timer.o voicemgr.o\ > ecard.o passthrough.o > > AC97_MOD := ac97_codec.o > AC97_OBJS := ac97_codec.o > > KERNEL_RELEASE := $(shell echo $(KERNEL_VERSION) | cut -d\" -f2| cut -c-3) > > ifeq ($(KERNEL_RELEASE),2.2) > KERNEL_EXTRA_INCLUDES := -I2.2/ > MODULE_PATH := /lib/modules/$(KERNEL_VERSION)/misc > AC97_MODULE_PATH := $(MODULE_PATH) > EMU10K1_OBJS += 2.2/emu_wrapper.o > EMU10K1_JOY_MOD := emu10k1-joy.o > EMU10K1_JOY_OBJS := joystick.o 2.2/emu_wrapper.o > else > ifeq ($(KERNEL_RELEASE),2.3) > KERNEL_RELEASE := 2.4 > endif > ifeq ($(KERNEL_RELEASE),2.4) > KERNEL_EXTRA_INCLUDES := -I2.4/ > MODULE_PATH := /lib/modules/$(KERNEL_VERSION)/kernel/drivers/sound/emu10k1 > AC97_MODULE_PATH := /lib/modules/$(KERNEL_VERSION)/kernel/drivers/sound > EMU10K1_OBJS += 2.4/emu_wrapper.o > endif > endif > > ifeq ($(DEBUG),y) > CFLAGS += -DEMU10K1_DEBUG > endif > > ifeq ($(DBGEMU),y) > CFLAGS += -DDBGEMU > endif > > ifeq ($(SEQUENCER_SUPPORT),y) > KERNEL_EXTRA_INCLUDES += -I$(KERNEL_SOURCE)/drivers/sound > CFLAGS += -DEMU10K1_SEQUENCER > endif > > CFLAGS += $(KERNEL_EXTRA_INCLUDES) > > OBJS := $(EMU10K1_OBJS) $(EMU10K1_JOY_OBJS) > E_OBJS := $(AC97_OBJS) > > include .rules > > all: .depend $(EMU10K1_MOD) $(AC97_MOD) $(EMU10K1_JOY_MOD) > @echo "**" > @echo "** The driver was succefully compiled, now install it with:" > @echo "** make install" > @echo "**" > > .depend: $(OBJS:.o=.c) $(E_OBJS:.o=.c) > $(CC) $(CFLAGS) $(MODFLAGS) -M $(OBJS:.o=.c) > $@ > $(CC) $(CFLAGS) $(MODFLAGS) -DEXPORT_SYMTAB -M $(E_OBJS:.o=.c) >> $@ > > $(EMU10K1_MOD): $(EMU10K1_OBJS) > $(LD) -r $^ -o $@ > > $(EMU10K1_JOY_MOD): $(EMU10K1_JOY_OBJS) > $(LD) -r $^ -o $@ > > install: all > mkdir -p ${DESTDIR}/$(MODULE_PATH) > install -c -m 664 $(EMU10K1_MOD) ${DESTDIR}/$(MODULE_PATH) > install -c -m 664 $(AC97_MOD) ${DESTDIR}/$(AC97_MODULE_PATH) > ifeq ($(KERNEL_RELEASE),2.2) > install -c -m 664 $(EMU10K1_JOY_MOD) ${DESTDIR}/$(MODULE_PATH) > endif > ifndef DESTDIR > /sbin/depmod -as $(KERNEL_VERSION) > /sbin/modprobe -r $(EMU10K1_MOD) $(EMU10K1_JOY_MOD) $(AC97_MOD) > endif > @echo "**" > @echo "** Driver install complete, to compile the tools type \"make > tool > s\"" > @echo "**" > > clean: > rm -f core .opts `find . -name '*.[oas]' -o -name '*~' \ > -o -name core -o -name .depend` > cd utils && $(MAKE) clean > > notice: > @echo "Driver for KERNEL VERSION = $(KERNEL_VERSION)" > @if [ ! -f $(KERNEL_SOURCE)/include/linux/modversions.h ]; then \ > echo "$(KERNEL_SOURCE)/include/linux/modversions.h is > missing" ; > \ > echo "Please run make dep in your kernel source tree" ;\ > exit 1;\ > fi > > ifeq (.depend,$(wildcard .depend)) > include .depend > endif > > tools: > cd utils && $(MAKE) > @echo "**" > @echo "** Now type \"make install-tools\" to install the tools" > @echo "**" > > install-tools: > cd utils && $(MAKE) install > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1014694651.22082.3.camel>