mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
01249a2b82
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
21 lines
629 B
Plaintext
21 lines
629 B
Plaintext
--- 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 {
|