annotate rvinterf/include/audio.h @ 964:a96cb97b66a2

ringtools/imy: fix duplicate definition of tdma_durations[] The bug was reported by Vadim Yanitskiy <fixeria@osmocom.org>, although the present fix is slightly different from the contributed patch: because main.c doesn't need this tdma_durations[] array at all, let's simply remove the reference to this array from main.c rather than turn it into an extern. I no longer remember my original thought flow that resulted (by mistake) in tdma_durations[] being multiply defined in main.c and durations.c. My intent might have been to define all globals in main.c and have the reference in durations.c be an extern - and I missed that extern - but without clear memory, I have no certainty. In any case, having this data array defined in the same module that fills it (durations.c) is sensible, so let's make it the new way.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 19:38:18 +0000
parents 25a182bc031b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
840
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
2 * This header file contains definitions for talking to ETM_AUDIO.
163
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 */
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
840
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
5 /* aur/auw parameter codes */
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
6 #define AUDIO_PATH_USED (0)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
7 #define AUDIO_MICROPHONE_MODE (1)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
8 #define AUDIO_MICROPHONE_GAIN (2)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
9 #define AUDIO_MICROPHONE_EXTRA_GAIN (3)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
10 #define AUDIO_MICROPHONE_OUTPUT_BIAS (4)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
11 #define AUDIO_MICROPHONE_FIR (5)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
12 #define AUDIO_SPEAKER_MODE (6)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
13 #define AUDIO_SPEAKER_GAIN (7)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
14 #define AUDIO_SPEAKER_FILTER (8)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
15 #define AUDIO_SPEAKER_FIR (9)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
16 #define AUDIO_SPEAKER_BUZZER_STATE (10)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
17 #define AUDIO_MICROPHONE_SPEAKER_LOOP_SIDETONE (11)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
18 #define AUDIO_MICROPHONE_SPEAKER_LOOP_AEC (12)
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
19 #define AUDIO_SPEAKER_VOLUME_LEVEL (13)
163
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20
840
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
21 /* microphone modes */
163
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 #define AUDIO_MICROPHONE_HANDHELD (0)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 #define AUDIO_MICROPHONE_HANDFREE (1)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 #define AUDIO_MICROPHONE_HEADSET (2)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
840
25a182bc031b rvinterf/include/audio.h: create interface definitions
Mychaela Falconia <falcon@freecalypso.org>
parents: 834
diff changeset
26 /* speaker modes */
163
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 #define AUDIO_SPEAKER_HANDHELD (0)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 #define AUDIO_SPEAKER_HANDFREE (1)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 #define AUDIO_SPEAKER_HEADSET (2)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 #define AUDIO_SPEAKER_BUZZER (3)
568e2a2b49c8 tiaud-decomp utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 #define AUDIO_SPEAKER_HANDHELD_HANDFREE (4)