summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-01-21 20:51:36 +0100
committerUdo Schläpfer <rockbox-2014.10@desktopwarrior.net>2015-02-02 22:43:46 +0100
commit95fdad5e2827685160a5a669c3e8b4dc783995ad (patch)
tree14719a6459ededf8f746ccda965501a37c4f55e4 /apps/settings.c
parent040306a71663d98f1ca568b61010ee125d1e6501 (diff)
downloadrockbox-95fdad5e2827685160a5a669c3e8b4dc783995ad.tar.gz
rockbox-95fdad5e2827685160a5a669c3e8b4dc783995ad.zip
iBasso DX50/DX90: User selectable USB mode.
Depends on http://gerrit.rockbox.org/r/#/c/1043/. This patch adds a new setting in Settings -> General -> System: USB Mode. Usable in Quickscreen and Shortcuts. Possible settings are: - Mass Storage: The default, on USB connect export the internal and external drives as usual. Rockbox will exit gracefully in this case, since the internal drive (/mnt/sdcard) is exported as mass storage device and Android prevents Rockbox from continued execution. - Charge Only: USB charge only, do not export the internal and external drives. This will not close Rockbox. - ADB: Enable the Android Debug Bridge. This will not close Rockbox. Charge only and ADB are actually the same, since it is not yet established if charge only is doable without adb and major hooks into Android. German translation provided. This may be genric for Android based devices but is only enabled for iBasso Devices. Other maintainers may choose do adopt this. Change-Id: I616247c29946c6595ebcf8f0c14b2410c9f0498b
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index be7b7c30e6..a0e20839ed 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -107,6 +107,7 @@ struct system_status global_status;
107 107
108#if defined(DX50) || defined(DX90) 108#if defined(DX50) || defined(DX90)
109#include "governor-ibasso.h" 109#include "governor-ibasso.h"
110#include "usb-ibasso.h"
110#endif 111#endif
111 112
112 113
@@ -1088,6 +1089,7 @@ void settings_apply(bool read_disk)
1088 1089
1089#if defined(DX50) || defined(DX90) 1090#if defined(DX50) || defined(DX90)
1090 ibasso_set_governor(global_settings.governor); 1091 ibasso_set_governor(global_settings.governor);
1092 ibasso_set_usb_mode(global_settings.usb_mode);
1091#endif 1093#endif
1092 1094
1093 /* This should stay last */ 1095 /* This should stay last */