summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-12 23:03:30 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-12 23:03:30 +0000
commitbdf3004f966b7095b2b404bea9f15f18c9de8918 (patch)
tree31330c4aaa5df7f7550c1083f878c2f7499125d8 /firmware
parent6ed3ca74052542d331436adfef55f3f4763b8004 (diff)
downloadrockbox-bdf3004f966b7095b2b404bea9f15f18c9de8918.tar.gz
rockbox-bdf3004f966b7095b2b404bea9f15f18c9de8918.tar.bz2
rockbox-bdf3004f966b7095b2b404bea9f15f18c9de8918.zip
CLOCKING register should be set on hardware init.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19410 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/audio/wm8751.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c
index 79c7396629..b42c4b1041 100644
--- a/firmware/drivers/audio/wm8751.c
+++ b/firmware/drivers/audio/wm8751.c
@@ -125,6 +125,9 @@ void audiohw_preinit(void)
/* IWL=00(16 bit) FORMAT=10(I2S format) */
wmcodec_write(AINTFCE, AINTFCE_MS | AINTFCE_WL_16 |
AINTFCE_FORMAT_I2S);
+
+ /* Set default samplerate */
+ audiohw_set_frequency(HW_FREQ_DEFAULT);
}
/* Enable DACs and audio output after a short delay */