summaryrefslogtreecommitdiffstats
path: root/apps/iap/iap-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/iap/iap-core.c')
-rw-r--r--apps/iap/iap-core.c9
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;
*/
unsigned char lingo_versions[32][2] = {
{1, 9}, /* General lingo, 0x00 */
- {0, 0}, /* Microphone lingo, 0x01, unsupported */
+#ifdef HAVE_LINE_REC
+ {1, 1}, /* Microphone lingo, 0x01 */
+#else
+ {0, 0}, /* Microphone lingo, 0x01, disabled */
+#endif
{1, 2}, /* Simple remote lingo, 0x02 */
{1, 5}, /* Display remote lingo, 0x03 */
{1, 12}, /* Extended Interface lingo, 0x04 */
@@ -1262,6 +1266,9 @@ void iap_handlepkt(void)
unsigned char mode = *(iap_rxstart+2);
switch (mode) {
case 0: iap_handlepkt_mode0(length, iap_rxstart+2); break;
+#ifdef HAVE_LINE_REC
+ case 1: iap_handlepkt_mode1(length, iap_rxstart+2); break;
+#endif
case 2: iap_handlepkt_mode2(length, iap_rxstart+2); break;
case 3: iap_handlepkt_mode3(length, iap_rxstart+2); break;
case 4: iap_handlepkt_mode4(length, iap_rxstart+2); break;