summaryrefslogtreecommitdiffstats
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 7688534e07..921121163f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -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];