1
0
Fork 0
forked from len0rd/rockbox

Sansa AMSv2: enable PLLB and use it to generate a more accurate PCM frequency (playback rate error improves from 1.1% to 0.04%) - FS #10906 by me.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27845 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2010-08-18 21:42:03 +00:00
parent 2e572e4da0
commit b73d15e9c6

View file

@ -73,7 +73,7 @@
#define AS3525_PLLA_FREQ 240000000 #define AS3525_PLLA_FREQ 240000000
#define AS3525_PLLA_SETTING 0x113B #define AS3525_PLLA_SETTING 0x113B
#define AS3525_PLLB_FREQ 192000000 #define AS3525_PLLB_FREQ 192000000 /* allows 44.1kHz with 0.04% error*/
#define AS3525_PLLB_SETTING 0x155F #define AS3525_PLLB_SETTING 0x155F
#define AS3525_FCLK_PREDIV 0 #define AS3525_FCLK_PREDIV 0
@ -146,7 +146,14 @@
#endif /* CONFIG_CPU == AS3525v2 */ #endif /* CONFIG_CPU == AS3525v2 */
/* MCLK */ /* MCLK */
#if CONFIG_CPU == AS3525v2
/* on AMSv2 we can enable PLLB for MCLK to increase PCM sample rate accuracy
with no significant impact on battery life */
#define AS3525_MCLK_SEL AS3525_CLK_PLLB
#else
#define AS3525_MCLK_SEL AS3525_CLK_PLLA #define AS3525_MCLK_SEL AS3525_CLK_PLLA
#endif /* CONFIG_CPU == AS3525v2 */
#if (AS3525_MCLK_SEL==AS3525_CLK_PLLA) #if (AS3525_MCLK_SEL==AS3525_CLK_PLLA)
#define AS3525_MCLK_FREQ AS3525_PLLA_FREQ #define AS3525_MCLK_FREQ AS3525_PLLA_FREQ
#elif (AS3525_MCLK_SEL==AS3525_CLK_PLLB) #elif (AS3525_MCLK_SEL==AS3525_CLK_PLLB)