OSS okay, ALSA not; snd_intel8x0 on FC2
Nick Urbanik
nicku at vtc.edu.hk
Sat Aug 21 23:42:46 UTC 2004
Dear Folks,
I had ALSA working happily on the 82801EB/ER sound built into this
Intel motherboard with Fedora Core 1, with ALSA drivers from
Freshrpms.
After upgrading to FC2, sound works, but only in OSS mode. Symptoms:
1. If the output plugin of XMMS is set to ALSA, I get the error
message box with title: "Couldn't open audio".
2. If output plugin of XMMS is set to OSS, it works.
3. If I run gnome-alsamixer, no sliders are shown. If I choose File
-> Properties, it crashes: "The Application "gnome-alsamixer" has
quit unexpectedly."
4. mplayer -ao alsa9 movie.mpg gives no sound.
I do not understand what is stopping it from working. I understand
that modules.conf has no effect with 2.6 kernels. I do not understand
how ALSA setup works. I would appreciate any pointers.
If there is any further information I should send to allow someone to
understand my problem, I would be happy to oblige.
I posted this to the alsa list, but received only one reply,
suggesting that the cause could be that esd or artsd grabbing access
to the soundcard. Excuse my stupidity, but I don't know how to check
this:
$ ps auxwww | egrep 'esd|arts'
nicku 7530 0.0 0.0 4448 608 pts/5 S 16:16 0:00 egrep
esd|arts
$ chkconfig --list | grep on | awk '{print $1}' | tr "\n" ' '
microcode_ctl kudzu syslog netfs network random rawdevices apmd atd
gpm autofs iptables nscd isdn sshd portmap nfs nfslock sendmail rhnsd
crond anacron httpd smb xfs xinetd cups named ntpd canna dhcpd
ip6tables mdmonitor messagebus irqbalance smartd hpoj ldap mysqld
spamassassin firewall yum noip2 readahead_early cpuspeed readahead
rpcidmapd rpcgssd rpcsvcgssd mdmpd IIim sysstat nmicmp: sgi_fam:
From the above, it seems that niether esd nor artsd are running, but I
know nothing much about that software. I normally running Gnome, not
kde, but have the same problem when I tried kde.
============================
$ lspci
00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub
Interface (rev 02)
00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev
02)
00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI
#1 (rev 02)00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R)
USB UHCI #2 (rev 02)00:1d.2 USB Controller: Intel Corp. 82801EB/ER
(ICH5/ICH5R) USB UHCI #3 (rev 02)00:1d.3 USB Controller: Intel
Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)00:1d.7 USB
Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
(rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to
PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge
(rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA
100 Storage Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150
Storage Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller
(rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER
(ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2
GTS/Pro] (rev a3)
02:03.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:03.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:05.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100]
(rev 08)
02:08.0 Ethernet controller: Intel Corp. 82562EZ 10/100 Ethernet
Controller (rev 01)
============================
$ lsmod
Module Size Used by
snd_mixer_oss 14017 2
snd_intel8x0 30829 2
snd_ac97_codec 58821 1 snd_intel8x0
snd_pcm 83529 1 snd_intel8x0
snd_timer 25413 1 snd_pcm
snd_page_alloc 8393 2 snd_intel8x0,snd_pcm
gameport 4033 1 snd_intel8x0
snd_mpu401_uart 7361 1 snd_intel8x0
snd_rawmidi 21733 1 snd_mpu401_uart
snd_seq_device 6473 1 snd_rawmidi
snd 45477 8
snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart=
,snd_rawmidi,snd_seq_device
soundcore 7713 3 snd
parport_pc 21249 1
lp 9133 0
parport 35977 2 parport_pc,lp
ppp_deflate 4289 2
zlib_deflate 19801 1 ppp_deflate
nfsd 168545 9
exportfs 6721 1 nfsd
lockd 52105 2 nfsd
autofs4 20677 0
sunrpc 141861 19 nfsd,lockd
ppp_synctty 8129 0
ppp_async 9153 2
crc_ccitt 1985 1 ppp_async
ppp_generic 31061 11 ppp_deflate,ppp_synctty,ppp_async
slhc 5825 1 ppp_generic
e100 34373 0
mii 3777 1 e100
ipt_multiport 1857 9
ipt_REJECT 5057 2
ipt_MASQUERADE 2881 3
ipt_limit 2625 6
iptable_mangle 2369 0
iptable_filter 2369 1
ipt_LOG 5824 15
ipt_state 1857 41
ip_nat_ftp 4913 0
ip_conntrack_ftp 71153 1 ip_nat_ftp
iptable_nat 19049 3 ipt_MASQUERADE,ip_nat_ftp
ip_conntrack 25569 5
ipt_MASQUERADE,ipt_state,ip_nat_ftp,ip_conntrack_ftp,iptable_nat
ip_tables 13889 9
ipt_multiport,ipt_REJECT,ipt_MASQUERADE,ipt_limit,iptable_mangle,iptable_fi=
lter,ipt_LOG,ipt_state,iptable_nat
floppy 54001 0
sg 28513 0
microcode 5601 0
dm_mod 47317 0
joydev 7169 0
uhci_hcd 28505 0
ehci_hcd 27973 0
button 4825 0
battery 7117 0
asus_acpi 9177 0
ac 3533 0
md5 3905 1
ipv6 217349 26
ext3 96937 1
jbd 66521 1 ext3
raid1 18241 1
ata_piix 5701 0
libata 29637 1 ata_piix
sd_mod 17473 0
scsi_mod 105360 3 sg,libata,sd_mod
============================
$ uname -r
2.6.8-1.521
============================
$ rpm -qa | grep alsa
alsa-lib-devel-1.0.3a-2
alsaplayer-0.99.76-2.1.fc2.fr
balsa-2.0.17-1
alsa-utils-1.0.3-1
gnome-alsamixer-0.9.6-3.1.fc2.fr
alsa-lib-1.0.3a-2
============================
$ cat /etc/modprobe.conf
# Note: for use under 2.4, changes must also be made to modules.conf!
alias eth0 e100
alias eth1 e100
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
=20
# alias char-major-116-* snd
# alias snd-card-0 sound-card-0
# alias char-major-14-* soundcore
# alias sound-service-0-0 snd-mixer-oss
# alias sound-service-0-1 snd-seq-oss
# alias sound-service-0-3 snd-pcm-oss
# alias sound-service-0-8 snd-seq-oss
# alias sound-service-0-12 snd-pcm-oss
# options snd major=3D116 cards_limit=3D1 device_mode=3D0666
# options snd-intel8x0 index=3D0
alias char-major-89-* i2c-dev
# alias scsi_hostadapter tmscsim
# options lockd nlm_udpport=3D4001 nlm_tcpport=3D4001
# alias scsi_hostadapter1 ata_piix
# install sound-slot-0 /sbin/modprobe --first-time --ignore-install
# sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null
# 2>&1 || :; }
# remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S
# >/dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time
# --ignore-remove sound-slot-0
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.4 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
# See:
# --- http://www.alsa-project.org/alsa-doc/doc-php/template.php?company=3DI=
ntel&card=3Di820&chip=3Di820&module=3Dintel8x0#expl
=20
# ALSA portion
alias char-major-116 snd
# module options should go here
#options snd major=3D116 cards_limit=3D1
#options snd-intel8x0 index=3D0
=20
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
=20
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# install sound-slot-0 /sbin/modprobe --first-time --ignore-install
sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null
2>&1 || :; }
# remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S
>/dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time
=20
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&
/usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ;
}; /sbin/modprobe -r --ignore-remove snd-intel8x0
=20
alias char-major-81 bttv
============================
$ sudo egrep 'alsa|snd|intel8x0' /var/log/messages | tail
Aug 19 00:55:36 nicksbox alsasound: done
Aug 19 00:55:36 nicksbox rc: Stopping alsasound: succeeded
Aug 19 01:00:35 nicksbox kernel: snd: Unknown parameter `device_mode'
Aug 19 01:00:35 nicksbox kernel: intel8x0_measure_ac97_clock: measured
49301 usecs
Aug 19 01:00:35 nicksbox kernel: intel8x0: clocking to 48000
Aug 19 01:47:59 nicksbox kernel: snd: Unknown parameter `device_mode'
Aug 19 01:48:00 nicksbox kernel: intel8x0_measure_ac97_clock: measured
49279 usecs
Aug 19 01:48:00 nicksbox kernel: intel8x0: clocking to 48000
Aug 19 02:05:27 nicksbox kernel: intel8x0_measure_ac97_clock: measured
49281 usecs
Aug 19 02:05:27 nicksbox kernel: intel8x0: clocking to 48000
============================
I discovered that /etc/rc.d/init.d/alsasound was left from FC1, and
disabled it. I had also fixed the /etc/modprobe.conf to comment out
the device_mode=3D666 option to snd.
============================
Here is the output of aadebug:
$ aadebug
ALSA Audio Debug v0.0.8 - Sun Aug 22 06:49:03 HKT 2004
http://alsa.opensrc.org/?aadebug
Kernel ----------------------------------------------------
Linux nicksbox.tyict.vtc.edu.hk 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT 2004 i686 i686 i386 GNU/Linux
Loaded Modules --------------------------------------------
snd_pcm_oss 43129 0
snd_mixer_oss 14017 2 snd_pcm_oss
snd_intel8x0 30829 1
snd_ac97_codec 58821 1 snd_intel8x0
snd_pcm 83529 2 snd_pcm_oss,snd_intel8x0
snd_timer 25413 1 snd_pcm
snd_page_alloc 8393 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 7361 1 snd_intel8x0
snd_rawmidi 21733 1 snd_mpu401_uart
snd_seq_device 6473 1 snd_rawmidi
snd 45477 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
Modprobe Conf ---------------------------------------------
# alias char-major-116-* snd
# alias snd-card-0 sound-card-0
# alias char-major-14-* soundcore
# alias sound-service-0-0 snd-mixer-oss
# alias sound-service-0-1 snd-seq-oss
# alias sound-service-0-3 snd-pcm-oss
# alias sound-service-0-8 snd-seq-oss
# alias sound-service-0-12 snd-pcm-oss
# options snd major=116 cards_limit=1 device_mode=0666
# options snd-intel8x0 index=0
# install sound-slot-0 /sbin/modprobe --first-time --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :; }
# remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 | | :; } ; /sbin/modprobe -r --first-time --ignore-remove sound-slot-0
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
alias char-major-116 snd
#options snd major=116 cards_limit=1
#options snd-intel8x0 index=0
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# install sound-slot-0 /sbin/modprobe --first-time --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :; }
# remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 | | :; } ; /sbin/modprobe -r --first-time --ignore-remove sound-slot-0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
Proc Asound -----------------------------------------------
Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17 14:31:44 2004 UTC).
Compiled on Aug 16 2004 for kernel 2.6.8-1.521.
0 [ICH5 ]: ICH - Intel ICH5
Intel ICH5 at 0xfebff800, irq 3
0: [0- 0]: ctl
20: [0- 4]: digital audio playback
27: [0- 3]: digital audio capture
26: [0- 2]: digital audio capture
25: [0- 1]: digital audio capture
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
33: : timer
cat: /proc/asound/hwdep: No such file or directory
00-00: Intel ICH : Intel ICH5 : playback 1 : capture 1
00-01: Intel ICH - MIC ADC : Intel ICH5 - MIC ADC : capture 1
00-02: Intel ICH - MIC2 ADC : Intel ICH5 - MIC2 ADC : capture 1
00-03: Intel ICH - ADC2 : Intel ICH5 - ADC2 : capture 1
00-04: Intel ICH - IEC958 : Intel ICH5 - IEC958 : playback 1
Dev Snd ---------------------------------------------------
controlC0 hwC2D3 midiC1D2 midiC3D1 pcmC0D4c pcmC1D3p pcmC2D3c pcmC3D2pcontrolC1 hwC3D0 midiC1D3 midiC3D2 pcmC0D4p pcmC1D4c pcmC2D3p pcmC3D3ccontrolC2 hwC3D1 midiC1D4 midiC3D3 pcmC0D5c pcmC1D4p pcmC2D4c pcmC3D3pcontrolC3 hwC3D2 midiC1D5 midiC3D4 pcmC0D5p pcmC1D5c pcmC2D4p pcmC3D4chwC0D0 hwC3D3 midiC1D6 midiC3D5 pcmC0D6c pcmC1D5p pcmC2D5c pcmC3D4phwC0D1 midiC0D0 midiC1D7 midiC3D6 pcmC0D6p pcmC1D6c pcmC2D5p pcmC3D5chwC0D2 midiC0D1 midiC2D0 midiC3D7 pcmC0D7c pcmC1D6p pcmC2D6c pcmC3D5phwC0D3 midiC0D2 midiC2D1 pcmC0D0c pcmC0D7p pcmC1D7c pcmC2D6p pcmC3D6chwC1D0 midiC0D3 midiC2D2 pcmC0D0p pcmC1D0c pcmC1D7p pcmC2D7c pcmC3D6phwC1D1 midiC0D4 midiC2D3 pcmC0D1c pcmC1D0p pcmC2D0c pcmC2D7p pcmC3D7chwC1D2 midiC0D5 midiC2D4 pcmC0D1p pcmC1D1c pcmC2D0p pcmC3D0c pcmC3D7phwC1D3 midiC0D6 midiC2D5 pcmC0D2c pcmC1D1p pcmC2D1c pcmC3D0p seq
hwC2D0 midiC0D7 midiC2D6 pcmC0D2p pcmC1D2c pcmC2D1p pcmC3D1c timer
hwC2D1 midiC1D0 midiC2D7 pcmC0D3c pcmC1D2p pcmC2D2c pcmC3D1p
hwC2D2 midiC1D1 midiC3D0 pcmC0D3p pcmC1D3c pcmC2D2p pcmC3D2c
CPU -------------------------------------------------------
model name : Intel(R) Pentium(R) 4 CPU 2.26GHz
cpu MHz : 2261.233
RAM -------------------------------------------------------
MemTotal: 1034920 kB
SwapTotal: 715168 kB
Hardware --------------------------------------------------
00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface(rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 A udio Controller (rev 02)
02:03.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture ( rev 11)
02:03.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Using ALSA still doesn't work with mplayer, xmms, gnome-alsamixer. I
would appreciate any pointers.
--
Nick Urbanik RHCE nicku(at)vtc.edu.hk
Proud member of the Dept. of Information & Communications Technology,
Home of Visual Paradigm: Jolt Productivity Award winner, programmed
by our own graduates! Tel: (852) 2436 8576 Fax: (852) 2436 8526
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040822/5636ab1a/attachment-0001.sig>
More information about the fedora-list
mailing list