aboutsummaryrefslogtreecommitdiffstats
path: root/mbone/rat30
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-15 13:26:42 +0800
committeredwin <edwin@FreeBSD.org>2002-11-15 13:26:42 +0800
commitb07cee5535081c8c4816ae19d99f09b65d8843a1 (patch)
tree5bf65be31c6540b9bd86df456056ad54147ca096 /mbone/rat30
parentc2c05824427fd4ef757e9a3daecf6b805828ebf1 (diff)
downloadfreebsd-ports-graphics-b07cee5535081c8c4816ae19d99f09b65d8843a1.tar.gz
freebsd-ports-graphics-b07cee5535081c8c4816ae19d99f09b65d8843a1.tar.zst
freebsd-ports-graphics-b07cee5535081c8c4816ae19d99f09b65d8843a1.zip
Made mbone/rat compiling again (double patch-file)
Noticed on: bento
Diffstat (limited to 'mbone/rat30')
-rw-r--r--mbone/rat30/files/patch-ac53
1 files changed, 0 insertions, 53 deletions
diff --git a/mbone/rat30/files/patch-ac b/mbone/rat30/files/patch-ac
deleted file mode 100644
index 4b8e6227030..00000000000
--- a/mbone/rat30/files/patch-ac
+++ /dev/null
@@ -1,53 +0,0 @@
---- src/auddev_freebsd.c.p1 Mon Sep 18 10:27:40 2000
-+++ src/auddev_freebsd.c Mon Sep 18 10:30:42 2000
-@@ -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 */