Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 14:30:17 +0100 (BST)
From:      oh@btinternet.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22082: ports/mbone/rat patch
Message-ID:  <200010181330.OAA22235@adelie.btinternet.com>

next in thread | raw e-mail | index | archive | help

>Number:         22082
>Category:       ports
>Synopsis:       Patch to remove mixer vol control from inputs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 18 06:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Orion Hodson
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
University College London
>Environment:

	

>Description:

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.

>How-To-Repeat:

	

>Fix:

The patch file below contains patch-ae that fixes the problem.  It is
a new file and will need to be cvs added after running patch.

Thanks
- Orion.

diff -uPr mbone/rat-pre-mixer-vol-patch/files/patch-ae mbone/rat/files/patch-ae
--- mbone/rat-pre-mixer-vol-patch/files/patch-ae	Thu Jan  1 01:00:00 1970
+++ mbone/rat/files/patch-ae	Wed Oct 18 14:11:13 2000
@@ -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 {



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010181330.OAA22235>