Sound not working after replacing snd-hda-intel.ko

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

 



Hi:

I'm trying to follow the instructions in
http://linmodems.technion.ac.il/packages/ltmodem/11c11040/HOWTO-Agere-11c11040-HDA.html
to install a software modem in Ubuntu 8.10 Intrepid
(2.6.27-16-generic) on a Toshiba A-135 laptop.  Output from scanModem
is attached.

Problem 1:
Sound doesn't work.  I found that the Ubuntu modules source code is
not to be found in /lib/modules/2.6.27-16-generic/ where I expected
it, so I downloaded what I believe to be the correct code distribution
from the Ubuntu website to /home/userdude/ubuntu-intrepid, found
hda_codec.c and edited as instructed, and typed make modules in the
ubuntu-intrepid directory.  It did compile, but after I cp'd
snd-hda-intel.ko to
/lib/modules/2.6.27-16-generic/kernel/sound/pci/hda and re-booted, my
sound doesn't work.  I can go back to the old snd-hda-intel.ko and my
sound works fine.

Problem 2:
I went ahead with the steps of downloading and compiling the driver
software and got an error message:
userdude@potato:/media/xp/downloads/agrsm-20080721$ make -C
/home/userdude/ubuntu-intrepid/
SUBDIRS=/media/xp/downloads/agrsm-20080721 modules
make: Entering directory `/home/userdude/ubuntu-intrepid'
  CC [M]  /media/xp/downloads/agrsm-20080721/agrsoftmodem.o
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c: In function ‘kill_proc_wrap’:
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:317: error: implicit
declaration of function ‘kill_proc’
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c: In function
‘x_task_queue_init’:
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:448: warning:
assignment from incompatible pointer type
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c: In function
‘x_task_queue_init_usb’:
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:460: warning:
assignment from incompatible pointer type
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c: At top level:
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:487: warning:
function declaration isn’t a prototype
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:513: warning:
function declaration isn’t a prototype
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:523: warning:
function declaration isn’t a prototype
/media/xp/downloads/agrsm-20080721/agrsoftmodem.c:528: warning:
function declaration isn’t a prototype
make[1]: *** [/media/xp/downloads/agrsm-20080721/agrsoftmodem.o] Error 1
make: *** [_module_/media/xp/downloads/agrsm-20080721] Error 2
make: Leaving directory `/home/userdude/ubuntu-intrepid'

So I need help.  Any suggestions?

Thanks and Happy Holidays,

Johnny
 Only plain text email is forwarded by the  Discuss@xxxxxxxxxxxxx List Server,
 as HTML can contain viruses. Use as the email Subject Line:
           YourName, YourCountry  kernel 2.6.27-16-generic 
 With this Subject Line cogent experts will be alerted, and useful case names left in the Archive.
 YourCountry will enable Country specific guidance. Linux experts in YourCountry 
 can be found through: http://www.linux.org/groups/index.html.
They will know your Country's modem code, which may be essential for dialup service.
Responses from Discuss@xxxxxxxxxxxxx are sometimes blocked by an Internet Provider mail filters.
 So in a day, also check the Archived responses at http://www.linmodems.org 
--------------------------  System information ----------------------------
CPU=i686,  
Linux version 2.6.27-16-generic (buildd@palmer) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Tue Dec 1 17:56:54 UTC 2009
 scanModem update of:  2009_12_10


Presently install your Linux Distributions dkms package. It provides for automated driver updates,
following upgrade of your kernel.  For details see http://linux.dell.com/projects.shtml#dkms

 There are no blacklisted modem drivers in /etc/modprobe*  files 

 Potentially useful modem drivers now loaded are:
      cdc_acm snd_hda_intel           

Attached USB devices are:
 ID 22b8:2a62 Motorola PCS E815 GSM Phone (AT)
 ID 04a9:2220 Canon, Inc. CanoScan LIDE 25
 ID 0409:0059 NEC Corp. HighSpeed Hub
If a cellphone is not detected, see http://ubuntuforums.org/archive/index.php/t-878554.html
A sample report is:  http://linmodems.technion.ac.il/bigarch/archive-nineth/msg00578.html

If a USB modem or cellphone is attached and was not detected, please
provide available information in your request to discuss@xxxxxxxxxxxxx

