<commit_before># $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/sound/pci \
       ${.CURDIR}/../../../../gnu/dev/sound/pci

WARNS?=	2	## because sound is WARNS=2 only
## WARNS=3 fails on _class.refs in -pcm.c
## WARNS=4 fails on min/max in sound headers
## otherwise it should be WARNS=6 clean
KMOD=	snd_emu10kx

SRCS=	device_if.h bus_if.h pci_if.h
SRCS+=	isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h
SRCS+=	vnode_if.h opt_emu10kx.h
# Master, PCM and MIDI devices
SRCS+=	emu10kx.c
SRCS+=	emu10kx-pcm.c
SRCS+=	emu10kx-midi.c
# de-GPLed Makefiles
SRCS+=	emu10k1-alsa%diked.h
SRCS+=	p16v-alsa%diked.h
SRCS+=	p17v-alsa%diked.h

emu10k1-alsa%diked.h: emu10k1-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}
p16v-alsa%diked.h: p16v-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}
p17v-alsa%diked.h: p17v-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}

CLEANFILES+=	emu10k1-alsa%diked.h
CLEANFILES+=	p16v-alsa%diked.h
CLEANFILES+=	p17v-alsa%diked.h

.if !defined(KERNBUILDDIR)
opt_emu10kx.h:
	echo "#define	SND_EMU10KX_MULTICHANNEL" > opt_emu10kx.h
	echo "#define	SND_EMU10KX_MCH_RECORDING" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG_OUTPUTS" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG" >> opt_emu10kx.h
.endif

.include <bsd.kmod.mk><commit_msg>Disable multichannel recording in snd_emu10kx module. Whith multichannel recording enabled some programs (audio/audacity from ports) can't correctly enumerate all /dev/dsp device.<commit_after># $FreeBSD$
.PATH: ${.CURDIR}/../../../../dev/sound/pci \
       ${.CURDIR}/../../../../gnu/dev/sound/pci

WARNS?=	2	## because sound is WARNS=2 only
## WARNS=3 fails on _class.refs in -pcm.c
## WARNS=4 fails on min/max in sound headers
## otherwise it should be WARNS=6 clean
KMOD=	snd_emu10kx

SRCS=	device_if.h bus_if.h pci_if.h
SRCS+=	isa_if.h channel_if.h ac97_if.h mixer_if.h mpufoi_if.h
SRCS+=	vnode_if.h opt_emu10kx.h
# Master, PCM and MIDI devices
SRCS+=	emu10kx.c
SRCS+=	emu10kx-pcm.c
SRCS+=	emu10kx-midi.c
# de-GPLed Makefiles
SRCS+=	emu10k1-alsa%diked.h
SRCS+=	p16v-alsa%diked.h
SRCS+=	p17v-alsa%diked.h

emu10k1-alsa%diked.h: emu10k1-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}
p16v-alsa%diked.h: p16v-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}
p17v-alsa%diked.h: p17v-alsa.h
	grep -v '#include' ${.OODATE} | $(CC) -E -D__KERNEL__ -dM - \
	    | awk -F"[ 	(]" '/define/ \
	    { print "#ifndef " $$2 ; print ; print "#endif" }' \
	    >${.TARGET}

CLEANFILES+=	emu10k1-alsa%diked.h
CLEANFILES+=	p16v-alsa%diked.h
CLEANFILES+=	p17v-alsa%diked.h

.if !defined(KERNBUILDDIR)
opt_emu10kx.h:
	echo "#define	SND_EMU10KX_MULTICHANNEL" > opt_emu10kx.h
	echo "#undef	SND_EMU10KX_MCH_RECORDING" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG_OUTPUTS" >> opt_emu10kx.h
	echo "#undef	SND_EMU10KX_DEBUG" >> opt_emu10kx.h
.endif

.include <bsd.kmod.mk>
{'fraction_non_alphanumeric': 0.18759018759018758, 'fraction_numerical': 0.03867243867243867, 'mean_word_length': 3.247549019607843, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '240045', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1594, 'n_words': 325}