aboutsummaryrefslogtreecommitdiffstats
path: root/mbone/rat/files
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-11-02 22:56:29 +0800
committersobomax <sobomax@FreeBSD.org>2000-11-02 22:56:29 +0800
commit400d719dc18e0ff225a40fe0fcad4c22b6d84bdd (patch)
treef6f3fb6b6908d0a55797498338b6ac593444e02a /mbone/rat/files
parent881e7ac1eedc19e7f72a2ac2f345c468ec988f28 (diff)
downloadfreebsd-ports-gnome-400d719dc18e0ff225a40fe0fcad4c22b6d84bdd.tar.gz
freebsd-ports-gnome-400d719dc18e0ff225a40fe0fcad4c22b6d84bdd.tar.zst
freebsd-ports-gnome-400d719dc18e0ff225a40fe0fcad4c22b6d84bdd.zip
newpcm reports the mixer vol control as an input, but it is an output
control. There are some configurations of rat that will set vol to zero thinking it's an input, resulting in the user not hearing audio being received. This patch removes vol from the driver reported inputs. PR: 22082 Submitted by: maintainer
Diffstat (limited to 'mbone/rat/files')
-rw-r--r--mbone/rat/files/patch-ae20
1 files changed, 20 insertions, 0 deletions
diff --git a/mbone/rat/files/patch-ae b/mbone/rat/files/patch-ae
new file mode 100644
index 000000000000..e629be28aa06
--- /dev/null
+++ b/mbone/rat/files/patch-ae
@@ -0,0 +1,20 @@
+--- rat/auddev_pcm.c.orig Wed Oct 18 14:08:46 2000
++++ rat/auddev_newpcm.c Wed Oct 18 14:09:55 2000
+@@ -9,7 +9,7 @@
+
+ #ifndef HIDE_SOURCE_STRINGS
+ static const char cvsid[] =
+- "$Id: auddev_newpcm.c,v 1.1 2000/09/16 17:43:23 ucacoxh Exp $";
++ "$Id: auddev_newpcm.c,v 1.3 2000/10/18 11:15:42 ucacoxh Exp $";
+ #endif /* HIDE_SOURCE_STRINGS */
+
+ #include "config_unix.h"
+@@ -291,6 +291,8 @@
+
+ NEWPCM_AUDIO_IOCTL(fd, SOUND_MIXER_READ_RECMASK, &recmask);
+
++ /* Remove Vol from Rec mask - it is a play control! */
++ recmask = recmask & ~SOUND_MASK_VOLUME;
+ if (recmask & SOUND_MASK_MIC) {
+ iport = SOUND_MASK_MIC;
+ } else {