For candidate card in slot 00:1b.0, firmware information and bootup diagnostics are:
 PCI slot	PCI ID		SubsystemID	Name
 ----------	---------	---------	--------------
 00:1b.0	8086:27d8	1179:ff01	Audio device: Intel Corporation 82801G 

 Modem interrupt assignment and sharing: 
 22:       1890          0   IO-APIC-fasteoi   HDA Intel
 --- Bootup diagnostics for card in PCI slot 00:1b.0 ----
[    0.636586] PCI: 0000:00:1b.0 reg 10 64bit mmio: [dc440000, dc443fff]
[    0.636586] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[    0.636586] pci 0000:00:1b.0: PME# disabled
[   17.683143] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   17.683192] HDA Intel 0000:00:1b.0: setting latency timer 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 DOCs/Bootup.txt about possible fixes.
 Send dmesg.txt along with ModemData.txt to discuss@xxxxxxxxxxxxx
 if help is needed.
 


===== Advanced Linux Sound Architecture (ALSA) diagnostics ===== 
The ALSA packages provide audio support and also drivers for some modems.
ALSA diagnostics are written during bootup to /proc/asound/ folders.

The ALSA verion is 1.0.17
The modem cards detected by "aplay -l"  are: None


The /proc/asound/pcm file reports:
-----------------------
00-00: ALC861VD Analog : ALC861VD Analog : playback 1 : capture 1

about /proc/asound/cards:
------------------------
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xdc440000 irq 22

 PCI slot 00:1b.0 has a High Definition Audio Card
 The drivers are in the kernel modules tree at:
 /lib/modules/2.6.27-16-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/2.6.27-11-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/2.6.27-7-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/2.6.27-14-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/2.6.27-9-generic/kernel/sound/pci/hda/snd-hda-intel.ko
/lib/modules/2.6.27-15-generic/kernel/sound/pci/hda/snd-hda-intel.ko
 The modem codec file for the HDA card is: /proc/asound/card0/codec#1
--------------------------------------------------------
Codec: LSI ID 1040
Address: 1
Vendor Id: 0x11c11040
Subsystem Id: 0x11790001
Revision Id: 0x100200
Modem Function Group: 0x1

 The audio card hosts a softmodem chip:  0x11c11040
If not a Conexant modem, the driver agrsm with its dependent drivers:

----------
provide audio + modem support with the modem chip residing on the subsystem.
Any particular card can host any one of several soft modem chips. 

=== Finished firmware and bootup diagnostics, next deducing cogent software. ===

Predictive  diagnostics for card in bus 00:1b.0:
	Modem chipset  detected on
NAME="Audio device: Intel Corporation 82801G "
CLASS=0403
PCIDEV=8086:27d8
SUBSYS=1179:ff01
IRQ=22
HDA=8086:27d8
SOFT=8086:27d8.HDA
HDAchipVendorID=11c1
CHIP=0x11c11040
IDENT=agrsm
Driver=agrsm

 For candidate modem in:  00:1b.0
   0403 Audio device: Intel Corporation 82801G 
      Primary device ID:  8086:27d8
    Subsystem PCI_id  1179:ff01 
    Softmodem codec or chipset from diagnostics: 0x11c11040
                               from    Archives: 
                        The HDA card softmodem chip is 0x11c11040
      

Support type needed or chipset:	agrsm


Writing DOCs/Intel.txt

The AgereSystems/LSI agrsm code supports compiling of a agrmodem + agrserial driver pair.
There are a few different chipsets which use this driver pair, but they use different code resources:
Chipsets			KV*	PackageNames (most current as of November 2009)
----------------------------------------------------------------------------------------------
11c1:048c and 11c1:048f         2.6.29	agrsm048pci-2.1.60_20091022_i386.deb or agrsm048pci-2.1.60_20091022.tar.gz
11c1:0620                       2.6.28  agrsm06pci_2.1.80~20090825_i386.deb  or agrsm06pci_2.1.80~20090825_i386.tar.gz 
11c11040 (on HDA audio cards)   2.6.31  agrsm-2.6.30.tar.bz2 !!
   All available at: http://linmodems.technion.ac.il/packages/ltmodem/11c11040/   , whereat additionally
