summaryrefslogtreecommitdiffstats
path: root/src/target
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-10-22 11:54:53 +0200
committerSylvain Munaut <tnt@246tNt.com>2010-10-25 20:58:31 +0200
commitaab5419af0f2b9ab3e06b31c976b760f327bef00 (patch)
treeee2e525249920a8dcf05350ece59d6475ec3d470 /src/target
parente35089a6c1137271d5e2a18358354eaba39c287f (diff)
target/fw/layer1: Store the GSM48 constants in l1s.tch_mode instead of DSP cste
At this point in the code, we don't know if we're TCH/H or TCH/F, so just store the speech mode and we'll figure out what to tell the DSP in the task code itself. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/firmware/layer1/async.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/target/firmware/layer1/async.c b/src/target/firmware/layer1/async.c
index 69301298..76d0b721 100644
--- a/src/target/firmware/layer1/async.c
+++ b/src/target/firmware/layer1/async.c
@@ -97,17 +97,14 @@ uint8_t l1a_tch_mode_set(uint8_t mode)
{
switch (mode) {
case GSM48_CMODE_SPEECH_V1:
- l1s.tch_mode = TCH_FS_MODE;
- break;
case GSM48_CMODE_SPEECH_EFR:
- l1s.tch_mode = TCH_EFR_MODE;
+ l1s.tch_mode = mode;
break;
default:
- mode = GSM48_CMODE_SIGN;
- l1s.tch_mode = SIG_ONLY_MODE;
+ l1s.tch_mode = GSM48_CMODE_SIGN;
}
- return mode;
+ return l1s.tch_mode;
}
/* Initialize asynchronous part of Layer1 */