Install the 1.0.13 ALSA drivers using the Gentoo portage (was :Re: 'error: period size 48 is not supported', snd-hda-intel, si3054)

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

 



Marvin,

Sorry for the late answer, I have been quite busy lately. Unfortunately, I 
cannot test my modem right now but with the 1.0.13 version of the ALSA 
driver, I don't get those error messages anymore when running wvdial. I 
installed them with Gentoo's portage instead of the method you provided so 
I'll post how I did it, if it can help someone :

-> First, the ALSA 1.0.13 drivers wouldn't compile on my 2.6.21 kernel, I had 
to downgrade to 2.6.18.

-> Then, in your kernel config, make sure the following are okay :

	CONFIG_SOUND is set
	CONFIG_SOUND_PRIME is _not_ set
	CONFIG_SND is _not_ set

-> Also make sure the /usr/src/linux symlink points to the kernel version you 
want to build ALSA for. For example :

	# ls -ld /usr/src/linux
	lrwxrwxrwx 1 root root 14 2007-05-08 15:25 /usr/src/linux -> linux-2.6.18.8

-> Recompile your kernel and reboot. Your sound card will not be detected as 
you disabled ALSA in your kernel.

-> Uninstall all the installed alsa-* packages :

	# for i in /var/db/pkg/media-sound/alsa-*
	> do emerge -C $i
	> done

-> Add a line in your make.conf to choose which ALSA module(s) you want to 
compile. Here, I want the snd-hda-intel module so I do :

	# echo "ALSA_CARDS=\"hda-intel\"" >> /etc/make.conf

-> And install alsa-driver, forcing version 1.0.13 :

	# emerge =alsa-driver-1.0.13

-> And finally, we mask the versions > 1.0.14 so they won't get installed when 
we update our system :

	# echo ">=media-sound/alsa-driver-1.0.14" >> /etc/portage/package.mask

-> And we load the new module(s). Here, with my snd-hda-intel :

	# modprobe snd-hda-intel

And there we are :) We can then run slmodemd and wvdial as normal.

Hope that helps someone :) I've attached my modemData.txt, generated with the 
2.6.18 kernel.

Firas

