summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-04-12 16:34:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-04-12 21:54:59 +0000
commitc0a49d9bdf66f03b8de917395893886fd9222b35 (patch)
treea7fc3d7e8df63dcaf27e27a4516ee79858518fa3
parentb6fce99046a3677f27373f8c701e6f200e290236 (diff)
downloadrockbox-c0a49d9bdf66f03b8de917395893886fd9222b35.tar.gz
rockbox-c0a49d9bdf66f03b8de917395893886fd9222b35.zip
ibasso: Default to assuming the external SD card is inserted
Detection at startup is proving to be unreliable. Even if card is not present at startup, upon insertion it will sort itself out properly. Change-Id: I9ee90b724c90c530a39264f698c200a48aa72b1d
-rw-r--r--firmware/target/hosted/ibasso/vold-ibasso.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/hosted/ibasso/vold-ibasso.c b/firmware/target/hosted/ibasso/vold-ibasso.c
index f56bd683d3..c0cb06b6b8 100644
--- a/firmware/target/hosted/ibasso/vold-ibasso.c
+++ b/firmware/target/hosted/ibasso/vold-ibasso.c
@@ -26,6 +26,7 @@
26#include <stdbool.h> 26#include <stdbool.h>
27#include <string.h> 27#include <string.h>
28#include <unistd.h> 28#include <unistd.h>
29#include <stdlib.h>
29#include <sys/poll.h> 30#include <sys/poll.h>
30#include <sys/socket.h> 31#include <sys/socket.h>
31#include <sys/types.h> 32#include <sys/types.h>
@@ -82,7 +83,7 @@ static void vold_monitor_open_socket(void)
82} 83}
83 84
84/* Track state of external SD */ 85/* Track state of external SD */
85bool extsd_present = false; 86bool extsd_present = true; /* Worst-case is it will show up empty */
86 87
87/* 88/*
88 bionic does not have pthread_cancel. 89 bionic does not have pthread_cancel.
@@ -107,6 +108,10 @@ static void* vold_monitor_run(void* nothing)
107 108
108 DEBUGF("DEBUG %s: Thread start.", __func__); 109 DEBUGF("DEBUG %s: Thread start.", __func__);
109 110
111 /* Check to see if external SD is mounted */
112// extsd_present = !system("mountpoint -q /mnt/external_sd");
113// extsd_present = !system("mount -o remount,rw /mnt/external_sd");
114
110 vold_monitor_open_socket(); 115 vold_monitor_open_socket();
111 if(_vold_monitor_socket_fd < 0) 116 if(_vold_monitor_socket_fd < 0)
112 { 117 {