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; | |||
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; |