diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-10-12 19:06:16 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-10-12 19:06:16 +0200 |
commit | 005fa70b060726b5b3cac22a4cf8adbe45281104 (patch) | |
tree | 7a48372d047d0c91e210b49b2a2a5a0afb782ece /audio_in.c | |
parent | f17d43066fc1f8b03947032bb04a1b5cc22203fa (diff) | |
download | hardware_tinyalsa-audio-005fa70b060726b5b3cac22a4cf8adbe45281104.zip hardware_tinyalsa-audio-005fa70b060726b5b3cac22a4cf8adbe45281104.tar.gz hardware_tinyalsa-audio-005fa70b060726b5b3cac22a4cf8adbe45281104.tar.bz2 |
Build each file separately (with header inclusion fix)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'audio_in.c')
-rw-r--r-- | audio_in.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -18,9 +18,19 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#undef LOG_TAG #define LOG_TAG "audio_in" +#include <errno.h> +#include <pthread.h> +#include <stdint.h> +#include <sys/time.h> + +#include <cutils/log.h> + +#define EFFECT_UUID_NULL EFFECT_UUID_NULL_IN +#define EFFECT_UUID_NULL_STR EFFECT_UUID_NULL_STR_IN +#include "audio_hw.h" + /* * Functions */ @@ -129,7 +139,7 @@ static int audio_in_remove_audio_effect(const struct audio_stream *stream, effec * Interface */ -static void audio_hw_close_input_stream(struct audio_hw_device *dev, +void audio_hw_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *stream) { LOGD("%s(%p)", __func__, stream); @@ -138,7 +148,7 @@ static void audio_hw_close_input_stream(struct audio_hw_device *dev, free(stream); } -static int audio_hw_open_input_stream(struct audio_hw_device *dev, +int audio_hw_open_input_stream(struct audio_hw_device *dev, uint32_t devices, int *format, uint32_t *channels, uint32_t *sample_rate, audio_in_acoustics_t acoustics, struct audio_stream_in **stream_in) { |