summaryrefslogtreecommitdiff
path: root/package/alsa-lib/patches/patch-include_pcm_h
diff options
context:
space:
mode:
Diffstat (limited to 'package/alsa-lib/patches/patch-include_pcm_h')
-rw-r--r--package/alsa-lib/patches/patch-include_pcm_h28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/alsa-lib/patches/patch-include_pcm_h b/package/alsa-lib/patches/patch-include_pcm_h
new file mode 100644
index 000000000..6fe117463
--- /dev/null
+++ b/package/alsa-lib/patches/patch-include_pcm_h
@@ -0,0 +1,28 @@
+* added idea/patch from https://github.com/rofl0r/sabotage
+
+--- alsa-lib-1.0.27.2.orig/include/pcm.h 2013-07-08 14:31:36.000000000 +0200
++++ alsa-lib-1.0.27.2/include/pcm.h 2013-09-16 17:04:30.000000000 +0200
+@@ -33,6 +33,8 @@
+ extern "C" {
+ #endif
+
++#include <stdint.h>
++
+ /**
+ * \defgroup PCM PCM Interface
+ * See the \ref pcm page for more details.
+@@ -1048,10 +1050,10 @@ int snd_pcm_format_width(snd_pcm_format_
+ int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
+ snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
+ ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
+-u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
+-u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
+-u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
+-u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
++uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
++uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
++uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
++uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
+ int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
+
+ snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);