summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/fiio/system-fiio.c
diff options
context:
space:
mode:
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)
#ifdef CONFIG_STORAGE_MULTI
int hostfs_driver_type(int drive)
{
+#if (CONFIG_STORAGE & STORAGE_USB)
+ return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM;
+#else
return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM;
+#endif
}
#endif /* CONFIG_STORAGE_MULTI */