summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-05-05 04:47:20 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-05-05 04:47:20 +0000
commit9dd81ae53d87840a4cb6e9c4b90ecd2ca456835d (patch)
tree37785a271f82afd9a26a943611c84582d7abe7d0
parent08641941bbe3e1bf3088a6e7da71176bb25ae69f (diff)
downloadrockbox-9dd81ae53d87840a4cb6e9c4b90ecd2ca456835d.tar.gz
rockbox-9dd81ae53d87840a4cb6e9c4b90ecd2ca456835d.zip
Use settings for DAC AGC, cpeaker driver bias current (which is unused in rockbox), dither, and headphone bias current taken from c200v2 firmware. These should result in several mA power savings on all as3525, and probably an improvement on AS3525v2 as well as the c200v1 and e200v1. RMAA tests on the e200v1, clipv1 and clipv2 show no measurable difference in output when driving a 16 ohm load.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25821 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/audio/as3514.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index a3be9e9246..c161cd69d0 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -173,18 +173,21 @@ void audiohw_preinit(void)
173 /* Turn on SUM, DAC */ 173 /* Turn on SUM, DAC */
174 as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_SUM_on); 174 as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on | AUDIOSET1_SUM_on);
175 175
176 /* Set BIAS on, DITH on, AGC on, IBR_DAC max, LSP_LP on, IBR_LSP min */ 176 /* Set BIAS on, DITH off, AGC off, IBR_DAC max reduction, LSP_LP on,
177 as3514_write(AS3514_AUDIOSET2, 177 IBR_LSP max reduction (50%), taken from c200v2 OF
178 AUDIOSET2_IBR_DAC_0 | AUDIOSET2_LSP_LP | 178 */
179 AUDIOSET2_IBR_LSP_50); 179 as3514_write(AS3514_AUDIOSET2, AUDIOSET2_IBR_LSP_50 | AUDIOSET2_LSP_LP |
180 AUDIOSET2_IBR_DAC_50 | AUDIOSET2_AGC_off |AUDIOSET2_DITH_off );
180 181
181/* AMS Sansas based on the AS3525 need HPCM enabled, otherwise they output the 182/* AMS Sansas based on the AS3525 need HPCM enabled, otherwise they output the
182 L-R signal on both L and R headphone outputs instead of normal stereo. 183 L-R signal on both L and R headphone outputs instead of normal stereo.
183 Turning it off saves a little power on targets that don't need it. */ 184 Turning it off saves a little power on targets that don't need it. */
184#if (CONFIG_CPU == AS3525) 185#if (CONFIG_CPU == AS3525)
185 /* Set HPCM on, ZCU on */ 186 /* Set HPCM on, ZCU off, reduce bias current, settings taken from c200v2 OF
186 as3514_write(AS3514_AUDIOSET3, 0); 187 */
188 as3514_write(AS3514_AUDIOSET3, AUDIOSET3_IBR_HPH | AUDIOSET3_ZCU_off);
187#else 189#else
190 /* TODO: check if AS3525 settings save power on e200v1 or as3525v2 */
188 /* Set HPCM off, ZCU on */ 191 /* Set HPCM off, ZCU on */
189 as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_off); 192 as3514_write(AS3514_AUDIOSET3, AUDIOSET3_HPCM_off);
190#endif 193#endif