view components/frame_fl @ 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 e58a5bb12de4
children
line wrap: on
line source

# Building frame_fl.lib using a mixture of source and blobs as configured

CFLAGS="-mw -x -pw2 -o3 -me -mt -g -mn"

# Defines

CPPFLAGS="-DNU_DEBUG -D_FF_RV_EXIST_ -DRUN_FLASH"
CPPFLAGS="$CPPFLAGS -D_TARGET_ -D_NUCLEUS_"

if [ "$MEMSUPER" != 0 ]
then
	CPPFLAGS="$CPPFLAGS -DMEMORY_SUPERVISION"
fi
if [ "$MEMSUPER" = 2 ]
then
	CPPFLAGS="$CPPFLAGS -DOPTIMIZE_POOL"
fi

# Includes

CPPFLAGS="$CPPFLAGS -I$SRC/gpf/frame"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc/nuc"
CPPFLAGS="$CPPFLAGS -I$SRC/nucleus"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/inc"
CPPFLAGS="$CPPFLAGS -I$SRC/gpf/tst"

# Source modules

SRCDIR=$SRC/gpf/frame

cfile_symlink $SRCDIR/frame.c
cfile_symlink $SRCDIR/vsi_sem.c
cfile_symlink $SRCDIR/vsi_com.c
cfile_symlink $SRCDIR/vsi_mem.c
cfile_symlink $SRCDIR/vsi_tim.c
cfile_symlink $SRCDIR/vsi_mis.c
cfile_symlink $SRCDIR/vsi_drv.c
cfile_symlink $SRCDIR/vsi_trc.c
cfile_symlink $SRCDIR/vsi_pro.c
if [ "$MEMSUPER" != 0 ]
then
	cfile_symlink $SRCDIR/vsi_ppm.c
fi
cfile_symlink $SRCDIR/xalert.c
cfile_symlink $SRCDIR/route.c
cfile_symlink $SRCDIR/prf_func.c
cfile_symlink $SRCDIR/frm_ext.c
cfile_symlink $SRCDIR/frame_version.c

# OSL

if [ "$OSL" = 1 ]
then

	# drop -o3
	CFLAGS="-mw -x -pw2 -o -me -mt -g -mn"

	SRCDIR=$SRC/gpf/osl

	cfile_plain $SRCDIR/os_com_fl.c
	cfile_plain $SRCDIR/os_drv.c
	cfile_plain $SRCDIR/os_isr.c
	cfile_plain $SRCDIR/os_mem_fl.c
	cfile_plain $SRCDIR/os_mis_fl.c
	cfile_plain $SRCDIR/os_pro_fl.c
	cfile_plain $SRCDIR/os_sem_fl.c
	cfile_plain $SRCDIR/os_tim_fl.c

else

	OBJDIR=../../blobs/osl/fl
	OBJDIR_PS=../../blobs/osl/fl_ps

	OBJS="$OBJS $OBJDIR/os_com.obj"
	OBJS="$OBJS $OBJDIR/os_drv.obj"
	OBJS="$OBJS $OBJDIR/os_evt.obj"
	OBJS="$OBJS $OBJDIR/os_isr.obj"
	if [ "$MEMSUPER" != 0 ]
	then
		OBJS="$OBJS $OBJDIR_PS/os_mem.obj"
		OBJS="$OBJS $OBJDIR_PS/os_mis.obj"
	else
		OBJS="$OBJS $OBJDIR/os_mem.obj"
		OBJS="$OBJS $OBJDIR/os_mis.obj"
	fi
	OBJS="$OBJS $OBJDIR/os_pro.obj"
	OBJS="$OBJS $OBJDIR/os_sem.obj"
	OBJS="$OBJS $OBJDIR/os_tim.obj"

fi