diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-04-18 15:46:56 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-04-18 15:46:56 +0000 |
commit | fefa1c7bbf4252b796bb1f37a957b1ccb977b356 (patch) | |
tree | 87a395b9e375a245ad3ce18adb9b70cb4fa4a6af /firmware/drivers/tuner/ipod_remote_tuner.c | |
parent | c493a1e39d4ce5c725bad9cb3686ee3e8477f734 (diff) | |
download | rockbox-fefa1c7bbf4252b796bb1f37a957b1ccb977b356.tar.gz rockbox-fefa1c7bbf4252b796bb1f37a957b1ccb977b356.zip |
Clean up IAP / ipod remote tuner a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25672 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/tuner/ipod_remote_tuner.c')
-rw-r--r-- | firmware/drivers/tuner/ipod_remote_tuner.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c index e770b9dbe4..25ad2d9845 100644 --- a/firmware/drivers/tuner/ipod_remote_tuner.c +++ b/firmware/drivers/tuner/ipod_remote_tuner.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "tuner.h" /* tuner abstraction interface */ | 29 | #include "tuner.h" /* tuner abstraction interface */ |
30 | #include "adc.h" | 30 | #include "adc.h" |
31 | #include "settings.h" | 31 | #include "settings.h" |
32 | #include "power.h" | ||
32 | 33 | ||
33 | static bool powered = false; | 34 | static bool powered = false; |
34 | 35 | ||
@@ -204,7 +205,7 @@ void rmt_tuner_set_param(unsigned char tuner_param) | |||
204 | } | 205 | } |
205 | } | 206 | } |
206 | 207 | ||
207 | void set_deltafreq(int delta) | 208 | static void set_deltafreq(int delta) |
208 | { | 209 | { |
209 | tuner_param &= 0xFC; | 210 | tuner_param &= 0xFC; |
210 | switch (delta) | 211 | switch (delta) |
@@ -231,7 +232,7 @@ void set_deltafreq(int delta) | |||
231 | } | 232 | } |
232 | } | 233 | } |
233 | 234 | ||
234 | void set_deemphasis(int deemphasis) | 235 | static void set_deemphasis(int deemphasis) |
235 | { | 236 | { |
236 | tuner_param &= 0xBF; | 237 | tuner_param &= 0xBF; |
237 | switch (deemphasis) | 238 | switch (deemphasis) |
@@ -249,7 +250,7 @@ void set_deemphasis(int deemphasis) | |||
249 | } | 250 | } |
250 | } | 251 | } |
251 | 252 | ||
252 | void set_mono(int value) | 253 | static void set_mono(int value) |
253 | { | 254 | { |
254 | tuner_param &= 0xEF; | 255 | tuner_param &= 0xEF; |
255 | 256 | ||
@@ -264,7 +265,7 @@ void set_mono(int value) | |||
264 | } | 265 | } |
265 | } | 266 | } |
266 | 267 | ||
267 | bool reply_timeout(void) | 268 | static bool reply_timeout(void) |
268 | { | 269 | { |
269 | int timeout = 0; | 270 | int timeout = 0; |
270 | 271 | ||