[alsa-devel] [PATCH 01/29] mixer: include library local header to find layout of structures

Takashi Sakamoto o-takashi at sakamocchi.jp
Fri Jul 15 02:23:05 CEST 2016


Inner this library, implementation of each features can find actual layout
of structures by including local header. Although, mixer feature is written
without the header and as the same way for applications. This brings some
inefficiencies such as usage of alloca() to keep memory objects for the
structures.

This commit includes the header for further improvements in mixer
feature.

Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
 src/mixer/simple_none.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c
index 4e55660..1d2112d 100644
--- a/src/mixer/simple_none.c
+++ b/src/mixer/simple_none.c
@@ -38,7 +38,7 @@
 #include <assert.h>
 #include <math.h>
 #include <limits.h>
-#include <alsa/asoundlib.h>
+#include "local.h"
 #include "config.h"
 #include "mixer_simple.h"
 
-- 
2.7.4



More information about the Alsa-devel mailing list