diff options
author | LiveboxAndy <liveboxandy@gmail.com> | 2018-08-04 18:02:21 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-09 18:02:07 +0000 |
commit | 77f8c9c9f12f1a520467868047574fe0af7a1556 (patch) | |
tree | 2ae699fbdeca5aed4e28a1d5bc69915d5f6f5838 /apps/iap/iap-lingo4.c | |
parent | dcdf2713f610cb3cfaa615ab9b8d4b9412e7a8b6 (diff) | |
download | rockbox-77f8c9c9f12f1a520467868047574fe0af7a1556.tar.gz rockbox-77f8c9c9f12f1a520467868047574fe0af7a1556.zip |
Update to allow the Apple Radio Remote to function on iPod Video 5G.
This was broken when the major update to iap was comitted.
ia-lingo7.c created and various iap related files modified.
On 4G, 6G and Nano 1/2Gen iPods the remote will function
even though the radio won't.
Tested on 4G Greyscale, 4G Color, 4G Photo, 4G Mini 1st Gen,
4G Mini 2Gen, Nano 1G, Nano 2G, Video 5G, Video 5.5G
Change-Id: Ia74e3d07d9ab5edc6da8eafa96801ede722be331
Diffstat (limited to 'apps/iap/iap-lingo4.c')
-rw-r--r-- | apps/iap/iap-lingo4.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/iap/iap-lingo4.c b/apps/iap/iap-lingo4.c index 903cef9378..b601501b3d 100644 --- a/apps/iap/iap-lingo4.c +++ b/apps/iap/iap-lingo4.c | |||
@@ -109,9 +109,8 @@ static void seek_to_playlist(unsigned long index) | |||
109 | ft_play_playlist(selected_playlist, | 109 | ft_play_playlist(selected_playlist, |
110 | global_settings.playlist_catalog_dir, | 110 | global_settings.playlist_catalog_dir, |
111 | strrchr(selected_playlist, '/') + 1); | 111 | strrchr(selected_playlist, '/') + 1); |
112 | |||
113 | } | 112 | } |
114 | 113 | ||
115 | static unsigned long nbr_total_playlists(void) | 114 | static unsigned long nbr_total_playlists(void) |
116 | { | 115 | { |
117 | DIR* dp; | 116 | DIR* dp; |
@@ -161,7 +160,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf) | |||
161 | switch (cmd) | 160 | switch (cmd) |
162 | { | 161 | { |
163 | case 0x0001: /* CmdAck. See above cmd_ack() */ | 162 | case 0x0001: /* CmdAck. See above cmd_ack() */ |
164 | /* | 163 | /* |
165 | * The following is the description for the Apple Firmware | 164 | * The following is the description for the Apple Firmware |
166 | * The iPod sends this telegram to acknowledge the receipt of a | 165 | * The iPod sends this telegram to acknowledge the receipt of a |
167 | * command and return the command status. The command ID field | 166 | * command and return the command status. The command ID field |
@@ -1457,7 +1456,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf) | |||
1457 | case 0x05: /* Tracks */ | 1456 | case 0x05: /* Tracks */ |
1458 | case 0x02: /* Artists */ | 1457 | case 0x02: /* Artists */ |
1459 | case 0x03: /* Albums */ | 1458 | case 0x03: /* Albums */ |
1460 | case 0x04: /* Genre */ | 1459 | case 0x04: /* Genre */ |
1461 | case 0x06: /* Composer */ | 1460 | case 0x06: /* Composer */ |
1462 | playlist_get_track_info(NULL, start_index + counter, | 1461 | playlist_get_track_info(NULL, start_index + counter, |
1463 | &track); | 1462 | &track); |
@@ -2019,8 +2018,8 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf) | |||
2019 | playlist_randomise(NULL, current_tick, true); | 2018 | playlist_randomise(NULL, current_tick, true); |
2020 | } | 2019 | } |
2021 | else | 2020 | else |
2022 | { | 2021 | { |
2023 | playlist_sort(NULL, true); | 2022 | playlist_sort(NULL, true); |
2024 | } | 2023 | } |
2025 | audio_skip(index - playlist_next(0)); | 2024 | audio_skip(index - playlist_next(0)); |
2026 | if (!paused) | 2025 | if (!paused) |