diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2014-12-06 23:28:31 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2015-10-07 06:15:04 +0200 |
commit | be5fc0ff7f01ad2e5b964ca437674c15a7a8bd71 (patch) | |
tree | 67224c1d0e40d1e053cb2f41fc751ba1c95149bd /apps/iap/iap-core.c | |
parent | b2d650f511d1eef08138f09ecd4e96656eef173b (diff) | |
download | rockbox-be5fc0ff7f01ad2e5b964ca437674c15a7a8bd71.tar.gz rockbox-be5fc0ff7f01ad2e5b964ca437674c15a7a8bd71.zip |
iAP: lingo 1 (microphone)
Change-Id: I65da2064951972368a2880d271280e5b5ae878fe
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; */ 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; |