Blame patches/alsa_lib-1.1.6.local.patch

Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/include/asoundlib-head.h alsa-lib-1.1.4.1/include/asoundlib-head.h
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/include/asoundlib-head.h	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/include/asoundlib-head.h	2017-08-08 21:10:17.989795195 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -35,6 +35,6 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <string.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <fcntl.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <assert.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <errno.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <stdarg.h>
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/include/local.h alsa-lib-1.1.4.1/include/local.h
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/include/local.h	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/include/local.h	2017-08-07 19:47:39.843855153 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -47,7 +47,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #error Header defining endianness not defined
Lucio Andrés Illanes Albornoz 2b9eef
 #endif
Lucio Andrés Illanes Albornoz 2b9eef
 #include <stdarg.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/types.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <errno.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #if defined(__linux__)
Lucio Andrés Illanes Albornoz 2b9eef
@@ -254,8 +254,10 @@
Lucio Andrés Illanes Albornoz 2b9eef
 /*
Lucio Andrés Illanes Albornoz 2b9eef
  */
Lucio Andrés Illanes Albornoz 2b9eef
 #define HAVE_GNU_LD
Lucio Andrés Illanes Albornoz 2b9eef
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz 2b9eef
 #define HAVE_ELF
Lucio Andrés Illanes Albornoz 2b9eef
 #define HAVE_ASM_PREVIOUS_DIRECTIVE
Lucio Andrés Illanes Albornoz 2b9eef
+#endif
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
 /* Stolen from libc-symbols.h in GNU glibc */
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/include/sound/asoc.h alsa-lib-1.1.4.1/include/sound/asoc.h
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/include/sound/asoc.h	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/include/sound/asoc.h	2017-08-07 19:53:15.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -300,12 +300,12 @@
Lucio Andrés Illanes Albornoz 2b9eef
 	__le32 size;            /* in bytes of this structure */
Lucio Andrés Illanes Albornoz 2b9eef
 	__le32 id;		/* unique ID - - used to match */
Lucio Andrés Illanes Albornoz 2b9eef
 	__le32 fmt;		/* SND_SOC_DAI_FORMAT_ format value */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 clock_gated;	/* 1 if clock can be gated to save power */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 invert_bclk;	/* 1 for inverted BCLK, 0 for normal */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 invert_fsync;	/* 1 for inverted frame clock, 0 for normal */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 bclk_master;	/* 1 for master of BCLK, 0 for slave */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 fsync_master;	/* 1 for master of FSYNC, 0 for slave */
Lucio Andrés Illanes Albornoz 2b9eef
-	__u8 mclk_direction;    /* 0 for input, 1 for output */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t clock_gated;	/* 1 if clock can be gated to save power */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t invert_bclk;	/* 1 for inverted BCLK, 0 for normal */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t invert_fsync;	/* 1 for inverted frame clock, 0 for normal */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t bclk_master;	/* 1 for master of BCLK, 0 for slave */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t fsync_master;	/* 1 for master of FSYNC, 0 for slave */
Lucio Andrés Illanes Albornoz 2b9eef
+	uint8_t mclk_direction;    /* 0 for input, 1 for output */
Lucio Andrés Illanes Albornoz 2b9eef
 	__le16 reserved;	/* for 32bit alignment */
Lucio Andrés Illanes Albornoz 2b9eef
 	__le32 mclk_rate;	/* MCLK or SYSCLK freqency in Hz */
