included only necessary headers

If users want to use only pcm.c or mixer.c
they can. It's not necessary to include
tinyalsa/asoundlib.h because mixer.c doesn't
use pcm.h and pcm.c doesn't use mixer.h.
This commit is contained in:
Ricardo Biehl Pasquali
2016-10-05 20:32:09 -03:00
parent 6a38d5fa49
commit 04952ee137
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
#define __user
#include <sound/asound.h>
#include <tinyalsa/asoundlib.h>
#include <tinyalsa/mixer.h>
/** A mixer control.
* @ingroup tinyalsa-mixer
+1 -1
View File
@@ -47,7 +47,7 @@
#define __user
#include <sound/asound.h>
#include <tinyalsa/asoundlib.h>
#include <tinyalsa/pcm.h>
#define PARAM_MAX SNDRV_PCM_HW_PARAM_LAST_INTERVAL
#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1<<2)