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 /apps/iap.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 'apps/iap.c')
-rw-r--r-- | apps/iap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/iap.c b/apps/iap.c index 33c84c759b..96713083c1 100644 --- a/apps/iap.c +++ b/apps/iap.c | |||
@@ -71,6 +71,13 @@ static void iap_task(void) | |||
71 | queue_post(&button_queue, SYS_IAP_PERIODIC, 0); | 71 | queue_post(&button_queue, SYS_IAP_PERIODIC, 0); |
72 | } | 72 | } |
73 | 73 | ||
74 | /* called by playback when the next track starts */ | ||
75 | static void iap_track_changed(void *ignored) | ||
76 | { | ||
77 | (void)ignored; | ||
78 | iap_changedctr = 1; | ||
79 | } | ||
80 | |||
74 | void iap_setup(int ratenum) | 81 | void iap_setup(int ratenum) |
75 | { | 82 | { |
76 | iap_bitrate_set(ratenum); | 83 | iap_bitrate_set(ratenum); |
@@ -177,13 +184,6 @@ int iap_getc(unsigned char x) | |||
177 | return newpkt; | 184 | return newpkt; |
178 | } | 185 | } |
179 | 186 | ||
180 | /* called by playback when the next track starts */ | ||
181 | void iap_track_changed(void *ignored) | ||
182 | { | ||
183 | (void)ignored; | ||
184 | iap_changedctr = 1; | ||
185 | } | ||
186 | |||
187 | void iap_periodic(void) | 187 | void iap_periodic(void) |
188 | { | 188 | { |
189 | if(!iap_setupflag) return; | 189 | if(!iap_setupflag) return; |
@@ -212,7 +212,7 @@ void iap_periodic(void) | |||
212 | iap_send_pkt(data, sizeof(data)); | 212 | iap_send_pkt(data, sizeof(data)); |
213 | } | 213 | } |
214 | 214 | ||
215 | void iap_set_remote_volume(void) | 215 | static void iap_set_remote_volume(void) |
216 | { | 216 | { |
217 | unsigned char data[] = {0x03, 0x0D, 0x04, 0x00, 0x00}; | 217 | unsigned char data[] = {0x03, 0x0D, 0x04, 0x00, 0x00}; |
218 | data[4] = (char)((global_settings.volume+58) * 4); | 218 | data[4] = (char)((global_settings.volume+58) * 4); |