automation & testing                    agrsm-tools_0.0.1_all.deb or agrsm-tools-0.0.1-2.noarch.rpm
General background                      agrsm_howto.txt 
for rpm variants of dkms-agrsm , see  http://linux.zsolttech.com/linmodem/agrsm/
------------------------------------------------------------------------------------------------
* KV == latest kernel release with a reported success 
!! Latest update with major credit to  Nikolay Zhuravlev
Report from  Bjorn Wielens:
Please note- trying to load the modules on a OpenSuSE 11.2 system gives
 an error about the module_version symbol. Using:
# modprobe --force agrmodem
# modprobe --force agrserial 
is necessary to load the drivers, and does not appear to cause ill effects.


All of the above packages are dkms competent.  This means that if your Linux distros dkms package
is previously installed, if provides for future updates matching forthcoming kernels.

-------------- end Agere Systems section -------------------

 Completed candidate modem analyses.

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

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


 
 Minimal compiling resources appear complete:
   make utility - /usr/bin/make
   Compiler version 4.3
   linuc_headers base folder /lib/modules/2.6.27-16-generic/build

 However some compilations and executable functions may need additional files,
 in the FileNames.h (so called kernel "h"eaders) collection installed in  /usr/include/ .
 For martian_modem, additional required packages are needed. The also required headers of package libc6 are commonly installed by default. 
 Compiling hsfmodem drivers does require linux-libc-dev and libc6-dev packages, for kernels 2.6.24 and later versions.
 In not included on your install CD, search for them at http://packages.ubuntu.com
 or comparable Repository for other Linux distros.
 When compiling ALSA drivers, the utility "patch" will also be needed.




If a driver compilation fails, with message including some lack of some FileName.h (stdio.h for example), then
Some additional kernel-header files need installation to /usr/include. The minimal additional packages are libc6-dev
and any of its dependents, under Ubuntu linux-libc-dev

If an alternate ethernet connection is available,
$  apt-get update
$  apt-get -s install linux-kernel-devel
will install needed packages.
For Debian/Ubuntu related distributions, run the following command to display the needed package list:

Otherwise packages have to be found through http://packages.ubuntu.com
Once downloaded and transferred into a Linux partition,
they can be installed alltogether with:
$ sudo dpkg -i *.deb


Checking pppd properties:
	-rwsr-xr-- 1 root dip 277160 2008-11-20 12:58 /usr/sbin/pppd

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

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

Checking settings of:	/etc/ppp/options
asyncmap 0
noauth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx

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/DOCs/YourSystem.txt concerning other COMM channels: eth0 vbinat0 wlan0 wmaster0
Which can interfere with Browser naviagation.

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

# start/stop the daemon when the USB modem is connected
KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon"
 Checking for modem support lines:
 --------------------------------------
     /device/modem symbolic link:   
slmodemd created symbolic link /dev/ttySL0:  
     Within /etc/udev/ files:
/etc/udev/sl-modem-daemon.rules:# start/stop the daemon when the USB modem is connected
/etc/udev/sl-modem-daemon.rules:KERNEL=="slusb[0-9]*", GROUP="dialout", RUN+="/etc/init.d/sl-modem-daemon"
     Within /etc/modprobe.conf files:
/etc/modprobe.d/sl-modem-daemon.modutils:install slamr modprobe --ignore-install ungrab-winmodem ;  modprobe --ignore-install slamr; test -e /dev/slamr0 || (/bin/mknod -m 660 /dev/slamr0 c 242 0 2>/dev/null && chgrp dialout /dev/slamr0) 
/etc/modprobe.d/alsa-base_old:options snd-atiixp-modem index=-2
/etc/modprobe.d/alsa-base_old:options snd-via82xx-modem index=-2
/etc/modprobe.d/alsa-base:options snd-atiixp-modem index=-2
/etc/modprobe.d/alsa-base:options snd-via82xx-modem index=-2
/etc/modprobe.d/blacklist-modem:# Uncomment these entries in order to blacklist unwanted modem drivers
/etc/modprobe.d/blacklist-modem:# blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist-modem:# blacklist snd-via82xx-modem
     Within any ancient /etc/devfs files:

     Within ancient kernel 2.4.n /etc/module.conf files:

--------- end modem support lines --------


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

  Powered by Linux