view src/cs/services/fcbm/fcbm_reset_mode.c @ 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 a5b00817a60f
children
line wrap: on
line source

/*
 * In this module we are going to implement FCBM functions
 * for the reset or miscellaneous boot mode.
 */

#include "rv/rv_general.h"
#include "rvf/rvf_api.h"
#include "rvm/rvm_use_id_list.h"
#include "fcbm/fcbm_func_i.h"
#include "fcbm/fcbm_life_cycle.h"
#include "fcbm/fcbm_timer_i.h"
#include "r2d/r2d.h"
#include "r2d/r2d_blrr_api.h"

extern char fcbm_prod_banner_string[];

void fcbm_process_msg_reset_mode(void)
{
	if (fcbm_life_cycle_state != FCBM_STATE_INACTIVE) {
		rvf_send_trace("FCBM got reset mode request in wrong state",
				42, fcbm_life_cycle_state,
				RV_TRACE_LEVEL_ERROR, FCBM_USE_ID);
		return;
	}
	rvf_send_trace("Entering reset boot mode", 24, NULL_PARAM,
			RV_TRACE_LEVEL_DEBUG_HIGH, FCBM_USE_ID);
	fcbm_subscribe_kpd();
	fcbm_display_init();
	fcbm_display_line(0, fcbm_prod_banner_string);
	fcbm_display_line(1, "Misc boot state");
#ifdef LSCREEN
	fcbm_display_line(3, "Long-press Power");
	fcbm_display_line(4, "button to turn off,");
#else
	fcbm_display_line(3, "Long-press PWR");
	fcbm_display_line(4, "button to OFF,");
#endif
	fcbm_display_line(5, "or send fc-tmsh");
	fcbm_display_line(6, "phone-on command");
	fcbm_display_line(7, "to boot phone.");
	r2d_flush();
	blrr_display_ctrl(BLRR_DISPLAY_CHG_BOOT);
	rvf_start_timer(FCBM_TIMER_DSPL_OFF,
			RVF_SECS_TO_TICKS(FCBM_DISPLAY_SECS), FALSE);
	fcbm_life_cycle_state = FCBM_STATE_ACTIVE;
}