From 1645c148e35becff9668cc541be5c850153370eb Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 17 Nov 2011 18:40:00 +0000 Subject: Simulate usb plugging on the sim better using sim_tasks. Now all threads need to ack the connection like on real target, dircache is unloaded and playback stops accordingly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31009 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index d591998bec..b20237cc7c 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -190,9 +190,7 @@ static enum filling_state STATE_FINISHED, /* all remaining tracks are fully buffered */ STATE_ENDING, /* audio playback is ending */ STATE_ENDED, /* audio playback is done */ -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) STATE_USB, /* USB mode, ignore most messages */ -#endif } filling = STATE_IDLE; /* Track info - holds information about each track in the buffer */ @@ -3129,7 +3127,6 @@ static void audio_thread(void) break; #endif /* AUDIO_HAVE_RECORDING */ -#if (CONFIG_PLATFORM & PLATFORM_NATIVE) case SYS_USB_CONNECTED: LOGFQUEUE("audio < SYS_USB_CONNECTED"); audio_stop_playback(); @@ -3139,7 +3136,6 @@ static void audio_thread(void) filling = STATE_USB; usb_acknowledge(SYS_USB_CONNECTED_ACK); break; -#endif /* (CONFIG_PLATFORM & PLATFORM_NATIVE) */ case SYS_TIMEOUT: LOGFQUEUE_SYS_TIMEOUT("audio < SYS_TIMEOUT"); -- cgit v1.2.3