From 2b4d7bc2c739ea052952cfb81d8b438db5d9a5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 18 Feb 2002 09:34:12 +0000 Subject: Remove patches that break audio capability detection, as well as a patch that works around a driver bug that was fixed a year ago. PR: ports/33617, ports/32670, ports/35009, ports/32669 --- audio/mpg123/files/patch-audio.c | 105 --------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 audio/mpg123/files/patch-audio.c (limited to 'audio/mpg123/files/patch-audio.c') diff --git a/audio/mpg123/files/patch-audio.c b/audio/mpg123/files/patch-audio.c deleted file mode 100644 index 29e475a036d3..000000000000 --- a/audio/mpg123/files/patch-audio.c +++ /dev/null @@ -1,105 +0,0 @@ - -$FreeBSD$ - ---- audio.c.orig Tue Apr 6 18:53:05 1999 -+++ audio.c Tue Aug 21 19:38:08 2001 -@@ -62,8 +62,45 @@ - AUDIO_FORMAT_ALAW_8 - }; - -+/* 0: not checked -+ * 1: capable -+ * -1: not capable -+ */ - static char capabilities[NUM_CHANNELS][NUM_ENCODINGS][NUM_RATES]; - -+/* true (1): capable -+ * false (0): not capable -+ */ -+static char get_capabilities(struct audio_info_struct *ai, -+ int channel,int encoding,int rate) { -+ /* printf("get_capabilities(%d,%d,%d)\n",channel,encoding,rate); */ -+ if (capabilities[channel][encoding][rate] == 0) { -+ struct audio_info_struct ai1 = *ai; -+ int fmts; -+ int k; -+ ai1.channels = channels[channel]; -+ ai1.rate = rates[rate]; -+ fmts = audio_get_formats(&ai1); -+ /*printf("fmts=%x\n",fmts); */ -+ fflush(stdout); -+ if (fmts < 0) -+ for (k=0; k 1) { - fprintf(stderr,"\nAudio capabilities:\n |"); -@@ -111,13 +150,13 @@ - for(k=0;k= 0) { - for(i=f0;irate = rates[rn]; - ai->format = encodings[i]; - ai->channels = channels[c]; -- cgit v1.2.3