summaryrefslogtreecommitdiff
path: root/apps/iap/iap-core.h
diff options
context:
space:
mode:
authorLiveboxAndy <liveboxandy@gmail.com>2018-08-04 18:02:21 +0100
committerSolomon Peachy <pizza@shaftnet.org>2020-07-09 18:02:07 +0000
commit77f8c9c9f12f1a520467868047574fe0af7a1556 (patch)
tree2ae699fbdeca5aed4e28a1d5bc69915d5f6f5838 /apps/iap/iap-core.h
parentdcdf2713f610cb3cfaa615ab9b8d4b9412e7a8b6 (diff)
downloadrockbox-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-core.h')
-rw-r--r--apps/iap/iap-core.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/apps/iap/iap-core.h b/apps/iap/iap-core.h
index 61b72d4ca2..b558e1cc0f 100644
--- a/apps/iap/iap-core.h
+++ b/apps/iap/iap-core.h
@@ -34,6 +34,7 @@
34 34
35/* The Model ID of the iPod we emulate. Currently a 160GB classic */ 35/* The Model ID of the iPod we emulate. Currently a 160GB classic */
36#define IAP_IPOD_MODEL (0x00130200U) 36#define IAP_IPOD_MODEL (0x00130200U)
37#define IAP_IPOD_VARIANT "MC293"
37 38
38/* The firmware version we emulate. Currently 2.0.3 */ 39/* The firmware version we emulate. Currently 2.0.3 */
39#define IAP_IPOD_FIRMWARE_MAJOR (2) 40#define IAP_IPOD_FIRMWARE_MAJOR (2)
@@ -73,14 +74,15 @@ enum interface_state {
73 74
74/* States of the authentication state machine */ 75/* States of the authentication state machine */
75enum authen_state { 76enum authen_state {
76 AUST_NONE, /* Initial state, no message sent */ 77 AUST_NONE, /* Initial state, no message sent */
77 AUST_INIT, /* Remote side has requested authentication */ 78 AUST_INIT, /* Remote side has requested authentication */
78 AUST_CERTREQ, /* Remote certificate requested */ 79 AUST_CERTREQ, /* Remote certificate requested */
79 AUST_CERTBEG, /* Certificate is being received */ 80 AUST_CERTBEG, /* Certificate is being received */
80 AUST_CERTDONE, /* Certificate received */ 81 AUST_CERTALLRECEIVED, /* Certificate all Received */
81 AUST_CHASENT, /* Challenge sent */ 82 AUST_CERTDONE, /* Certificate all Done */
82 AUST_CHADONE, /* Challenge response received */ 83 AUST_CHASENT, /* Challenge sent */
83 AUST_AUTH, /* Authentication complete */ 84 AUST_CHADONE, /* Challenge response received */
85 AUST_AUTH, /* Authentication complete */
84}; 86};
85 87
86/* State of authentication */ 88/* State of authentication */
@@ -237,6 +239,7 @@ void iap_repeat_next(void);
237void iap_fill_power_state(void); 239void iap_fill_power_state(void);
238 240
239void iap_send_tx(void); 241void iap_send_tx(void);
242void iap_set_remote_volume(void);
240 243
241extern enum interface_state interface_state; 244extern enum interface_state interface_state;
242void iap_interface_state_change(const enum interface_state new); 245void iap_interface_state_change(const enum interface_state new);