Stuck Voice Injection in gsm call with Neofreerunner device
Timo Juhani Lindfors
timo.lindfors at iki.fi
Fri Apr 30 21:34:07 CEST 2010
saravanan T <saravanadel at gmail.com> writes:
> 1. I did not find any api(Java,Python) to inject the voice during call ?
> Where should I look ?
Good question. I have managed to record audio from GSM but not yet
playback. I first
# Route audio from aplay to GSM.
# aplay audio starts from left DAC so we start from there.
# keep the channels separate, do not mix them to for mono.
# R1, DMONOMIX = 0 = Stereo
amixer -qc0 cset numid=46,name='Playback Mono Mix' 0
# R1, DACINV = 0 = non-inverted (does not really matter)
amixer -qc0 cset numid=47,name='Playback Phase' 0
# R8, LDACVOL = 200
amixer -qc0 cset numid=01,name='PCM Volume' 200,0
# R1, DEEMP = 00 = no-deemphasis
amixer -qc0 cset numid=45,name='De-emphasis' 0
# R10, BB = 0 = linear bass boost
amixer -qc0 cset numid=15,name='Bass Boost' 0
# R10, BC = 000 = bass filter cut-off 13 Hz at fs = 48 kHz
amixer -qc0 cset numid=16,name='Bass Filter' 0
# R10, BASS = 1000 = bass intensity -1.5 dB
amixer -qc0 cset numid=17,name='Bass Volume' 8
# R11, TC = 0 = treble filter high
amixer -qc0 cset numid=19,name='Treble Cut-off' 0
# R11, TRBL = terble intensity -1.5 dB
amixer -qc0 cset numid=18,name='Treble Volume' 8
# R19, 3DEN = disable 3D function
amixer -qc0 cset numid=42,name='3D Switch' off
# should now be at "left DAC" box :-)
# R20, VMIDSEL does not have alsa control
# R38, LD2MO = 1 = enable left DAC to mono mixer
amixer -qc0 cset numid=74,name='Mono Mixer Left Playback Switch' off
# *R38, MM2MO = 0 = disable MM signal to mono mixer
amixer -qc0 cset numid=78,name='Mono Mixer Bypass Playback Swit' off
# *R39, RD2MO = 0, disable right dac to mono mixer
amixer -qc0 cset numid=75,name='Mono Mixer Right Playback Switc' off
# *R39, ST2MO = 0, disable sidetone signal to mono mixer
amixer -qc0 cset numid=77,name='Mono Mixer Sidetone Playback Sw' off
# *R39, VXD2MO = 0, disable voice dac to mono mixer
amixer -qc0 cset numid=76,name='Mono Mixer Voice Playback Switc' off
# *R34, LD2LO = 0 = disable left dac to left mixer
amixer -qc0 cset numid=85,name="Left Mixer Left Playback Switch" off
# *R36, RD2RO = 0 disable right dac to right mixer
amixer -qc0 cset numid=81,name='Right Mixer Right Playback Swit' off
# R44, MONO1VOL
amixer -qc0 cset numid=05,name="Mono Playback Volume" 100
# R22, MONO2 = 1 (MONO2 enable)
amixer -qc0 cset numid=88,name="DAPM GSM Line Out Switch" on
# R22, MONO1 = 1 (MONO1 enable)
amixer -qc0 cset numid=77,name="Mono Mixer Sidetone Playback Sw" on
# R45, MONO2SW = 00 = inverted MONO1
amixer -qc0 cset numid=73,name="Mono 2 Mux" 0
to configure audio routing and then use
speaker-test -t sine -r 48000
to generate a test signal.
More information about the community
mailing list