FreeCalypso > hg > fc-tourmaline
view src/g23m-aci/aci/dcm_env.h @ 273:5caa86ee2cfa
enable L1_NEW_AEC in l1_confg.h (bold change)
The AEC function implemented in DSP ROM 3606 on the Calypso silicon
we work with is the one that corresponds to L1_NEW_AEC; the same holds
for DSP 34 and even for DSP 33 with more recent patch versions.
However, TI shipped their TCS211 reference fw with L1_NEW_AEC set to 0,
thus driving AEC the old way if anyone tried to enable it, either via
AT%Nxxxx or via the audio mode facility. As a result, the fw would
try to control features which no longer exist in the DSP (long vs short
echo and the old echo suppression level bits), while providing no way
to tune the 8 new parameter words added to the DSP's NDB page.
The only sensible solution is to bite the bullet and enable L1_NEW_AEC
in L1 config, with fallout propagating into RiViera Audio Service
T_AUDIO_AEC_CFG structure and into /aud/*.cfg binary file format.
The latter fallout will be addressed in further code changes.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 29 Jul 2021 18:32:40 +0000 |
parents | fa8dc04885d8 |
children |
line wrap: on
line source
/* +----------------------------------------------------------------------------- | Project : $Workfile:: | Modul : +----------------------------------------------------------------------------- | Copyright 2002 Texas Instruments Berlin, AG | All rights reserved. | | This file is confidential and a trade secret of Texas | Instruments Berlin, AG | The receipt of or possession of this file does not convey | any rights to reproduce or disclose its contents or to | manufacture, use, or sell anything it may describe, in | whole, or in part, without the specific written consent of | Texas Instruments Berlin, AG. +----------------------------------------------------------------------------- | Purpose : This file contains Data connection manager definitions +----------------------------------------------------------------------------- */ #ifndef __DCM_ENV_H__ #define __DCM_ENV_H__ /* * Internal structure of the descriptor of IPU */ typedef struct { U8 row_state; U32 api_instance; /* api instance */ U16 bearer_handle; /* Bearer handle */ U16 app_handle; /* Comm handle of application */ U8 bearer_type; /* Used bearer type */ U8 apn_valid; /* Flag for apn validation */ U8 apn[CDCM_APN_MAX_LEN + 1]; /* Access Point Name */ U8 phone_number_valid; /* Flag for phone number validation*/ U8 phone_number[CDCM_PHONE_NR_LEN + 1]; /* CSD dial up phone number */ U8 user_id_valid; /* Flag for user ID validation */ U8 user_id[CDCM_USER_MAX_LEN + 1]; /* User ID */ U8 password_valid; /* Flag for password validation */ U8 password[CDCM_PASSWORD_MAX_LEN + 1]; /* Password */ U16 cid; /* GPRS context ID */ U32 ip_address; /* Used IP address */ U32 dns1; /* First domain name server */ U32 dns2; /* Second domain name server */ U32 gateway; /* Gateway address */ U16 auth_type; /* Type of authentication */ U8 data_compr; /* Flag for data compression */ U8 header_compr; /* Flag for header compression */ U16 precedence; /* GPRS precedence class */ U16 delay; /* GPRS delay class */ U16 reliability; /* GPRS reliability class */ U16 peak_throughput; /* GPRS peak throughput */ U16 mean_throughput; /* GPRS mean throughput */ U8 shareable; /* Flag for sharing requested bearer conn */ U8 pdp_addr[CDCM_PDP_MAX_LEN + 1]; U8 ipaddr[16]; }T_DCM_IPU_LIST; typedef T_DCM_RET (*T_DCM_CALLBACK )(T_DCM_HDR *msg_p); /** * The Control Block buffer of DCM, which gathers all 'Global variables' * used by DCM instance. * * A structure should gathers all the 'global variables' of DCM instance. * Indeed, global variable must not be defined in order to avoid using static memory. * A T_DCM_ENV_CTRL_BLK buffer is allocated when initializing DCM instance and is * then always refered by DCM instance when access to 'global variable' * is necessary. */ typedef struct { /** Store the current state of the DCM instance */ T_DCM_INTERNAL_STATE state[2]; /** Store the current substate of the DCM instance */ T_DCM_INTERNAL_SUBSTATE substate[2]; /* current row of IPU list in use */ U8 current_row; /* gsm current total of used rows */ U8 gsm_current_total_row; /* gprs current total of used rows */ U8 gprs_current_total_row; /* current network_state */ U32 network_state; /* structure of IP Users */ T_DCM_IPU_LIST ipu_list[DCM_MAX_NUMBER_IPU]; /* dcm_call_back */ T_DCM_CALLBACK dcm_call_back; } T_DCM_ENV_CTRL_BLK; void dcm_init (void); void dcm_send_message(T_DCM_STATUS_IND_MSG msg, T_DCM_INTERNAL_SUBSTATE sub_state); BOOL dcm_check_data_call(U32 event); EXTERN void dcm_display_message(U8 msg_id); #endif /* __DCM_ENV_H__ */