gsm0503_coding: use ahs tables when encoding ahs codec id

The encoder function gsm0503_tch_ahs_encode uses gsm0503_afs_ic_ubit
when encoding the CMR or FT (depends on the frame number). This is not
correct. It should use gsm0503_ahs_ic_ubit instead.

Change-Id: Id250b2102ac79ff222bd3ad9d1abc4b60abdd12b
Related: SYS#5549
This commit is contained in:
Philipp Maier 2021-08-31 16:02:31 +02:00 committed by Oliver Smith
parent a488639e42
commit 3a0630222d
1 changed files with 1 additions and 1 deletions

View File

@ -3007,7 +3007,7 @@ int gsm0503_tch_ahs_encode(ubit_t *bursts, const uint8_t *tch_data, int len,
return -1;
}
memcpy(cB, gsm0503_afs_ic_ubit[id], 4);
memcpy(cB, gsm0503_ahs_ic_ubit[id], 4);
gsm0503_tch_hr_interleave(cB, iB);