From be5fc0ff7f01ad2e5b964ca437674c15a7a8bd71 Mon Sep 17 00:00:00 2001 From: Cástor Muñoz Date: Sat, 6 Dec 2014 23:28:31 +0100 Subject: iAP: lingo 1 (microphone) Change-Id: I65da2064951972368a2880d271280e5b5ae878fe --- apps/iap/iap-core.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/iap/iap-core.c') 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; -- cgit v1.2.3