diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2006-04-07 10:38:30 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2006-04-07 10:38:30 +0000 |
commit | b47be74084057e3550b8723eae1dbc0f7c0d2fa5 (patch) | |
tree | 82e808f1c6023ffd99af5a14a44b649fd49d587e /audio/rat30/files/patch-aa | |
parent | 503c7f7052756548d3712a6b0f3fb6d32ddbb8e9 (diff) | |
download | ports-b47be74084057e3550b8723eae1dbc0f7c0d2fa5.tar.gz ports-b47be74084057e3550b8723eae1dbc0f7c0d2fa5.zip |
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_1_0'.release/6.1.0
Notes
Notes:
svn path=/head/; revision=159032
svn path=/tags/RELEASE_6_1_0/; revision=159033; tag=release/6.1.0
Diffstat (limited to 'audio/rat30/files/patch-aa')
-rw-r--r-- | audio/rat30/files/patch-aa | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/audio/rat30/files/patch-aa b/audio/rat30/files/patch-aa deleted file mode 100644 index 5eb716af785e..000000000000 --- a/audio/rat30/files/patch-aa +++ /dev/null @@ -1,62 +0,0 @@ ---- ./src/auddev_freebsd.c.orig Sun Oct 20 14:05:07 2002 -+++ ./src/auddev_freebsd.c Sun Oct 20 14:05:16 2002 -@@ -45,7 +45,7 @@ - #include "bat_include.h" - #ifdef FreeBSD - --#include <machine/soundcard.h> -+#include <sys/soundcard.h> - - int can_read = FALSE; - int can_write = FALSE; -@@ -204,18 +204,10 @@ - if (audio_fd <= 0) { - return; - } -- switch (iport) { -- case AUDIO_MICROPHONE : if (ioctl(audio_fd, MIXER_WRITE(SOUND_MIXER_MIC), &volume) == -1) { -- perror("Setting gain"); -- } -- return; -- case AUDIO_LINE_IN : if (ioctl(audio_fd, MIXER_WRITE(SOUND_MIXER_LINE), &volume) == -1) { -- perror("Setting gain"); -- } -- return; -+ if (ioctl(audio_fd, SOUND_MIXER_WRITE_RECLEV, &volume) == -1) { -+ perror("Setting gain"); - } -- printf("ERROR: Unknown iport in audio_set_gain!\n"); -- abort(); -+ return; - } - - int -@@ -226,17 +218,8 @@ - if (audio_fd <= 0) { - return (0); - } -- switch (iport) { -- case AUDIO_MICROPHONE : if (ioctl(audio_fd, MIXER_READ(SOUND_MIXER_MIC), &volume) == -1) { -- perror("Getting gain"); -- } -- break; -- case AUDIO_LINE_IN : if (ioctl(audio_fd, MIXER_READ(SOUND_MIXER_LINE), &volume) == -1) { -- perror("Getting gain"); -- } -- break; -- default : printf("ERROR: Unknown iport in audio_set_gain!\n"); -- abort(); -+ if (ioctl(audio_fd, SOUND_MIXER_READ_RECLEV, &volume) == -1) { -+ perror("Setting gain"); - } - return device_to_bat(volume & 0xff); - } -@@ -263,7 +246,7 @@ - if (audio_fd <= 0) { - return (0); - } -- if (ioctl(audio_fd, MIXER_READ(SOUND_MIXER_VOLUME), &volume) == -1) { -+ if (ioctl(audio_fd, MIXER_READ(SOUND_MIXER_PCM), &volume) == -1) { - perror("Getting volume"); - } - return device_to_bat(volume & 0x000000ff); /* Extract left channel volume */ |