diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-20 15:02:29 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-20 15:02:29 +0000 |
commit | b6c12a129e22dadff4be67e5b0fe8993c888d6d8 (patch) | |
tree | ee6e855a5d998e3c5bae6d74a86641f3d01ebd50 /firmware/target | |
parent | 181e0e0878aac10dd9a6651842fbb59c4fed7a9b (diff) | |
download | rockbox-b6c12a129e22dadff4be67e5b0fe8993c888d6d8.tar.gz rockbox-b6c12a129e22dadff4be67e5b0fe8993c888d6d8.zip |
Submit FS#11065. Introduce a new system setting for en-/disabling the Line-out. For now only implemented on iPod Video. This allows to save power if the user does not use the player's Line-out. On iPod 5G the saving is ~0.5 mA.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25257 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/ipod/powermgmt-ipod-pcf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c index 5b8f974fda..95f5380b92 100644 --- a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c +++ b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "powermgmt.h" | 25 | #include "powermgmt.h" |
26 | #include "pcf5060x.h" | 26 | #include "pcf5060x.h" |
27 | #include "pcf50605.h" | 27 | #include "pcf50605.h" |
28 | #include "audiohw.h" | ||
28 | 29 | ||
29 | const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = | 30 | const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = |
30 | { | 31 | { |
@@ -129,3 +130,11 @@ void accessory_supply_set(bool enable) | |||
129 | 130 | ||
130 | } | 131 | } |
131 | #endif | 132 | #endif |
133 | |||
134 | #ifdef HAVE_LINEOUT_POWEROFF | ||
135 | void lineout_set(bool enable) | ||
136 | { | ||
137 | /* Call audio hardware driver implementation */ | ||
138 | audiohw_enable_lineout(enable); | ||
139 | } | ||
140 | #endif | ||