From 5d63776a24cb3de9f5ddbfbfb13ce03e50264c03 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 11 Mar 2007 05:04:48 +0000 Subject: Reenable aynchronous audio init stage. Really just single stage with aynchronous enabling of outputs. Keeps audio_init last so prior init steps can use the audiobuffer in any desired way. Audio will be fully initialized by the time the UI is entered. Playback of voice or audio will be delayed properly until audio hardware is ready. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12714 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/uda1380.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'firmware/drivers/uda1380.c') diff --git a/firmware/drivers/uda1380.c b/firmware/drivers/uda1380.c index 00019148c1..6984427fc9 100644 --- a/firmware/drivers/uda1380.c +++ b/firmware/drivers/uda1380.c @@ -270,6 +270,19 @@ int audiohw_init(void) return 0; } +void audiohw_postinit(void) +{ + /* Sleep a while so the power can stabilize (especially a long + delay is needed for the line out connector). */ + sleep(HZ); + /* Power on FSDAC and HP amp. */ + audiohw_enable_output(true); + + /* UDA1380: Unmute the master channel + (DAC should be at zero point now). */ + audiohw_mute(false); +} + /* Nice shutdown of UDA1380 codec */ void audiohw_close(void) { -- cgit v1.2.3