summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/audio-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-09-21 00:02:14 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-09-21 00:36:51 +0100
commit5e2600eb3ae4563ac9d856ca7a63af1322679ea3 (patch)
tree7b278f129e826bc3e505ea43efe506dfc803f19f /firmware/target/arm/imx233/audio-imx233.h
parent6f7ee0bb7ce507902f571f823fe173f07ec7e32f (diff)
downloadrockbox-5e2600eb3ae4563ac9d856ca7a63af1322679ea3.tar.gz
rockbox-5e2600eb3ae4563ac9d856ca7a63af1322679ea3.zip
imx233: make microphone bias, bias pin and resistor configurable
This clearly fixes recording on targets where the bias pin was wrong. It may also improve recording on targets where the bias voltage was wrong. I was unable to find those parameters on the ZEN Mozaic, which fallback to default values. Change-Id: Ifb5f823c9cbd01f0d9a80fa5d49d93972c8b7cfe
Diffstat (limited to 'firmware/target/arm/imx233/audio-imx233.h')
-rw-r--r--firmware/target/arm/imx233/audio-imx233.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/audio-imx233.h b/firmware/target/arm/imx233/audio-imx233.h
index 035bf357e1..2596e81bac 100644
--- a/firmware/target/arm/imx233/audio-imx233.h
+++ b/firmware/target/arm/imx233/audio-imx233.h
@@ -36,6 +36,12 @@
* IMX233_AUDIO_SPKR_GATE_BANK (gpio bank)
* IMX233_AUDIO_SPKR_GATE_PIN (gpio pin)
* IMX233_AUDIO_SPKR_GATE_INVERTED (define if inverted)
+ *
+ * target can override those to control microphone parameters
+ * NOTE by default, mic select is 1, mic bias is 0 and mic resistor is 2KOhm
+ * IMX233_AUDIO_MIC_SELECT (mic bias pin: 0=lradc0, 1=lradc1)
+ * IMX233_AUDIO_MIC_BIAS (mic bias, 0=1.21V, 1=1.46, ..., 7=2.96V (0.25mV inc)
+ * IMX233_AUDIO_MIC_RESISTOR (mic resistor: 2KOhm, 4KOhm, 8KOhm)
*/
// do some initialisation related to next functions
void imx233_audio_preinit(void);
@@ -45,4 +51,4 @@ void imx233_audio_enable_hp(bool en);
// enable/disable the speaker audio gate (typically using a GPIO)
void imx233_audio_enable_spkr(bool en);
-#endif /* __audio_imx233__ */ \ No newline at end of file
+#endif /* __audio_imx233__ */