* Lots of codec updates
authorRick van Rein <vanrein@hwdev.(none)>
Mon, 5 Dec 2011 12:33:33 +0000 (12:33 +0000)
committerRick van Rein <vanrein@hwdev.(none)>
Mon, 5 Dec 2011 12:33:33 +0000 (12:33 +0000)
commit7e91f05b1359edfb45134811a0d6408b3729b3ee
tree82572acbee43ba2d39ecb3b3397765597f72f91d
parent688d993fa74e25dd4b24d8fc417b4f92457e3a61
* Lots of codec updates
* New kconfig version (from latest Linux kernel)
* Sound is finally starting to work on the BT-200 phone!!!

Re. sound:  When it boots the echo program that sends 1 kHz samples over the McBSP #1
it starts up silently.  The Codec has not been initialised at that time:

Channel 0 registers (slave 0x40): 1A=90 2A=20 3C=88 3D=c0 3A=01 3B=40 4A=08 4B=9e 5A=00 5B=40 5C=bf 5D=c0 6A=02 6B=82
Channel 1 registers (slave 0x41): 1A=90 2A=20 3C=88 3D=c0 3A=01 3B=40 4A=08 4B=9e 5A=00 5B=40 5C=bf 5D=c0 6A=00 6B=80

Then, run the following commands:

./bin/i2cp/aic2x-config /dev/i2c-2 0x40 0x49 0xa0 0x01 0x40 0x88 0xff 0x08 0x9e 0x1f 0x40 0xbf 0xc0 0x02 0x82
./bin/i2cp/aic2x-config /dev/i2c-2 0x41 0x49 0xa0 0x31 0x60 0x88 0xff 0x08 0x9e 0x12 0x50 0xbf 0xc0 0x00 0x80

This will raise sound (not through DMA but "manual" writes to McBSP); the codec reads:

Channel 0 registers (slave 0x40): 1A=49 2A=a0 3A=01 3B=40 3C=88 3D=ff 4A=08 4B=9e 5C=bf 5D=c0 5A=1f 5B=40 6A=02 6B=82
Channel 1 registers (slave 0x41): 1A=49 2A=a0 3A=31 3B=60 3C=88 3D=ff 4A=08 4B=9e 5C=bf 5D=c0 5A=12 5B=50 6A=00 6B=80

Note that the volume is not always the same; apparently there is still some form of
sync problem.  Things to explore are now:

1. Whether the TLV should be reset before setting up McBSP #1
2. Whether the data to the Codec is stable as long as SCLK is low
3. Whether FS changes when SCLK is high (max 6 ns after going up, no min specified)
84 files changed:
Makefile
TODO
bin/i2cp/aic2x-setup.c
bin/kconfig/conf.c
bin/kconfig/confdata.c
bin/kconfig/expr.c
bin/kconfig/expr.h
bin/kconfig/gconf.c
bin/kconfig/kconfig-language.txt [new file with mode: 0644]
bin/kconfig/kxgettext.c
bin/kconfig/lkc.h
bin/kconfig/lkc_proto.h
bin/kconfig/mconf.c
bin/kconfig/menu.c
bin/kconfig/qconf.cc
bin/kconfig/qconf.h
bin/kconfig/symbol.c
bin/kconfig/util.c
bin/kconfig/zconf.l
bin/kconfig/zconf.tab.c_shipped
bin/kconfig/zconf.y
bin/lex.zconf.c
bin/mconf
bin/zconf.tab.c
configure [new file with mode: 0755]
doc/howto.rst [new file with mode: 0644]
include/0cpm/netinet.h
include/bottom/devel.h
include/bottom/grandstream.h
include/bottom/ksz8842.h
include/bottom/tic55x.h
include/tic55x/malloc.h [new file with mode: 0644]
include/tic55x/memory.h [new file with mode: 0644]
include/tic55x/stdint.h
include/tic55x/stdlib.h
include/tic55x/string.h
src/codec/README
src/codec/codec2/AUTHORS [new file with mode: 0644]
src/codec/codec2/COPYING [new file with mode: 0644]
src/codec/codec2/ChangeLog [new file with mode: 0644]
src/codec/codec2/INSTALL [new file with mode: 0644]
src/codec/codec2/NEWS [new file with mode: 0644]
src/codec/codec2/README [new file with mode: 0644]
src/codec/codec2/src/codec2.h [new file with mode: 0644]
src/codec/codec2/src/codec2_internal.h [new file with mode: 0644]
src/codec/codec2/src/comp.h [new file with mode: 0644]
src/codec/codec2/src/defines.h [new file with mode: 0644]
src/codec/rtt/Makefile.desktop
src/codec/rtt/desktop.c
src/codec/rtt/recvkeys.c
src/codec/rtt/sendkeys.c
src/codec/spandsp/README.0cpm-Firmerware
src/codec/spandsp/src/bitstream.c [new file with mode: 0644]
src/codec/spandsp/src/floating_fudge.h
src/codec/spandsp/src/g711.c
src/codec/spandsp/src/g722.c
src/codec/spandsp/src/g726.c
src/codec/spandsp/src/mmx_sse_decs.h [new file with mode: 0644]
src/codec/spandsp/src/spandsp/fast_convert.h
src/codec/spandsp/src/spandsp/logging.h [new file with mode: 0644]
src/codec/spandsp/src/vector_int.c [new file with mode: 0644]
src/codec/speex/include/speex/speex.h [new file with mode: 0644]
src/codec/speex/include/speex/speex_bits.h [new file with mode: 0644]
src/codec/speex/include/speex/speex_types.h [new file with mode: 0644]
src/codec/wrap.c [new file with mode: 0644]
src/driver/ksz8842.c
src/driver/tic55x/grandstream-bt20x.c
src/driver/tic55x/linker.cmd [new file with mode: 0644]
src/driver/tlv320aic2x.c
src/function/Kconfig
src/function/Makefile
src/function/develtest/echo.c
src/function/develtest/switch2led.c
src/function/develtest/timer2led.c
src/kernel/app.c
src/kernel/cpu.c
src/kernel/led.c
src/kernel/net.c
src/kernel/resource.c
src/kernel/timer.c
src/net/input.c
src/sip/dialog.c
src/target/Kconfig.grandstream
src/target/Kconfig.platform