From 00a3658e5a5fdca7c0d4dc532c5721efb8418ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1stor=20Mu=C3=B1oz?= Date: Sun, 15 May 2016 03:22:31 +0200 Subject: [PATCH] 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 --- firmware/export/config/ipod6g.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h index c8920c767c..cb8100bb55 100644 --- a/firmware/export/config/ipod6g.h +++ b/firmware/export/config/ipod6g.h @@ -246,6 +246,8 @@ #define USB_NUM_ENDPOINTS 6 #define USB_DEVBSS_ATTR __attribute__((aligned(32))) +#define USB_READ_BUFFER_SIZE (1024*24) + #define HAVE_SERIAL /* Disable iAP when LOGF_SERIAL is enabled to avoid conflicts */ #ifndef LOGF_SERIAL @@ -258,7 +260,5 @@ /* Define this, if you can switch on/off the lineout */ #define HAVE_LINEOUT_POWEROFF -#define USB_WRITE_BUFFER_SIZE (1024*64) - /* Define this if a programmable hotkey is mapped */ #define HAVE_HOTKEY