From a4c68705593aa89752a8e913e83d17b7f5520f78 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 29 Mar 2010 22:52:19 +0000 Subject: as3525v2: microphone recording git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25391 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/audio/as3514.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- cgit v1.2.3