diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-29 22:52:19 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-03-29 22:52:19 +0000 |
commit | a4c68705593aa89752a8e913e83d17b7f5520f78 (patch) | |
tree | aa541defb41090172f46d6ec48f682c8f641133c | |
parent | ed0c5edd6280b58755736700b95a3e65034d52b4 (diff) | |
download | rockbox-a4c68705593aa89752a8e913e83d17b7f5520f78.tar.gz rockbox-a4c68705593aa89752a8e913e83d17b7f5520f78.zip |
as3525v2: microphone recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25391 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/audio/as3514.c | 10 |
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) | |||
347 | as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_MIC1_on, | 347 | as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_MIC1_on, |
348 | AUDIOSET1_INPUT_MASK); | 348 | AUDIOSET1_INPUT_MASK); |
349 | 349 | ||
350 | #if CONFIG_CPU == AS3525v2 | ||
351 | /* Enable supply */ | ||
352 | as3514_clear(AS3514_MIC1_L, MIC1_L_M1_SUP_off); | ||
353 | #endif | ||
354 | |||
350 | /* M1_AGC_off */ | 355 | /* M1_AGC_off */ |
351 | as3514_clear(AS3514_MIC1_R, MIC1_R_M1_AGC_off); | 356 | as3514_clear(AS3514_MIC1_R, MIC1_R_M1_AGC_off); |
352 | } else { | 357 | } else { |
@@ -357,6 +362,11 @@ void audiohw_enable_recording(bool source_mic) | |||
357 | /* LIN1_or LIN2 on, rest off */ | 362 | /* LIN1_or LIN2 on, rest off */ |
358 | as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_LIN_on, | 363 | as3514_write_masked(AS3514_AUDIOSET1, AUDIOSET1_LIN_on, |
359 | AUDIOSET1_INPUT_MASK); | 364 | AUDIOSET1_INPUT_MASK); |
365 | |||
366 | #if CONFIG_CPU == AS3525v2 | ||
367 | /* Disable supply */ | ||
368 | as3514_set(AS3514_MIC1_L, MIC1_L_M1_SUP_off); | ||
369 | #endif | ||
360 | } | 370 | } |
361 | 371 | ||
362 | /* ADC_Mute_off */ | 372 | /* ADC_Mute_off */ |