FreeCalypso > hg > freecalypso-tools
annotate ffstools/tiaud/binstruct.h @ 752:c79aaed75bd8
compile-fc-batt: allow possible third field in source lines
Battery tables maintained in the fc-battery-conf repository will now
have a third field added, defining thresholds for the battery bars icon,
and there will be a new utility to compile them into the new
/etc/batterytab2 file read by the FC Tourmaline version of our
FCHG driver. For backward compatibility with the original Magnetite
version of FCHG, compile-fc-batt remains the tool for compiling the
original /etc/batterytab file format, and it needs to ignore the
newly added third field in battery table sources.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 05 Nov 2020 20:37:55 +0000 |
parents | 568e2a2b49c8 |
children | c458e33060bf |
rev | line source |
---|---|
163
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * The binary structure of /aud/*.cfg audio mode config files |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * written and read by TI's TCS211 firmware is defined here. |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 struct audio_cfg_bin { |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 uint8_t voice_path; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 uint8_t pad1[3]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 uint8_t mic_mode; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 uint8_t pad2[3]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 int8_t mic_bytes[4]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 uint16_t mic_fir[32]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 uint8_t speaker_mode; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 uint8_t pad3[3]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 int8_t speaker_bytes[4]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 uint16_t speaker_fir[32]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 int8_t sidetone_gain; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 uint8_t pad4[3]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 uint16_t aec_words[6]; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 }; |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 /* mic_mode byte */ |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 #define AUDIO_MICROPHONE_HANDHELD (0) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 #define AUDIO_MICROPHONE_HANDFREE (1) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 #define AUDIO_MICROPHONE_HEADSET (2) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 /* speaker_mode byte */ |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 #define AUDIO_SPEAKER_HANDHELD (0) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 #define AUDIO_SPEAKER_HANDFREE (1) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 #define AUDIO_SPEAKER_HEADSET (2) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #define AUDIO_SPEAKER_BUZZER (3) |
568e2a2b49c8
tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 #define AUDIO_SPEAKER_HANDHELD_HANDFREE (4) |