Re: slmodemd and alsa > 1.0.9: off-hook-channel doesn't get muted any more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marv, Remember we never got Call Back to work under Linux. If you figure out how,would be interested. Presently use dial-up to university to get online. Leo

On Fri, 2 Mar 2007, Marvin Stodolsky wrote:

Leo,

Please send Lynx the scripts used for Call Back at MPG.DE. That may help

Lynx,

Its obscure to be why your are using a /gcc-3.3.6/ version call when
your kernel was compiled with gcc-4.1.  That may or maynot be a
contributing problem.

Under Debian/Ubuntu the external code used during the slmodemd compile
is from packages libasound2 (usually installed by default) and
libasound2-dev, needed for the ALSA mode compilation.  These were used
in assembly of slmodemd with a gcc-4.1 , now in the
SLMODEMD,gcc4.1.tar.gz  at
http://phep2.technion.ac.il/linmodems/packages/smartlink/
You could just try that slmodemd.   A sample compile is below.

The snd-intel8x0m driver depends on snd-intel8x0, plus of course the
set of ALSA modules as displayed by:
$ lsmod | grep snd_intel8x0m
Module                  Size  Used by
-------------------------------------
snd_intel8x0m          17292  0
snd_ac97_codec         90528  2 snd_intel8x0m,snd_intel8x0
snd_pcm                75784  4
snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_page_alloc          9992  3 snd_intel8x0m,snd_intel8x0,snd_pcm
snd                    49892  7
snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer

MarvS

/usr/src/modules/slmodem-2.9.11-20070204/modem $ $ make SUPPORT_ALSA=1
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o modem.o
-c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_datafile.o -c modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_pack.o -c modem_pack.c
modem_pack.c: In function 'modem_async_get_bits':
modem_pack.c:100: warning: pointer targets in passing argument 2 of
'm->get_chars' differ in signedness
modem_pack.c: In function 'modem_async_put_bits':
modem_pack.c:148: warning: pointer targets in passing argument 2 of
'm->put_chars' differ in signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_ec.o -c modem_ec.c
modem_ec.c: In function 'tx_info':
modem_ec.c:723: warning: pointer targets in passing argument 2 of
'l->modem->get_chars' differ in signedness
modem_ec.c: In function 'push_rest_data':
modem_ec.c:811: warning: pointer targets in passing argument 2 of
'l->modem->put_chars' differ in signedness
modem_ec.c: In function 'rx_info':
modem_ec.c:860: warning: pointer targets in passing argument 2 of
'l->modem->put_chars' differ in signedness
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_debug.o -c modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
sysdep_common.o -c sysdep_common.c
gcc -lasound -o slmodemd modem_main.o modem_cmdline.o modem.o
modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
dp_dummy.o dsplibs.o sysdep_common.o /usr/lib/libasound.so
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o
modem_test.o -c modem_test.c
gcc -lasound -o modem_test modem_test.o modem_cmdline.o modem.o
modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
dp_dummy.o dsplibs.o sysdep_common.o

$ ls -l slmodemd
-rwxr-xr-x 1 marv marv 1323499 2007-03-02 08:29 slmodemd





On 3/2/07, lynx.abraxas@xxxxxxxxxx <lynx.abraxas@xxxxxxxxxx> wrote:
On 01/03/07 19:29:32, Marvin Stodolsky wrote:
> Lynx,
>
> RE: > I have to uncomment "slmodemd: -lasound"
> As instructed towards the end of the README, the command to use is:
> # make clean
> # make SUPPORT_ALSA=1
> which I just checked.

Hm, this is what I get. What happens to the line "slmodemd: -lasound" when You are doing the make?

package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021> make CC=/opt/gcc-3.3.6/bin/gcc clean
make -C modem clean &&  make -C drivers clean &&  echo "done."
make[1]: Entering directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/modem' rm -f slmodemd modem_test modem_main.o modem_cmdline.o modem_test.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o sysdep_common.o
rm -f *~ *.orig *.rej
make[1]: Leaving directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/modem' make[1]: Entering directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/drivers' rm -f kernel-ver slamr.o slusb.o slamr.ko slusb.ko *st7554.o amrmo_init.o sysdep_amr.o *.mod.* .*.cmd *~
rm -f -r .tmp_versions
make[1]: Leaving directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/drivers'
done.
package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021> make CC=/opt/gcc-3.3.6/bin/gcc SUPPORT_ALSA=1
make -C modem all
make[1]: Entering directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
rebuild profile...
/opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_main.o -c modem_main.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_cmdline.o -c modem_cmdline.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem.o -c modem.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_datafile.o -c modem_datafile.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_at.o -c modem_at.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_timer.o -c modem_timer.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_pack.o -c modem_pack.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_ec.o -c modem_ec.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_comp.o -c modem_comp.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_param.o -c modem_param.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_debug.o -c modem_debug.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o homolog_data.o -c homolog_data.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o dp_sinus.o -c dp_sinus.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o dp_dummy.o -c dp_dummy.c /opt/gcc-3.3.6/bin/gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o sysdep_common.o -c sysdep_common.c make[1]: *** No rule to make target `-lasound', needed by `slmodemd'. Stop. make[1]: Leaving directory `/usr/src/slmodemd/slmodem-2.9.11-20061021/modem'
make: *** [modem] Error 2
package slmodemd:/usr/src/slmodemd/slmodem-2.9.11-20061021>




>
> LFS 5.1.1 on Linux version 2.6.20 kernel is leading edge for us.
> I can't assess how this contributes to the failure of
> echo "ath0" > /dev/modem
> for your AgereSystems SIL27 codec modem:
>   Class 0703: 1039:7013 Modem: Silicon Integrated Systems
>      Primary PCI_id  1039:7013
>    Subsystem PCI_id  17c0:1059
>
> It is beyond my knowledge as to how the problem splits out between
> slmodemd and ALSA code.  Maintainer Sasha may comment

That's what I feared. Could it be, I need more than the alsa-libs, -plugins and -utils? Is there a complete list of the alsa kernel modules one needs additionally to snd-intel8x0m? I noticed also I don't need to send "ath0" to the modem to go on-hook under the old configuration. It can be any String, is that normal?

Thanks.
Lynx



[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux