Ahmed RE: Do you think that this code is enough.... Yes, for the ALSA supported cases. But there cases in which a hw:N.M would be set, through the modem is not ALSA supported For the Agere/LSI chips 11c11040 scanModem warns recommends the agrsm software instead for this case. Conexant chips on HDA cards are another the odd case, since a hw:N.M could moght be set, althrough the modem is not supported by snd-hda-intel. When a Conexant vendor_14f1 modem chip is recognized, the Linuxant hsfmodem software is recommended, Additionally scanModem does the guess that: 1) if a modem chip is not detected, 2) and the audio chipset is Conexant 3)THEN hsfmodem is the best candidate supporting software. You are welcome to work any of this into the sl-modem-daemon code. MarvS On Sun, Sep 27, 2009 at 9:10 AM, أحمد المحمودي <aelmahmoudy@xxxxxxxxxxxxxxxxxxxxx> wrote: > Hello, > > On Sun, Sep 20, 2009 at 11:06:29AM -0400, Marvin Stodolsky wrote: >> Please do incorporate anything from that diagnostic section of my >> scanModem section into /etc/init.d/sl-modem-daemon >> that might improve the daemon script's parsing. There was also one >> case where the User system had two different audio cards. >> The scanModem diagnostics were not adequate in that case, and I had to >> use a copy of the /proc/asound to figure out the port. > ---end quoted text--- > > Do you think that this code is enough: > > PCM=/proc/asound/pcm > HDAmodem=$(grep -i Modem $PCM | grep "00-0[1-9]: " 2>/dev/null) > if test "$HDAmodem" ; then > Driver=snd-hda-intel > DRIVER=snd_hda_intel > # cases hw:0,1 and hw:0,6 thus far observed > cA=$(grep -i Modem $PCM | cut -b4) > cM=$(grep -i Modem $PCM | cut -b5) > SLMODEMD_DEVICE=hw:$cA,$cM > fi > > -- > أحمد المحمودي (Ahmed El-Mahmoudy) > Digital design engineer > GPG KeyID: 0xEDDDA1B7 (@ subkeys.pgp.net) > GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7 >