summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/sweep/files/sweep-0.8.2-alsa.patch')
-rw-r--r--media-sound/sweep/files/sweep-0.8.2-alsa.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-sound/sweep/files/sweep-0.8.2-alsa.patch b/media-sound/sweep/files/sweep-0.8.2-alsa.patch
new file mode 100644
index 000000000000..a09f6a3aa931
--- /dev/null
+++ b/media-sound/sweep/files/sweep-0.8.2-alsa.patch
@@ -0,0 +1,15 @@
+--- src/driver_alsa.c.org 2004-01-03 15:55:31.000000000 +0100
++++ src/driver_alsa.c 2004-01-03 15:56:19.000000000 +0100
+@@ -48,6 +48,12 @@
+
+ #ifdef DRIVER_ALSA
+
++#include <alsa/version.h>
++#if SND_LIB_MAJOR==1
++#define ALSA_PCM_OLD_HW_PARAMS_API
++#define ALSA_PCM_NEW_HW_PARAMS_API
++#endif
++
+ #include <alsa/asoundlib.h>
+
+ // shamelessly ripped from alsaplayer alsa-final driver: