diff options
Diffstat (limited to 'apps/iap/iap-core.c')
-rw-r--r-- | apps/iap/iap-core.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/iap/iap-core.c b/apps/iap/iap-core.c index 9e5771ab50..e41660392c 100644 --- a/apps/iap/iap-core.c +++ b/apps/iap/iap-core.c | |||
@@ -154,7 +154,11 @@ unsigned char* iap_txnext; | |||
154 | */ | 154 | */ |
155 | unsigned char lingo_versions[32][2] = { | 155 | unsigned char lingo_versions[32][2] = { |
156 | {1, 9}, /* General lingo, 0x00 */ | 156 | {1, 9}, /* General lingo, 0x00 */ |
157 | {0, 0}, /* Microphone lingo, 0x01, unsupported */ | 157 | #ifdef HAVE_LINE_REC |
158 | {1, 1}, /* Microphone lingo, 0x01 */ | ||
159 | #else | ||
160 | {0, 0}, /* Microphone lingo, 0x01, disabled */ | ||
161 | #endif | ||
158 | {1, 2}, /* Simple remote lingo, 0x02 */ | 162 | {1, 2}, /* Simple remote lingo, 0x02 */ |
159 | {1, 5}, /* Display remote lingo, 0x03 */ | 163 | {1, 5}, /* Display remote lingo, 0x03 */ |
160 | {1, 12}, /* Extended Interface lingo, 0x04 */ | 164 | {1, 12}, /* Extended Interface lingo, 0x04 */ |
@@ -1262,6 +1266,9 @@ void iap_handlepkt(void) | |||
1262 | unsigned char mode = *(iap_rxstart+2); | 1266 | unsigned char mode = *(iap_rxstart+2); |
1263 | switch (mode) { | 1267 | switch (mode) { |
1264 | case 0: iap_handlepkt_mode0(length, iap_rxstart+2); break; | 1268 | case 0: iap_handlepkt_mode0(length, iap_rxstart+2); break; |
1269 | #ifdef HAVE_LINE_REC | ||
1270 | case 1: iap_handlepkt_mode1(length, iap_rxstart+2); break; | ||
1271 | #endif | ||
1265 | case 2: iap_handlepkt_mode2(length, iap_rxstart+2); break; | 1272 | case 2: iap_handlepkt_mode2(length, iap_rxstart+2); break; |
1266 | case 3: iap_handlepkt_mode3(length, iap_rxstart+2); break; | 1273 | case 3: iap_handlepkt_mode3(length, iap_rxstart+2); break; |
1267 | case 4: iap_handlepkt_mode4(length, iap_rxstart+2); break; | 1274 | case 4: iap_handlepkt_mode4(length, iap_rxstart+2); break; |