view cdg3/makecdg.sh @ 598:717ed17d82c6

aci3 vocoder control revamped, AT@VSEL now works as it should The vocoder control code (hl_audio_drv.c) that came with the TCS3 version of ACI was totally broken in the Calypso config (VOCODER_FUNC_INTERFACE) and worked in the standard analog voice environment only by luck. This code has now been rewritten to work correctly with our Calypso platform and TCS211 L1, and our new AT@VSEL mechanism (automatic enabling and disabling of MCSI voice path as the modem enters and exits the voice call state) now also works as designed.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 27 Mar 2019 23:44:35 +0000
parents 02269c474131
children
line wrap: on
line source

#!/bin/sh

set -e

if [ $# != 1 ]
then
	echo "Usage: %s config-name" 1>&2
	exit 1
fi

if [ ! -f "fflags-$1.h" ]
then
	echo "error: specified configuration is not known" 1>&2
	exit 1
fi

rm -rf tempout
mkdir tempout

# The arguments to ccdgen have been taken from TCS211 pdt_*.mak makefiles.

../toolwrap/ccdgen -h -m512 -a2 -ifflags-$1.h -otempout -Rpdf-mdf-list

echo "Converting from CRLF to UNIX line endings"

rm -rf cdginc-$1
mkdir cdginc-$1

# fromdos comes with Slackware, dunno about other distros
for i in `cat gen-file-list`
do
	fromdos < tempout/$i > cdginc-$1/$i
done