summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-03-29 22:52:19 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-03-29 22:52:19 +0000
commita4c68705593aa89752a8e913e83d17b7f5520f78 (patch)
treeaa541defb41090172f46d6ec48f682c8f641133c /firmware
parented0c5edd6280b58755736700b95a3e65034d52b4 (diff)
downloadrockbox-a4c68705593aa89752a8e913e83d17b7f5520f78.tar.gz
rockbox-a4c68705593aa89752a8e913e83d17b7f5520f78.tar.bz2
rockbox-a4c68705593aa89752a8e913e83d17b7f5520f78.zip
as3525v2: microphone recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25391 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/as3514.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 9255828f75..04acaf27d2 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -347,6 +347,11 @@ void audiohw_enable_recording(bool source_mic)
as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_MIC1_on,
AUDIOSET1_INPUT_MASK);
+#if CONFIG_CPU == AS3525v2
+ /* Enable supply */
+ as3514_clear(AS3514_MIC1_L, MIC1_L_M1_SUP_off);
+#endif
+
/* M1_AGC_off */
as3514_clear(AS3514_MIC1_R, MIC1_R_M1_AGC_off);
} else {
@@ -357,6 +362,11 @@ void audiohw_enable_recording(bool source_mic)
/* LIN1_or LIN2 on, rest off */
as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_LIN_on,
AUDIOSET1_INPUT_MASK);
+
+#if CONFIG_CPU == AS3525v2
+ /* Disable supply */
+ as3514_set(AS3514_MIC1_L, MIC1_L_M1_SUP_off);
+#endif
}
/* ADC_Mute_off */