summaryrefslogtreecommitdiffstats
path: root/audio_in.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio_in.c')
-rw-r--r--audio_in.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/audio_in.c b/audio_in.c
index ef6730b..4fd1527 100644
--- a/audio_in.c
+++ b/audio_in.c
@@ -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)
{