From 00ffd1336e67bef6aaff918bfd189f7dc8d8d41c Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 6 Nov 2010 16:00:12 +0100 Subject: [PATCH] target/fw/l1: Fix TCH/H1 by properly loading the TCH mode during TCH_A task Altough quite counterintuitive, the TCH_A task does some voice coding work ... at least during TCH/H subchannel 1 ... Go figure ... Signed-off-by: Sylvain Munaut --- src/target/firmware/layer1/prim_tch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/firmware/layer1/prim_tch.c b/src/target/firmware/layer1/prim_tch.c index f144204..d17ac55 100644 --- a/src/target/firmware/layer1/prim_tch.c +++ b/src/target/firmware/layer1/prim_tch.c @@ -556,14 +556,14 @@ static int l1s_tch_a_cmd(__unused uint8_t p1, __unused uint8_t p2, uint16_t p3) uint8_t chan_nr; uint16_t arfcn; uint8_t tsc, tn; - uint8_t tch_f_hn, tch_sub; + uint8_t tch_f_hn, tch_sub, tch_mode; uint32_t fn_report; uint8_t burst_id; /* Get/compute various parameters */ rfch_get_params(&l1s.next_time, &arfcn, &tsc, &tn); chan_nr = mframe_task2chan_nr(mf_task_id, tn); - tch_get_params(&l1s.next_time, chan_nr, &fn_report, &tch_f_hn, &tch_sub, NULL); + tch_get_params(&l1s.next_time, chan_nr, &fn_report, &tch_f_hn, &tch_sub, &tch_mode); burst_id = (fn_report - 12) / 26; /* Load SACCH data if we start a new burst */ @@ -625,7 +625,7 @@ static int l1s_tch_a_cmd(__unused uint8_t p1, __unused uint8_t p2, uint16_t p3) dsp_load_tch_param( &l1s.next_time, - SIG_ONLY_MODE, tch_f_hn ? TCH_F : TCH_H, tch_sub, + tch_mode, tch_f_hn ? TCH_F : TCH_H, tch_sub, 0, 0, tn ); -- 2.20.1