On Sunday 22 April 2007 15:24:24 Marvin Stodolsky wrote:
> Firas,
>
> There may be two issues  cogent to the situation with your:
> ========
> Linux version 2.6.21-rc7-ana-gentoo
>
>    Class 0403: 8086:27d8 Audio device: Intel Corporation 82801G
>       Primary PCI_id  8086:27d8
>     Subsystem PCI_id  1043:1123
>     Softmodem codec or Vendor from diagnostics: Si3054
> with ALC880 audio components
>
> ALSAversion 1.0.14rc1
> 	/proc/asound/card0/codec#1
> -------------------------------
> Codec: Motorola Si3054
> Address: 1
> Vendor Id: 0x10573055
> ========
> One is the maturity of the snd-hda-intel for the ALC880 card,
> for which there are several outstanding failure reports. The 2nd is
> the problem described in
> http://linmodems.technion.ac.il/bigarch/archive-seventh/msg00848.html
> Unfortunately the described patch doesn't solve the problem and we are
> still awaiting an improved fix from the ALSA hda maintainer.
>
> If you can compile snd-hda-intel and its depedent drivers from
> ALSAversion 1.0.14 sources, your modem might work again, as this modem
> Vendor Id: 0x10573055 type did work with 1.0.13 drivers.  See
> http://linmodems.technion.ac.il/archive-seventh/msg00282.html for an
> example on compiling and installing these drivers.
>
> MarvS
>
> On 4/21/07, Firas Kraiem <fkraiem@xxxxxxx> wrote:
> > Marvin
> >
> > Though I have the same problem as Maxim and the same /proc/asound/pcm, my
> > modem is actually not the same (different /proc/asound/card0/codec#1 -
> > I've attached my ModemData.txt). The modem is listed as supported but
> > also with "patch needed", which might be my problem, but what exactly I
> > need to pach and where to get those patches is not mentioned.
> >
> > Firas
> >
> > P.S. : By the way, I'm still running Gentoo, which scanModem failed to
> > detect since it apparently just read from /etc/issue.
> >
> > On Sunday 22 April 2007 00:06:37 Marvin Stodolsky wrote:
> > >  The HDA card softmodem chip is 0x11c11040 is a new softmodem chip and
> > > really NOT within the supported Si3054 family
> > > It is Not a snd-hda-intel driver issue per se.
> > > Rather AgereSystems/now LSI Inc. is working towards support, but
> > > without any firm date.
> > > Read InfoGeneral.txt about alternatives.
> > >
> > > MarvS
> > > scanModem maintainer
> > >
> > > On 4/21/07, Firas Kraiem <fkraiem@xxxxxxx> wrote:
> > > > Maxim
> > > >
> > > > Same problem here with the same modem on an Asus A6JM laptop. I guess
> > > > we just need to wait for support in snd-hda-intel to be mature
> > > > enough?
> > > >
> > > > Firas
> > > >
> > > > On Saturday 21 April 2007 21:50:30 Maxim Kuleshov wrote:
> > > > > Hello!
> > > > >
> > > > > I'm running freshly installed Ubuntu 7.04 (fiesty fawn) on Toshiba
> > > > > L30-134 laptop.
> > > > > Trying to get internal modem working... without success yet.
> > > > >
> > > > > According to 'scanmodem' results my laptop's modem is one of
> > > > > HDA-soundcard built-in modems.
> > > > >
> > > > > So, I installed slmodemd, set SLMODEMD_DEVICE to hw:0,6 (other
> > > > > values were tested, but errors on earlier stages of slmodemd
> > > > > execution occurs) and started sl-modem-daemon .
> > > > >
> > > > > Now I see /dev/ttySL0 device and it is usable via "minicom".
> > > > > But wvdial failed to establish connection.
> > > > >
> > > > > ...
> > > > > --> Modem initialized.
> > > > > --> Sending: ATDPXXX
> > > > > --> Waiting for carrier.
> > > > > ATDPXXX
> > > > > NO CARRIER
> > > > > ERROR
> > > > > ...
> > > > >
> > > > > If I run slmodemd manually from terminal following error is
> > > > > viewable: error: period size 48 is not supported by playback (64).
> > > > >
> > > > > And here I get stuck - googling for such error message gives no
> > > > > results.
> > > >
> > > > --
> > > > ()  ascii ribbon campaign - against html e-mail
> > > > /\  www.asciiribbon.org   - against proprietary attachments
> >
> > --
> > ()  ascii ribbon campaign - against html e-mail
> > /\  www.asciiribbon.org   - against proprietary attachments



-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
 Only plain text email is forwarded by the  DISCUSS@xxxxxxxxxxxxx List Server.
 Do use the following as the email Subject Line:
           SomeName, YourCountry 
Welcome to  kernel 2.6.18.8-ana-gentoo 
 This will alert cogent experts, and  distinguish cases in the Archives.
 YourCountry will enable Country Code guidance.
 Occassionally responses are blocked by an Internet Provider mail filters.
 So in a day, also check the Archived responses at http://www.linmodems.org .
 Local Linux experts can be found through: http://www.linux.org/groups/index.html
--------------------------  System information ----------------------------
CPU=i686,  
Welcome to 
Linux version 2.6.18.8-ana-gentoo (root@ana) (gcc version 4.1.2 (Gentoo 4.1.2)) #2 SMP Tue May 8 16:37:40 CEST 2007
 scanModem update of:  2007_March_15


USB modem not detected by lsusb

Modem or host audio card candidates have firmware information:

 PCI slot	PCI ID		SubsystemID	Name
 ----------	---------	---------	--------------
 00:1b.0	8086:27d8	1043:1123	Audio device: Intel Corporation 82801G 

 Modem interrupt assignment and sharing: 
 22:       1051          0   IO-APIC-level  HDA Intel

 --- Bootup diagnositcs for card in PCI slot 00:1b.0 ----
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 21 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ACPI: PCI interrupt for device 0000:00:1b.0 disabled
PCI: Enabling device 0000:00:1b.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 21 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:1b.0 to 64

 The PCI slot 00:1b.0 of the modem card may be disabled early in 
 a bootup process,  but then enabled later. If modem drivers load 
 but the  modem is not responsive, read Bootup.txt about possible fixes.
 Send dmesg.txt along with ModemData.txt to discuss@xxxxxxxxxxxxx
 if help is needed.
 

 === Finished modem firmware and bootup diagnostics section. ===
 === Next deducing cogent software ===

ALSAversion 1.0.13
8086:27d8 is a High Definition Audio card, possibly hosting a soft modem.


The VendorID 0x10573055 softmodem chip is in principle supported by the snd-hda-intel driver 
included within the ALSA audio+modem driver set.  However recognition of 0x10573055 first begins with ALSA version 1.0.13. There are instructions for upgrading snd-hda-intel and its
dependent driver set at http://linmodems.technion.ac.il/archive-seventh/msg00282.html
The ? in the device designation in hw:0,? will be manifest after the driver update.
Typically ? is in the range of 0-6 . 

 For candidate modem in PCI bus:  00:1b.0
   Class 0403: 8086:27d8 Audio device: Intel Corporation 82801G
      Primary PCI_id  8086:27d8
    Subsystem PCI_id  1043:1123 
    Softmodem codec or Vendor from diagnostics: Si3054
                              from    Archives: 
                        

 Lacking a dsp (digital signal processing) chip, the modem is a software 
 intensive or "softmodem" type. Its primary controller manages the traffic 
 with the CPU. But the software needed is specified in the Subsystem.
 -----------------------------------------
Support type needed or chipset:	slmodemd

 An ALSA (Advanced Linux Sound Architecture) modem driver:  snd-hda-intel
 provides Low Level support enabling contact with the modem hardware.
 For all BUT Conexant chip soft modems (using hsfmodem software)
 complementary High Level support is through a Smartlink utility:  slmodemd

 Download from http://linmodems.technion.ac.il/packages/smartlink/ 
 the package SLMODEMD.gcc4.1.tar.gz having a compiled slmodemd. Unpack under Linux with:
 	$ tar zxf SLMODEMD.gcc4.1.tar.gz
 and read instructions therein. But briefly, the modem is setup with command:
 	 slmodemd -c YOUR_COUNTRY --alsa hw:0,6 
 reporting dynamic creation of ports:
	/dev/ttySL0 --> /dev/pts/N   , with N some number
 Read Smartlink.txt and Modem/YourSystem.txt for follow through guidance.

 Already loaded into the kernel is snd-hda-intel and audio drivers it depends on,
 displayed by:	lsmod | grep snd_hda_intel
Module                  Size  Used by
-------------------------------------
snd_hda_intel          18712  0 
snd_hda_codec         148928  1 snd_hda_intel
snd_pcm                69380  2 snd_hda_intel,snd_hda_codec
snd                    49188  4 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
snd_page_alloc          9992  2 snd_hda_intel,snd_pcm


The diagnostic outputs for this softmodem section have their raw information in
folders and text files under /proc/asound/ which you can browse. The information
is from files:
	/proc/asound/pcm
-------------------------------
00-06: Si3054 Modem : Si3054 Modem : playback 1 : capture 1
00-02: ALC880 Analog : ALC880 Analog : capture 2
00-01: ALC880 Digital : ALC880 Digital : playback 1
00-00: ALC880 Analog : ALC880 Analog : playback 1 : capture 2

	/proc/asound/modules
-------------------------------
 0 snd_hda_intel
	/proc/asound/card0/codec#1
-------------------------------
Codec: Motorola Si3054
Address: 1
Vendor Id: 0x10573055
Subsystem Id: 0x104310c6
Revision Id: 0x100700
-------------------------------
Current support status of HDA cards is:
  Vendor IDs  Chip maker     Support type 
  ----------  ----------    -------------
  0x14f12bfa  Conexant      hsfmodem , not slmodemd compatible
  0x11c13026  AgereSystems  snd-hda-intel, slmodemd supported
  0x11c11040  AgereSystems      "             "    , patch needed
  0x11c13055  AgereSystems      "             "    ,      "
  0x163c3055  Smartlink         "             "    ,      "
  0x163c3155    "               "             "    ,      "
  0x10573055  Motorola          "             "    ,      "
  0x10573155     "              "             "    ,      ""
as of October 2006.

and from the command:
	aplay -l | grep -i modem
card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem]

