Fixed the early usb initialization problem.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8825 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
27d5abaea8
commit
747664918b
1 changed files with 9 additions and 0 deletions
|
@ -2563,6 +2563,15 @@ static void playback_init(void)
|
|||
queue_wait(&audio_queue, &ev);
|
||||
if (ev.id == Q_AUDIO_POSTINIT)
|
||||
break ;
|
||||
|
||||
#ifndef SIMULATOR
|
||||
if (ev.id == SYS_USB_CONNECTED)
|
||||
{
|
||||
logf("USB: Audio preinit");
|
||||
usb_acknowledge(SYS_USB_CONNECTED_ACK);
|
||||
usb_wait_for_disconnect(&audio_queue);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
filebuf = (char *)&audiobuf[MALLOC_BUFSIZE];
|
||||
|
|
Loading…
Reference in a new issue