diff options
author | Tomasz Moń <desowin@gmail.com> | 2021-06-09 20:50:30 +0200 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2021-06-09 20:52:36 +0200 |
commit | 163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51 (patch) | |
tree | 78c666fe344cb9491870a1162fd69dd3bf25a58e /firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c | |
parent | a11c88e0df66b4020ef4d9025b9fb07f04402852 (diff) | |
download | rockbox-163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51.tar.gz rockbox-163e3507f87b7de7b9e1bdfc7b2c5d5e0357da51.zip |
Sansa Connect: Working USB Mass Storage
Acknowledge SYS_USB_CONNECTED in all queues so USB task can gain
exclusive access to the storage.
Reduce CPPI requeue timeout to speed up disk access.
Change-Id: I322aae4cac679696bb8186ccacf838a18f0715e9
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c index 611bdbfde5..1af9789174 100644 --- a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c +++ b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c | |||
@@ -374,7 +374,13 @@ void btn_thread(void) | |||
374 | while (1) | 374 | while (1) |
375 | { | 375 | { |
376 | queue_wait(&btn_queue, &ev); | 376 | queue_wait(&btn_queue, &ev); |
377 | 377 | ||
378 | if (ev.id == SYS_USB_CONNECTED) | ||
379 | { | ||
380 | /* Allow USB to gain exclusive storage access */ | ||
381 | usb_acknowledge(SYS_USB_CONNECTED_ACK); | ||
382 | } | ||
383 | |||
378 | /* Ignore all messages except BTN_INTERRUPT */ | 384 | /* Ignore all messages except BTN_INTERRUPT */ |
379 | if (ev.id != BTN_INTERRUPT) | 385 | if (ev.id != BTN_INTERRUPT) |
380 | continue; | 386 | continue; |