diff options
-rw-r--r-- | audio/emu10kx/Makefile | 3 | ||||
-rw-r--r-- | audio/emu10kx/files/patch-Makefile | 11 | ||||
-rw-r--r-- | audio/emu10kx/files/patch-emu10k1-pcm.c | 26 | ||||
-rw-r--r-- | audio/emu10kx/files/patch-emuctrl-Makefile | 15 |
4 files changed, 44 insertions, 11 deletions
diff --git a/audio/emu10kx/Makefile b/audio/emu10kx/Makefile index 82d7da4445c6..1e283653f57f 100644 --- a/audio/emu10kx/Makefile +++ b/audio/emu10kx/Makefile @@ -18,6 +18,9 @@ USE_BZIP2= yes NO_PACKAGE= should be recompiled for a particular FreeBSD kernel +MAN8= emuctrl.8 +PLIST_FILES= sbin/emuctrl + post-install: .if !defined(BATCH) && !defined(PACKAGE_BUILDING) @${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/audio/emu10kx/files/patch-Makefile b/audio/emu10kx/files/patch-Makefile deleted file mode 100644 index 19071fecade0..000000000000 --- a/audio/emu10kx/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig Sun Aug 7 10:23:02 2005 -+++ Makefile Sun Aug 7 10:23:08 2005 -@@ -14,7 +14,7 @@ - WARNS?=6 - NO_WERROR?=1 - WERROR= --SUBDIR=emuctrl -+#SUBDIR=emuctrl - - # [4.x Only]If you have another device with same major device number, change - # definition of E10KX_MAJOR below (valid numbers are 200-252 except diff --git a/audio/emu10kx/files/patch-emu10k1-pcm.c b/audio/emu10kx/files/patch-emu10k1-pcm.c new file mode 100644 index 000000000000..5c1ff6f6d280 --- /dev/null +++ b/audio/emu10kx/files/patch-emu10k1-pcm.c @@ -0,0 +1,26 @@ +--- emu10k1-pcm.c Sat Apr 23 05:47:26 2005 ++++ ../../emu10k1-pcm.c Sun Aug 14 17:54:02 2005 +@@ -135,7 +135,6 @@ + (sc->card->mixer->mix.volume[MIXER_P_VOLUME_RIGHT] == 0)) mute = 1; + left = V100_TOBIT6(sc->card->mixer->mix.volume[MIXER_P_VOLUME_LEFT]); + right = V100_TOBIT6(sc->card->mixer->mix.volume[MIXER_P_VOLUME_RIGHT]); +- if(mute == 1) left = right = 0; + emulated = AC97ENCODE(mute, left, right); + #ifdef EMU_AC97DEBUG + device_printf(sc->dev, "get MIX_MASTER: vol %d:%d ac97 m=%d l=%x r=%x e=%08x\n", +@@ -150,7 +149,6 @@ + (sc->card->mixer->fxbuses[0].volume[MIXER_P_VOLUME_RIGHT] == 0)) mute = 1; + left = V100_TOBIT6(sc->card->mixer->fxbuses[0].volume[MIXER_P_VOLUME_LEFT]); + right = V100_TOBIT6(sc->card->mixer->fxbuses[0].volume[MIXER_P_VOLUME_RIGHT]); +- if(mute == 1) left = right = 0; + emulated = AC97ENCODE(mute, left, right); + #ifdef EMU_AC97DEBUG + device_printf(sc->dev, "get MIX_PCM: vol %d:%d ac97 m=%d l=%x r=%x e=%08x\n", +@@ -169,7 +167,6 @@ + (sc->card->mixer->mix.volume[MIXER_R_VOLUME_RIGHT] == 0)) mute = 1; + left = 0x0f - V100_TOBIT4(sc->card->mixer->mix.volume[MIXER_R_VOLUME_LEFT]); + right = 0x0f - V100_TOBIT4(sc->card->mixer->mix.volume[MIXER_R_VOLUME_RIGHT]); +- if(mute == 1) left = right = 0; + emulated = AC97ENCODE(mute, left, right); + #ifdef EMU_AC97DEBUG + device_printf(sc->dev, "get MIX_RGAIN: vol %d:%d ac97 m=%d l=%x r=%x\n e=%08x", diff --git a/audio/emu10kx/files/patch-emuctrl-Makefile b/audio/emu10kx/files/patch-emuctrl-Makefile new file mode 100644 index 000000000000..2e8da94a7256 --- /dev/null +++ b/audio/emu10kx/files/patch-emuctrl-Makefile @@ -0,0 +1,15 @@ +--- emuctrl/Makefile.orig Sat Sep 17 16:17:51 2005 ++++ emuctrl/Makefile Sat Sep 17 16:20:59 2005 +@@ -3,8 +3,10 @@ + # $FreeBSD$ + + PROG= emuctrl +-MAN= emuctrl.8 +-BINDIR ?= /usr/sbin ++NO_MANCOMPRESS=YES ++MANDIR= ${PREFIX}/man/man ++MAN8= emuctrl.8 ++BINDIR= ${PREFIX}/sbin + + CSRCS= emuctrl.c + WARNS?= 6 |