summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audioin-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-13 02:41:17 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-13 02:42:17 +0200
commit8c91d05543aebb8de874270f0b770ef3e56b00bb (patch)
treeb1349dfa6f9da9d3614565fbb5c5f318ffbe4408 /firmware/target/arm/imx233/audioin-imx233.h
parent15c8ec8987faa16741b6016deaa8a2ed671c41de (diff)
downloadrockbox-8c91d05543aebb8de874270f0b770ef3e56b00bb.tar.gz
rockbox-8c91d05543aebb8de874270f0b770ef3e56b00bb.tar.bz2
rockbox-8c91d05543aebb8de874270f0b770ef3e56b00bb.zip
imx233: add audioin debug info
Change-Id: Iba6e2b720489c1d2178a44a0a4fe5df2a7540579
Diffstat (limited to 'firmware/target/arm/imx233/audioin-imx233.h')
-rw-r--r--firmware/target/arm/imx233/audioin-imx233.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/audioin-imx233.h b/firmware/target/arm/imx233/audioin-imx233.h
index a36cbf6e1a..12c7b1dad5 100644
--- a/firmware/target/arm/imx233/audioin-imx233.h
+++ b/firmware/target/arm/imx233/audioin-imx233.h
@@ -34,6 +34,22 @@
#define AUDIOIN_SELECT_HEADPHONE 2
#define AUDIOIN_SELECT_LINE2 3
+struct imx233_audioin_info_t
+{
+ // NOTE there is a convention here: adc -> adcvol -> adcmute
+ int freq; // in mHz
+ int muxselect[2];
+ bool adc;
+ int adcvol[2]; // in tenth-dB, l/r
+ bool adcmute[2]; // l/r
+ bool mux;
+ int muxvol[2]; // in tenth-db, l/r
+ bool muxmute[2]; // l/r
+ bool mic;
+ int micvol[2]; // in tenth-db, l/r
+ int micmute[2]; // l/r
+};
+
void imx233_audioin_preinit(void);
void imx233_audioin_postinit(void);
void imx233_audioin_open(void);
@@ -47,4 +63,6 @@ void imx233_audioin_set_freq(int fsel);
/* enable microphone */
void imx233_audioin_enable_mic(bool enable);
+struct imx233_audioin_info_t imx233_audioin_get_info(void);
+
#endif /* __audioin_imx233__ */