Lucio Andrés Illanes Albornoz 2b9eef
 	__le32 bclk_rate;	/* BCLK freqency in Hz */
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/control/control_shm.c alsa-lib-1.1.4.1/src/control/control_shm.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/control/control_shm.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/control/control_shm.c	2017-08-07 20:05:09.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -27,7 +27,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <fcntl.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/socket.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/un.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/uio.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/pcm/pcm_direct.c alsa-lib-1.1.4.1/src/pcm/pcm_direct.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/pcm/pcm_direct.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/pcm/pcm_direct.c	2017-08-07 20:04:20.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -30,7 +30,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <grp.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/ioctl.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/sem.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/wait.h>
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/pcm/pcm_mmap.c alsa-lib-1.1.4.1/src/pcm/pcm_mmap.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/pcm/pcm_mmap.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/pcm/pcm_mmap.c	2017-08-07 20:02:18.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -22,7 +22,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <stdio.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <malloc.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <string.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #ifdef HAVE_SYS_SHM_H
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/pcm/pcm_share.c alsa-lib-1.1.4.1/src/pcm/pcm_share.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/pcm/pcm_share.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/pcm/pcm_share.c	2017-08-07 20:02:49.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -34,7 +34,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <signal.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <math.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/socket.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <pthread.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include "pcm_local.h"
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/pcm/pcm_shm.c alsa-lib-1.1.4.1/src/pcm/pcm_shm.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/pcm/pcm_shm.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/pcm/pcm_shm.c	2017-08-07 20:02:33.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -36,7 +36,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/ioctl.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/socket.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/un.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <netinet/in.h>
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/seq/seq.c alsa-lib-1.1.4.1/src/seq/seq.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/seq/seq.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/seq/seq.c	2017-08-07 20:00:54.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -777,7 +777,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
 */
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include "seq_local.h"
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz 2b9eef
 /****************************************************************************
Lucio Andrés Illanes Albornoz 2b9eef
diff -ru alsa-lib-1.1.4.1.orig/src/shmarea.c alsa-lib-1.1.4.1/src/shmarea.c
Lucio Andrés Illanes Albornoz 2b9eef
--- alsa-lib-1.1.4.1.orig/src/shmarea.c	2017-06-01 08:27:36.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
+++ alsa-lib-1.1.4.1/src/shmarea.c	2017-08-07 19:57:44.000000000 +0200
Lucio Andrés Illanes Albornoz 2b9eef
@@ -27,7 +27,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 #include <malloc.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <string.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <errno.h>
Lucio Andrés Illanes Albornoz 2b9eef
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
+#include <poll.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include "list.h"
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
--- alsa-lib-1.1.4.1/include/alsa-symbols.h.orig	2017-06-01 06:27:36.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+++ alsa-lib-1.1.4.1/include/alsa-symbols.h	2017-09-13 16:07:27.720000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -45,6 +45,8 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #define use_default_symbol_version(real, name, version) \
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
         __asm__ (".weak " ASM_NAME(#name)); \
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
         __asm__ (ASM_NAME(#name) " = " ASM_NAME(#real))
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+#elif defined(__midipix__)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+#define use_default_symbol_version(real, name, version) /* nothing */
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #else
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #define use_default_symbol_version(real, name, version) \
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	__asm__ (".weak " ASM_NAME(#name)); \
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
--- alsa-lib-1.1.4.1/src/control/control.c.orig	2017-06-01 06:27:36.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+++ alsa-lib-1.1.4.1/src/control/control.c	2017-09-13 16:19:34.464000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -90,7 +90,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <string.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <fcntl.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <signal.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+#include <poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <stdbool.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include "control_local.h"
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -2504,11 +2504,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \param obj CTL element id/info
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \return zero value if no dimensions are defined, otherwise positive value with count of dimensions
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  */
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#ifndef DOXYGEN
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-int INTERNAL(snd_ctl_elem_info_get_dimensions)(const snd_ctl_elem_info_t *obj)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#else
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 int snd_ctl_elem_info_get_dimensions(const snd_ctl_elem_info_t *obj)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 {
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	int i;
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -2526,11 +2522,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \param idx The dimension index
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \return zero value if no dimension width is defined, otherwise positive value with with of specified dimension
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  */
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#ifndef DOXYGEN
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-int INTERNAL(snd_ctl_elem_info_get_dimension)(const snd_ctl_elem_info_t *obj, unsigned int idx)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#else
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 int snd_ctl_elem_info_get_dimension(const snd_ctl_elem_info_t *obj, unsigned int idx)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 {
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	assert(obj);
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	if (idx > 3)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
--- alsa-lib-1.1.4.1/src/timer/timer.c.orig	2017-06-01 06:27:36.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+++ alsa-lib-1.1.4.1/src/timer/timer.c	2017-09-13 16:20:57.728000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -736,11 +736,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \param params pointer to #snd_timer_params_t structure
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  * \param filter The event filter bits to set
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
  */
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#ifndef DOXYGEN
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-void INTERNAL(snd_timer_params_set_filter)(snd_timer_params_t * params, unsigned int filter)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#else
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 void snd_timer_params_set_filter(snd_timer_params_t * params, unsigned int filter)
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 {
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	assert(params);
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	params->filter = filter;
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
--- alsa-lib-1.1.4.1/src/pcm/pcm.c.orig	2017-06-01 06:27:36.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+++ alsa-lib-1.1.4.1/src/pcm/pcm.c	2017-09-13 16:21:58.544000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -651,7 +651,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <stdarg.h>
Lucio Andrés Illanes Albornoz 2b9eef
 #include <signal.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <ctype.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+#include <poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <sys/mman.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <limits.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include "pcm_local.h"
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
--- alsa-lib-1.1.4.1/aserver/aserver.c.orig	2017-06-01 06:27:36.000000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+++ alsa-lib-1.1.4.1/aserver/aserver.c	2017-09-13 16:24:10.272000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -20,7 +20,7 @@
Lucio Andrés Illanes Albornoz 2b9eef
 
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <sys/shm.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <sys/socket.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-#include <sys/poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+#include <poll.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <sys/un.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <sys/uio.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 #include <stdio.h>
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
@@ -473,7 +473,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 		ctrl->result = snd_pcm_rewind(pcm, ctrl->u.rewind.frames);
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 		break;
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	case SND_PCM_IOCTL_FORWARD:
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
-		ctrl->result = snd_pcm_forward(pcm, ctrl->u.forward.frames);
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
+		ctrl->result = INTERNAL(snd_pcm_forward(pcm, ctrl->u.forward.frames));
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 		break;
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	case SNDRV_PCM_IOCTL_LINK:
Lucio Andrés Illanes Albornoz (arab, vxp) 8cbc8c
 	{