aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2005-09-18 18:07:00 +0800
committervsevolod <vsevolod@FreeBSD.org>2005-09-18 18:07:00 +0800
commitf63cb8233ee7f1cd065d5ebf2c2b1990057803c6 (patch)
tree38a77f13f7e07085c0d148e403b3e8da71d4a5c1
parentbb335799460e85fe5170ff2b6f3f90b34a07ad9b (diff)
downloadfreebsd-ports-gnome-f63cb8233ee7f1cd065d5ebf2c2b1990057803c6.tar.gz
freebsd-ports-gnome-f63cb8233ee7f1cd065d5ebf2c2b1990057803c6.tar.zst
freebsd-ports-gnome-f63cb8233ee7f1cd065d5ebf2c2b1990057803c6.zip
Fix driver to work with new ac97 mute checking code in the 7.0 kernel.
Add emuctrl. A mixer which allows controlling this driver. PR: 86236 Submitted by: Michael Seyfert (maintainer)
-rw-r--r--audio/emu10kx/Makefile3
-rw-r--r--audio/emu10kx/files/patch-Makefile11
-rw-r--r--audio/emu10kx/files/patch-emu10k1-pcm.c26
-rw-r--r--audio/emu10kx/files/patch-emuctrl-Makefile15
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