summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audioin-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-18 15:43:43 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-18 15:43:43 +0200
commitac4e76d0720eeca0dd00ec3bf1fcd80f76d543c0 (patch)
tree44ecd9aac360a15043e62ca2e49a58525fd040c1 /firmware/target/arm/imx233/audioin-imx233.h
parent57bb7b2d2704166b5d4dd307d3ae8d8ae99afbbd (diff)
downloadrockbox-ac4e76d0720eeca0dd00ec3bf1fcd80f76d543c0.tar.gz
rockbox-ac4e76d0720eeca0dd00ec3bf1fcd80f76d543c0.tar.bz2
rockbox-ac4e76d0720eeca0dd00ec3bf1fcd80f76d543c0.zip
imx233: implement audioin
Change-Id: I0cf896f59fd2176217d0dd1f6032c3463b936669
Diffstat (limited to 'firmware/target/arm/imx233/audioin-imx233.h')
-rw-r--r--firmware/target/arm/imx233/audioin-imx233.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioin-imx233.h b/firmware/target/arm/imx233/audioin-imx233.h
index e8c5b36d6d..a36cbf6e1a 100644
--- a/firmware/target/arm/imx233/audioin-imx233.h
+++ b/firmware/target/arm/imx233/audioin-imx233.h
@@ -26,9 +26,25 @@
#include "system.h"
#include "regs/regs-audioin.h"
+/* some audioout registers impact audioin */
+#include "regs/regs-audioout.h"
+
+#define AUDIOIN_SELECT_MICROPHONE 0
+#define AUDIOIN_SELECT_LINE1 1
+#define AUDIOIN_SELECT_HEADPHONE 2
+#define AUDIOIN_SELECT_LINE2 3
void imx233_audioin_preinit(void);
void imx233_audioin_postinit(void);
+void imx233_audioin_open(void);
void imx233_audioin_close(void);
+/* use AUDIONIN_SELECT_* values */
+void imx233_audioin_select_mux_input(bool right, int select);
+/* volume in half dB */
+void imx233_audioin_set_vol(bool right, int vol, int select);
+/* frequency index, NOT the frequency itself */
+void imx233_audioin_set_freq(int fsel);
+/* enable microphone */
+void imx233_audioin_enable_mic(bool enable);
#endif /* __audioin_imx233__ */