summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/fiio/system-fiio.c4
-rw-r--r--firmware/target/hosted/system-hosted.c7
2 files changed, 9 insertions, 2 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
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c
index cad84ac868..f485dc4c15 100644
--- a/firmware/target/hosted/system-hosted.c
+++ b/firmware/target/hosted/system-hosted.c
@@ -130,7 +130,7 @@ void system_exception_wait(void)
130bool hostfs_removable(IF_MD_NONVOID(int drive)) 130bool hostfs_removable(IF_MD_NONVOID(int drive))
131{ 131{
132#ifdef HAVE_MULTIDRIVE 132#ifdef HAVE_MULTIDRIVE
133 if (drive > 0) /* Active LOW */ 133 if (drive > 0)
134 return true; 134 return true;
135 else 135 else
136#endif 136#endif
@@ -157,7 +157,11 @@ int volume_drive(int drive)
157#ifdef CONFIG_STORAGE_MULTI 157#ifdef CONFIG_STORAGE_MULTI
158int hostfs_driver_type(int drive) 158int hostfs_driver_type(int drive)
159{ 159{
160#if (CONFIG_STORAGE & STORAGE_USB)
161 return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM;
162#else
160 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM; 163 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM;
164#endif
161} 165}
162#endif /* CONFIG_STORAGE_MULTI */ 166#endif /* CONFIG_STORAGE_MULTI */
163 167
@@ -185,4 +189,3 @@ bool volume_present(int volume)
185 return hostfs_present(volume); 189 return hostfs_present(volume);
186} 190}
187#endif 191#endif
188