summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/deutsch.lang14
-rw-r--r--apps/lang/english.lang14
-rw-r--r--apps/main.c3
-rw-r--r--apps/menus/settings_menu.c20
-rw-r--r--apps/settings.h3
-rw-r--r--apps/settings_list.c4
6 files changed, 51 insertions, 7 deletions
diff --git a/apps/lang/deutsch.lang b/apps/lang/deutsch.lang
index c50268ca85..b77f13c752 100644
--- a/apps/lang/deutsch.lang
+++ b/apps/lang/deutsch.lang
@@ -11533,3 +11533,17 @@
11533 swcodec: "Tastentöne Wiederholung" 11533 swcodec: "Tastentöne Wiederholung"
11534 </voice> 11534 </voice>
11535</phrase> 11535</phrase>
11536<phrase>
11537 id: LANG_ACCESSORY_SUPPLY
11538 desc: in keyclick settings menu
11539 user:
11540 <source>
11541 *: "Zubehör Spannungsversorgung"
11542 </source>
11543 <dest>
11544 *: "Zubehör Spannungsversorgung"
11545 </dest>
11546 <voice>
11547 *: "Zubehör Spannungsversorgung"
11548 </voice>
11549</phrase>
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index e3b632f790..6a793711c2 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -11576,3 +11576,17 @@
11576 swcodec: "Keyclick Repeats" 11576 swcodec: "Keyclick Repeats"
11577 </voice> 11577 </voice>
11578</phrase> 11578</phrase>
11579<phrase>
11580 id: LANG_ACCESSORY_SUPPLY
11581 desc: in keyclick settings menu
11582 user:
11583 <source>
11584 *: "Accessory Power Supply"
11585 </source>
11586 <dest>
11587 *: "Accessory Power Supply"
11588 </dest>
11589 <voice>
11590 *: "Accessory Power Supply"
11591 </voice>
11592</phrase>
diff --git a/apps/main.c b/apps/main.c
index 8b1e2e4556..e84a672476 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -583,6 +583,9 @@ static void init(void)
583#if CONFIG_CHARGING 583#if CONFIG_CHARGING
584 car_adapter_mode_init(); 584 car_adapter_mode_init();
585#endif 585#endif
586#ifdef HAVE_ACCESSORY_SUPPLY
587 accessory_supply_set(global_settings.accessory_supply);
588#endif
586} 589}
587 590
588#ifdef CPU_PP 591#ifdef CPU_PP
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index 9d816c99b1..635651e256 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -34,19 +34,19 @@
34#include "splash.h" 34#include "splash.h"
35#include "talk.h" 35#include "talk.h"
36#include "sprintf.h" 36#include "sprintf.h"
37#include "powermgmt.h" 37#include "powermgmt.h"
38#if CONFIG_CODEC == SWCODEC 38#if CONFIG_CODEC == SWCODEC
39#include "playback.h" 39#include "playback.h"
40#endif 40#endif
41#ifdef HAVE_RTC_ALARM 41#ifdef HAVE_RTC_ALARM
42#include "alarm_menu.h" 42#include "alarm_menu.h"
43#endif 43#endif
44#if CONFIG_TUNER 44#if CONFIG_TUNER
45#include "radio.h" 45#include "radio.h"
46#endif 46#endif
47#if CONFIG_RTC 47#if CONFIG_RTC
48#include "screens.h" 48#include "screens.h"
49#endif 49#endif
50 50
51/***********************************/ 51/***********************************/
52/* TAGCACHE MENU */ 52/* TAGCACHE MENU */
@@ -348,6 +348,9 @@ MENUITEM_SETTING(line_in, &global_settings.line_in, linein_callback);
348#if CONFIG_CHARGING 348#if CONFIG_CHARGING
349MENUITEM_SETTING(car_adapter_mode, &global_settings.car_adapter_mode, NULL); 349MENUITEM_SETTING(car_adapter_mode, &global_settings.car_adapter_mode, NULL);
350#endif 350#endif
351#ifdef HAVE_ACCESSORY_SUPPLY
352MENUITEM_SETTING(accessory_supply, &global_settings.accessory_supply, NULL);
353#endif
351MENUITEM_SETTING(start_screen, &global_settings.start_in_screen, NULL); 354MENUITEM_SETTING(start_screen, &global_settings.start_in_screen, NULL);
352 355
353#ifdef HAVE_BUTTON_LIGHT 356#ifdef HAVE_BUTTON_LIGHT
@@ -385,6 +388,9 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM),
385#if CONFIG_CHARGING 388#if CONFIG_CHARGING
386 &car_adapter_mode, 389 &car_adapter_mode,
387#endif 390#endif
391#ifdef HAVE_ACCESSORY_SUPPLY
392 &accessory_supply,
393#endif
388#ifdef HAVE_BUTTON_LIGHT 394#ifdef HAVE_BUTTON_LIGHT
389 &buttonlight_timeout, 395 &buttonlight_timeout,
390#endif 396#endif
diff --git a/apps/settings.h b/apps/settings.h
index 25314d7f70..7c32ba21e3 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -453,6 +453,9 @@ struct user_settings
453 bool peak_meter_clipcounter; /* clipping count indicator */ 453 bool peak_meter_clipcounter; /* clipping count indicator */
454#endif 454#endif
455 bool car_adapter_mode; /* 0=off 1=on */ 455 bool car_adapter_mode; /* 0=off 1=on */
456#ifdef HAVE_ACCESSORY_SUPPLY
457 bool accessory_supply; /* 0=off 1=on, accessory power supply for iPod */
458#endif
456 459
457 /* show status bar */ 460 /* show status bar */
458 bool statusbar; /* 0=hide, 1=show */ 461 bool statusbar; /* 0=hide, 1=show */
diff --git a/apps/settings_list.c b/apps/settings_list.c
index e72b259767..d8b21541d4 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -512,6 +512,10 @@ const struct settings_list settings[] = {
512 OFFON_SETTING(NVRAM(1), car_adapter_mode, 512 OFFON_SETTING(NVRAM(1), car_adapter_mode,
513 LANG_CAR_ADAPTER_MODE, false, "car adapter mode", NULL), 513 LANG_CAR_ADAPTER_MODE, false, "car adapter mode", NULL),
514#endif 514#endif
515#ifdef HAVE_ACCESSORY_SUPPLY
516 OFFON_SETTING(0, accessory_supply, LANG_ACCESSORY_SUPPLY,
517 false, "accessory power supply", accessory_supply_set),
518#endif
515 /* tuner */ 519 /* tuner */
516#if CONFIG_TUNER 520#if CONFIG_TUNER
517 OFFON_SETTING(0,fm_force_mono, LANG_FM_MONO_MODE, 521 OFFON_SETTING(0,fm_force_mono, LANG_FM_MONO_MODE,