forked from len0rd/rockbox
iPod Classic: modify USB storage read/write buffers size
The write buffer size is undefined to use the default 24Kb. size defined (and recomended) in usb_storage.c, the read buffer size is also decremented to 24 Kb. USB sequential read and write benchmarks using diskdump are now 8-9% faster. Change-Id: Ia7c9f77b57c8ca5b566b508efffbd713d1587acf
This commit is contained in:
parent
b8a237dca2
commit
00a3658e5a
1 changed files with 2 additions and 2 deletions
|
@ -246,6 +246,8 @@
|
||||||
#define USB_NUM_ENDPOINTS 6
|
#define USB_NUM_ENDPOINTS 6
|
||||||
#define USB_DEVBSS_ATTR __attribute__((aligned(32)))
|
#define USB_DEVBSS_ATTR __attribute__((aligned(32)))
|
||||||
|
|
||||||
|
#define USB_READ_BUFFER_SIZE (1024*24)
|
||||||
|
|
||||||
#define HAVE_SERIAL
|
#define HAVE_SERIAL
|
||||||
/* Disable iAP when LOGF_SERIAL is enabled to avoid conflicts */
|
/* Disable iAP when LOGF_SERIAL is enabled to avoid conflicts */
|
||||||
#ifndef LOGF_SERIAL
|
#ifndef LOGF_SERIAL
|
||||||
|
@ -258,7 +260,5 @@
|
||||||
/* Define this, if you can switch on/off the lineout */
|
/* Define this, if you can switch on/off the lineout */
|
||||||
#define HAVE_LINEOUT_POWEROFF
|
#define HAVE_LINEOUT_POWEROFF
|
||||||
|
|
||||||
#define USB_WRITE_BUFFER_SIZE (1024*64)
|
|
||||||
|
|
||||||
/* Define this if a programmable hotkey is mapped */
|
/* Define this if a programmable hotkey is mapped */
|
||||||
#define HAVE_HOTKEY
|
#define HAVE_HOTKEY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue