summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/fiio/system-fiio.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-17 16:57:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-17 18:38:49 -0400
commitd8d37ffdb8bed39df5d021afa9e09bf087b45d0d (patch)
treeeaea28432d9a76c98d69470c3c8a8bd0b4e17282 /firmware/target/hosted/fiio/system-fiio.c
parent0a4a920029bfb8194c37870b7e6d8e60cd7c8ef9 (diff)
downloadrockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.tar.gz
rockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.zip
Define a USB storage type, and hook it up for hosted targets
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
Diffstat (limited to 'firmware/target/hosted/fiio/system-fiio.c')
-rw-r--r--firmware/target/hosted/fiio/system-fiio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/fiio/system-fiio.c b/firmware/target/hosted/fiio/system-fiio.c
index f011ceea75..46a4d0f835 100644
--- a/firmware/target/hosted/fiio/system-fiio.c
+++ b/firmware/target/hosted/fiio/system-fiio.c
@@ -174,7 +174,11 @@ int volume_drive(int drive)
174#ifdef CONFIG_STORAGE_MULTI 174#ifdef CONFIG_STORAGE_MULTI
175int hostfs_driver_type(int drive) 175int hostfs_driver_type(int drive)
176{ 176{
177#if (CONFIG_STORAGE & STORAGE_USB)
178 return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM;
179#else
177 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM; 180 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM;
181#endif
178} 182}
179#endif /* CONFIG_STORAGE_MULTI */ 183#endif /* CONFIG_STORAGE_MULTI */
180 184