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
This commit is contained in:
LiveboxAndy 2018-08-04 18:02:21 +01:00 committed by Solomon Peachy
parent dcdf2713f6
commit 77f8c9c9f1
11 changed files with 896 additions and 196 deletions

View file

@ -109,9 +109,8 @@ static void seek_to_playlist(unsigned long index)
ft_play_playlist(selected_playlist,
global_settings.playlist_catalog_dir,
strrchr(selected_playlist, '/') + 1);
}
static unsigned long nbr_total_playlists(void)
{
DIR* dp;
@ -161,7 +160,7 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
switch (cmd)
{
case 0x0001: /* CmdAck. See above cmd_ack() */
/*
/*
* The following is the description for the Apple Firmware
* The iPod sends this telegram to acknowledge the receipt of a
* 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)
case 0x05: /* Tracks */
case 0x02: /* Artists */
case 0x03: /* Albums */
case 0x04: /* Genre */
case 0x04: /* Genre */
case 0x06: /* Composer */
playlist_get_track_info(NULL, start_index + counter,
&track);
@ -2019,8 +2018,8 @@ void iap_handlepkt_mode4(const unsigned int len, const unsigned char *buf)
playlist_randomise(NULL, current_tick, true);
}
else
{
playlist_sort(NULL, true);
{
playlist_sort(NULL, true);
}
audio_skip(index - playlist_next(0));
if (!paused)