summaryrefslogtreecommitdiff
path: root/package/squeezelite/patches/patch-output_alsa_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-10 09:35:55 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-10 09:35:55 +0100
commit6ab5516b38f456affc6776e79e72e2761e89eec0 (patch)
tree4ead02b3e5be335209a281819ebc18a8df3c899e /package/squeezelite/patches/patch-output_alsa_c
parentb7c4dda05effe16c0a6cae108348bd1e496b7f37 (diff)
parentecf3290a88183d946e731b2fb3992dc5c3222a0f (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/squeezelite/patches/patch-output_alsa_c')
-rw-r--r--package/squeezelite/patches/patch-output_alsa_c13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/squeezelite/patches/patch-output_alsa_c b/package/squeezelite/patches/patch-output_alsa_c
new file mode 100644
index 000000000..7a3e8f836
--- /dev/null
+++ b/package/squeezelite/patches/patch-output_alsa_c
@@ -0,0 +1,13 @@
+--- squeezelite-1.5.orig/output_alsa.c 2014-01-24 11:24:16.000000000 +0100
++++ squeezelite-1.5/output_alsa.c 2014-02-08 13:36:12.000000000 +0100
+@@ -670,8 +670,10 @@ void output_init_alsa(log_level level, c
+ LOG_INFO("memory locked");
+ }
+
++#if defined(__GLIBC__)
+ mallopt(M_TRIM_THRESHOLD, -1);
+ mallopt(M_MMAP_MAX, 0);
++#endif
+
+ touch_memory(silencebuf, MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
+ touch_memory(outputbuf->buf, outputbuf->size);