view miscutil/Makefile @ 604:54f0f1b74c25

libgsmhr1 TFO: require BFI=0 and SID=0 for homing In order for a received frame to be recognized as DHF, we need not only the correct bit pattern, but also BFI=0 and SID=0. The BFI=0 requirement should be obvious, while the SID=0 requirement is needed only for HR codec. With FR and EFR, SID classification comes from the payload bits and no separate check is needed - but in HR we get an out-of-band SID ternary flag. When SID=1, no payload bits are used at all; when SID=2, we use only the first 33 bits of the payload. Therefore, it is proper to conditionalize DHF acceptance on SID=0. We already implemented this logic in the just finished full decoder; now bring TFO code into agreement.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Dec 2025 19:40:35 +0000
parents ddb2b00d582b
children
line wrap: on
line source

PROGS=	amrts-pcm8-compact gsmrec-dump gsmx-to-tw5a pcm16-check13 pcm16-raw2wav\
	pcm16-to-alaw pcm16-to-ulaw pcm16-wav2raw pcm8-to-pcm16 tw5a-dump \
	tw5a-to-gsmx
LIBEFR=	../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a
LIBTEST=../libtest/libtest.a

include ../config.defs

all:	${PROGS}

amrts-pcm8-compact:	amrts-pcm8-compact.c
	${CC} ${CFLAGS} -o $@ $@.c

gsmrec-dump:	gsmrec-dump.o ${LIBTEST} ${LIBEFR}
	${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR}

gsmx-to-tw5a:	gsmx-to-tw5a.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ gsmx-to-tw5a.o ${LIBTEST}

pcm16-check13:	pcm16-check13.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-raw2wav:	raw2wav.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}

pcm16-to-alaw:	pcm16-to-alaw.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-to-ulaw:	pcm16-to-ulaw.c
	${CC} ${CFLAGS} -o $@ $@.c

pcm16-wav2raw:	wav2raw.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}

pcm8-to-pcm16:	pcm8-to-pcm16.c
	${CC} ${CFLAGS} -o $@ $@.c

tw5a-dump:	tw5a-dump.o ${LIBTEST} ${LIBEFR}
	${CC} ${CFLAGS} -o $@ tw5a-dump.o ${LIBTEST} ${LIBEFR}

tw5a-to-gsmx:	tw5a-to-gsmx.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ tw5a-to-gsmx.o ${LIBTEST}

install:
	mkdir -p ${DESTDIR}${bindir}
	install -c ${PROGS} ${DESTDIR}${bindir}

clean:
	rm -f *.o *.out ${PROGS}