From d8d37ffdb8bed39df5d021afa9e09bf087b45d0d Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 17 Oct 2020 16:57:51 -0400 Subject: Define a USB storage type, and hook it up for hosted targets Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2 --- firmware/target/hosted/fiio/system-fiio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/target/hosted/fiio') 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 */ -- cgit v1.2.3