----------------end Softmodem section --------------

Writing Intel.txt
Writing Smartlink.txt
============ end Smartlink section =====================

 Completed candidate modem analyses.

 The base of the UDEV device file system is: /dev/.udev

 Versions adequately match for the compiler installed: 4.1.2
             and the compiler used in kernel assembly: 4.1.2

 Kernel-header resources needed for compiling are not manifestly ready!

 If compiling is necessary packages must be installed, providing:
	 kernel-source-2.6.18.8-ana-gentoo


Checking pppd properties:
	-r-s--x--x 1 root root 249296 Apr  3 05:30 /usr/sbin/pppd

In case of an "error 17" "serial loopback" problem, see:
    http://phep2.technion.ac.il/linmodems/archive-sixth/msg02637.html

To enable dialout without Root permission do:
	$ su - root  (not for Ubuntu)
         chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
	 chmod a+x /usr/sbin/pppd

Checking settings of:	/etc/ppp/options
lock

In case of a message like:
   Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
see http://linmodems.technion.ac.il/bigarch/archive-sixth/msg04656.html

Read Modem/YourSystem.txt concerning other COMM channels: eth1
Which can interfere with Browser naviagation.

 Don't worry about the following, it is for the experts
 should trouble shooting be necessary.
==========================================================

KERNEL=="slamr", NAME="slamr0" GROUP="dialout"
 Checking for modem support lines:
 --------------------------------------
     /device/modem symbolic link:   
slmodemd created symbolic link /dev/ttySL0:  
     Within /etc/udev/ files:

     Within /etc/modprobe.conf files:

     Within any ancient /etc/devfs files:

     Within ancient kernel 2.4.n /etc/module.conf files:
/etc/modules.conf:### modules-update: start processing /etc/modules.d/slmodem
/etc/modules.conf:# slmodem 2.9.x kernel modules' configuration file
/etc/modules.conf:### modules-update: end processing /etc/modules.d/slmodem
/etc/modules.d/slmodem:# slmodem 2.9.x kernel modules' configuration file
--------- end modem support lines --------

Attachment: signature.asc
Description: This is a digitally signed message part.


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

  Powered by Linux