Upgrading to 2.6.27-gentoo-r7 from 2.6.26-gentoo-r4 using make oldconfig and building sound drivers in the kernel breaks alsa. Drivers cannot be detected by alsasound when booting with 2.6.27-gentoo-r7, but work as expected with the previous stable kernel: 2.6.26-gentoo-r4. Reproducible: Always Steps to Reproduce: 1.Copy .config from 2.6.26-gentoo-r4/ to 2.6.27-gentoo-r7/ 2.Run make oldconfig 3.Select sound drivers in kernel 4.Reboot Actual Results: alsasound fails to load, because it cannot find the kernel drivers: ================================================ # /etc/init.d/alsasound restart * Loading ALSA modules ... * Could not detect custom ALSA settings. Loading all detected alsa drivers. * Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly? * ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels ... alsactl: unrecognized option `---' Usage: alsactl <options> command Available options: -h,--help this help -f,--file # configuration file (default /etc/asound.state or /etc/asound.names) -F,--force try to restore the matching controls as much as possible (default mode) -P,--pedantic don't restore mismatching controls (old default) -d,--debug debug mode -v,--version print version of this program Available commands: store <card #> save current driver setup for one or each soundcards to configuration file restore <card #> load current driver setup for one or each soundcards from configuration file names <card #> dump information about all the known present (sub-)devices into configuration file (DEPRECATED) * Errors while restoring defaults, ignoring [ ok ] ================================================ Relevant info for my hardware: lshw gives: ================================================ *-multimedia UNCLAIMED description: Multimedia audio controller product: ES1988 Allegro-1 vendor: ESS Technology physical id: 9 bus info: pci@0000:02:09.0 version: 12 width: 32 bits clock: 33MHz capabilities: pm cap_list configuration: latency=64 maxlatency=24 mingnt=2 ================================================ lspci gives: ================================================ 02:09.0 Multimedia audio controller: ESS Technology ES1988 Allegro-1 (rev 12) Subsystem: Compaq Computer Corporation Device 0094 Flags: medium devsel, IRQ 11 I/O ports at 2400 [size=256] Capabilities: [c0] Power Management version 2 ================================================ These are my 2.6.27-gentoo-r7 kernel options: ================================================ CONFIG_SND=y CONFIG_SND_TIMER=y CONFIG_SND_PCM=y CONFIG_SND_SEQUENCER=y CONFIG_SND_OSSEMUL=y CONFIG_SND_MIXER_OSS=y CONFIG_SND_PCM_OSS=y CONFIG_SND_PCM_OSS_PLUGINS=y CONFIG_SND_SEQUENCER_OSS=y CONFIG_SND_RTCTIMER=y CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y CONFIG_SND_VMASTER=y CONFIG_SND_AC97_CODEC=y CONFIG_SND_DRIVERS=y CONFIG_SND_AC97_POWER_SAVE=y CONFIG_SND_AC97_POWER_SAVE_DEFAULT=5 CONFIG_SND_PCI=y CONFIG_SND_MAESTRO3=y ================================================ Please ask for more info if the above is not adequate. -- Regards, Mick
Did you run alsaconf after that reboot? Which version of alsa-{lib,utils} do you use?
(In reply to comment #1) > Did you run alsaconf after that reboot? Yes, but it cannot find any drivers or my card: modinfo: could not find module snd Running alsamixer gives: alsamixer: function snd_ctl_open failed for default: No such file or directory Which version of alsa-{lib,utils} do > you use? media-libs/alsa-lib-1.0.17a USE="midi python -alisp -debug -doc" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" -- Regards, Mick
Please compile all those sound drivers as modules and try again: "Please note that for ease of use, all examples show ALSA built as modules. It is advisable to follow the same as it then allows the use of alsaconf which is a boon when you want to configure your card."[1] [1] http://www.gentoo.org/doc/en/alsa-guide.xml
(In reply to comment #3) > Please compile all those sound drivers as modules and try again: How strange! It works with the drivers built in as modules... It came up with an error though: ============================================================= # make && make modules_install scripts/kconfig/conf -s arch/x86/Kconfig CHK include/linux/version.h CHK include/linux/utsrelease.h CALL scripts/checksyscalls.sh CHK include/linux/compile.h LD sound/built-in.o CC [M] sound/ac97_bus.o LD sound/core/oss/built-in.o CC [M] sound/core/oss/mixer_oss.o CC [M] sound/core/oss/pcm_oss.o CC [M] sound/core/oss/pcm_plugin.o CC [M] sound/core/oss/io.o CC [M] sound/core/oss/copy.o CC [M] sound/core/oss/linear.o CC [M] sound/core/oss/mulaw.o CC [M] sound/core/oss/route.o CC [M] sound/core/oss/rate.o LD [M] sound/core/oss/snd-mixer-oss.o LD [M] sound/core/oss/snd-pcm-oss.o LD sound/core/seq/built-in.o CC [M] sound/core/seq/seq_device.o CC [M] sound/core/seq/seq_midi_event.o CC [M] sound/core/seq/seq.o CC [M] sound/core/seq/seq_lock.o CC [M] sound/core/seq/seq_clientmgr.o CC [M] sound/core/seq/seq_memory.o CC [M] sound/core/seq/seq_queue.o CC [M] sound/core/seq/seq_fifo.o CC [M] sound/core/seq/seq_prioq.o CC [M] sound/core/seq/seq_timer.o CC [M] sound/core/seq/seq_system.o CC [M] sound/core/seq/seq_ports.o CC [M] sound/core/seq/seq_info.o LD [M] sound/core/seq/snd-seq.o LD [M] sound/core/seq/snd-seq-device.o LD [M] sound/core/seq/snd-seq-midi-event.o LD sound/core/seq/oss/built-in.o CC [M] sound/core/seq/oss/seq_oss.o CC [M] sound/core/seq/oss/seq_oss_init.o CC [M] sound/core/seq/oss/seq_oss_timer.o CC [M] sound/core/seq/oss/seq_oss_ioctl.o CC [M] sound/core/seq/oss/seq_oss_event.o CC [M] sound/core/seq/oss/seq_oss_rw.o CC [M] sound/core/seq/oss/seq_oss_synth.o CC [M] sound/core/seq/oss/seq_oss_midi.o CC [M] sound/core/seq/oss/seq_oss_readq.o CC [M] sound/core/seq/oss/seq_oss_writeq.o LD [M] sound/core/seq/oss/snd-seq-oss.o LD sound/core/built-in.o CC [M] sound/core/memalloc.o CC [M] sound/core/sgbuf.o CC [M] sound/core/pcm.o CC [M] sound/core/pcm_native.o sound/core/pcm_native.c: In function 'snd_pcm_fasync': sound/core/pcm_native.c:3255: warning: label 'out' defined but not used CC [M] sound/core/pcm_lib.o CC [M] sound/core/pcm_timer.o CC [M] sound/core/pcm_misc.o CC [M] sound/core/pcm_memory.o CC [M] sound/core/rtctimer.o CC [M] sound/core/timer.o CC [M] sound/core/sound.o CC [M] sound/core/init.o CC [M] sound/core/memory.o CC [M] sound/core/info.o CC [M] sound/core/control.o CC [M] sound/core/misc.o CC [M] sound/core/device.o CC [M] sound/core/isadma.o CC [M] sound/core/sound_oss.o CC [M] sound/core/info_oss.o CC [M] sound/core/vmaster.o LD [M] sound/core/snd.o LD [M] sound/core/snd-timer.o LD [M] sound/core/snd-rtctimer.o LD [M] sound/core/snd-pcm.o LD [M] sound/core/snd-page-alloc.o LD sound/drivers/built-in.o LD sound/i2c/built-in.o LD sound/isa/built-in.o LD sound/pci/built-in.o CC [M] sound/pci/maestro3.o LD [M] sound/pci/snd-maestro3.o LD sound/pci/ac97/built-in.o CC [M] sound/pci/ac97/ac97_codec.o CC [M] sound/pci/ac97/ac97_pcm.o CC [M] sound/pci/ac97/ac97_proc.o LD [M] sound/pci/ac97/snd-ac97-codec.o LD sound/synth/built-in.o LD sound/usb/built-in.o LD vmlinux.o MODPOST vmlinux.o WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/x86/boot/compressed/vmlinux.bin GZIP arch/x86/boot/compressed/vmlinux.bin.gz LD arch/x86/boot/compressed/piggy.o LD arch/x86/boot/compressed/vmlinux OFFSETS arch/x86/boot/offsets.h AS arch/x86/boot/header.o CC arch/x86/boot/version.o LD arch/x86/boot/setup.elf OBJCOPY arch/x86/boot/setup.bin OBJCOPY arch/x86/boot/vmlinux.bin BUILD arch/x86/boot/bzImage Root device is (3, 3) Setup is 11352 bytes (padded to 11776 bytes). System is 3180 kB CRC 6671090e Kernel: arch/x86/boot/bzImage is ready (#4) Building modules, stage 2. MODPOST 81 modules CC sound/ac97_bus.mod.o LD [M] sound/ac97_bus.ko CC sound/core/oss/snd-mixer-oss.mod.o LD [M] sound/core/oss/snd-mixer-oss.ko CC sound/core/oss/snd-pcm-oss.mod.o LD [M] sound/core/oss/snd-pcm-oss.ko CC sound/core/seq/oss/snd-seq-oss.mod.o LD [M] sound/core/seq/oss/snd-seq-oss.ko CC sound/core/seq/snd-seq-device.mod.o LD [M] sound/core/seq/snd-seq-device.ko CC sound/core/seq/snd-seq-midi-event.mod.o LD [M] sound/core/seq/snd-seq-midi-event.ko CC sound/core/seq/snd-seq.mod.o LD [M] sound/core/seq/snd-seq.ko CC sound/core/snd-page-alloc.mod.o LD [M] sound/core/snd-page-alloc.ko CC sound/core/snd-pcm.mod.o LD [M] sound/core/snd-pcm.ko CC sound/core/snd-rtctimer.mod.o LD [M] sound/core/snd-rtctimer.ko CC sound/core/snd-timer.mod.o LD [M] sound/core/snd-timer.ko CC sound/core/snd.mod.o LD [M] sound/core/snd.ko CC sound/pci/ac97/snd-ac97-codec.mod.o LD [M] sound/pci/ac97/snd-ac97-codec.ko CC sound/pci/snd-maestro3.mod.o LD [M] sound/pci/snd-maestro3.ko INSTALL drivers/acpi/video.ko INSTALL drivers/block/cryptoloop.ko INSTALL drivers/bluetooth/bcm203x.ko INSTALL drivers/bluetooth/btusb.ko INSTALL drivers/bluetooth/hci_uart.ko INSTALL drivers/hid/hid.ko INSTALL drivers/i2c/chips/eeprom.ko INSTALL drivers/i2c/i2c-dev.ko INSTALL drivers/ide/ide-floppy.ko INSTALL drivers/ide/legacy/ide-cs.ko INSTALL drivers/net/bsd_comp.ko INSTALL drivers/net/dummy.ko INSTALL drivers/net/irda/irtty-sir.ko INSTALL drivers/net/irda/sir-dev.ko INSTALL drivers/net/irda/smsc-ircc2.ko INSTALL drivers/net/ppp_async.ko INSTALL drivers/net/ppp_deflate.ko INSTALL drivers/net/ppp_generic.ko INSTALL drivers/net/ppp_mppe.ko INSTALL drivers/net/ppp_synctty.ko INSTALL drivers/net/pppol2tp.ko INSTALL drivers/net/pppox.ko INSTALL drivers/net/slhc.ko INSTALL drivers/net/tun.ko INSTALL drivers/net/usb/asix.ko INSTALL drivers/net/usb/cdc_ether.ko INSTALL drivers/net/usb/cdc_subset.ko INSTALL drivers/net/usb/usbnet.ko INSTALL drivers/net/wireless/rt2x00/rt2500usb.ko INSTALL drivers/net/wireless/rt2x00/rt2x00lib.ko INSTALL drivers/net/wireless/rt2x00/rt2x00usb.ko INSTALL drivers/pcmcia/pcmcia.ko INSTALL drivers/pcmcia/pcmcia_core.ko INSTALL drivers/pcmcia/rsrc_nonstatic.ko INSTALL drivers/pcmcia/yenta_socket.ko INSTALL drivers/scsi/scsi_wait_scan.ko INSTALL drivers/serial/serial_cs.ko INSTALL drivers/usb/host/ehci-hcd.ko INSTALL drivers/usb/host/ohci-hcd.ko INSTALL drivers/usb/serial/belkin_sa.ko INSTALL drivers/usb/serial/ftdi_sio.ko INSTALL drivers/usb/serial/ipaq.ko INSTALL drivers/usb/serial/safe_serial.ko INSTALL drivers/usb/serial/usbserial.ko INSTALL drivers/video/backlight/lcd.ko INSTALL drivers/video/output.ko INSTALL net/bluetooth/bluetooth.ko INSTALL net/bluetooth/bnep/bnep.ko INSTALL net/bluetooth/hidp/hidp.ko INSTALL net/bluetooth/l2cap.ko INSTALL net/bluetooth/rfcomm/rfcomm.ko INSTALL net/bluetooth/sco.ko INSTALL net/ieee80211/ieee80211_crypt_ccmp.ko INSTALL net/ieee80211/ieee80211_crypt_tkip.ko INSTALL net/ipv4/ah4.ko INSTALL net/ipv4/esp4.ko INSTALL net/ipv4/ipcomp.ko INSTALL net/ipv4/tunnel4.ko INSTALL net/ipv4/xfrm4_mode_transport.ko INSTALL net/ipv4/xfrm4_mode_tunnel.ko INSTALL net/ipv4/xfrm4_tunnel.ko INSTALL net/irda/ircomm/ircomm-tty.ko INSTALL net/irda/ircomm/ircomm.ko INSTALL net/irda/irda.ko INSTALL net/key/af_key.ko INSTALL net/xfrm/xfrm_ipcomp.ko INSTALL net/xfrm/xfrm_user.ko INSTALL sound/ac97_bus.ko INSTALL sound/core/oss/snd-mixer-oss.ko INSTALL sound/core/oss/snd-pcm-oss.ko INSTALL sound/core/seq/oss/snd-seq-oss.ko INSTALL sound/core/seq/snd-seq-device.ko INSTALL sound/core/seq/snd-seq-midi-event.ko INSTALL sound/core/seq/snd-seq.ko INSTALL sound/core/snd-page-alloc.ko INSTALL sound/core/snd-pcm.ko INSTALL sound/core/snd-rtctimer.ko INSTALL sound/core/snd-timer.ko INSTALL sound/core/snd.ko INSTALL sound/pci/ac97/snd-ac97-codec.ko INSTALL sound/pci/snd-maestro3.ko DEPMOD 2.6.27-gentoo-r7 ============================================================= lsmod: ============================================================= # lsmod Module Size Used by snd_pcm_oss 34624 0 snd_mixer_oss 13664 1 snd_pcm_oss snd_seq_oss 28416 0 snd_seq_midi_event 5920 1 snd_seq_oss snd_seq 45040 4 snd_seq_oss,snd_seq_midi_event snd_seq_device 6156 2 snd_seq_oss,snd_seq snd_maestro3 17316 0 snd_ac97_codec 94496 1 snd_maestro3 snd_pcm 59432 3 snd_pcm_oss,snd_maestro3,snd_ac97_codec snd_timer 19140 2 snd_seq,snd_pcm snd_page_alloc 7048 1 snd_pcm snd 46148 9 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_maestro3,snd_ac97_codec,snd_pcm,snd_timer wlan_scan_sta 10112 1 ath_rate_sample 10688 1 ath_pci 83456 0 wlan 165840 4 wlan_scan_sta,ath_rate_sample,ath_pci ath_hal 187600 3 ath_rate_sample,ath_pci radeon 120800 3 drm 117488 4 radeon af_key 25840 0 xfrm4_tunnel 1888 0 tunnel4 2248 1 xfrm4_tunnel esp4 5728 0 ah4 4448 0 ipcomp 2592 0 xfrm_ipcomp 4392 1 ipcomp ircomm_tty 19944 0 ircomm 9956 1 ircomm_tty xfrm_user 19104 0 ieee80211_crypt_tkip 8800 0 ieee80211_crypt_ccmp 5376 0 bnep 11712 0 hidp 12864 0 rfcomm 33012 0 sco 9544 0 l2cap 20772 5 bnep,hidp,rfcomm hid 30948 1 hidp i2c_dev 5764 0 eeprom 5232 0 ide_cs 9568 0 ide_floppy 12096 0 ppp_mppe 6052 0 bsd_comp 5216 0 ppp_async 7968 0 dummy 2240 0 ppp_synctty 6400 0 ppp_deflate 4320 0 ppp_generic 18676 5 ppp_mppe,bsd_comp,ppp_async,ppp_synctty,ppp_deflate slhc 5536 1 ppp_generic serial_cs 20100 0 asix 14112 0 usbnet 13448 1 asix safe_serial 7112 0 ftdi_sio 47560 0 usbserial 27496 2 safe_serial,ftdi_sio cryptoloop 2432 0 lcd 3460 0 bcm203x 4128 0 hci_uart 18336 0 bluetooth 53668 6 bnep,hidp,rfcomm,sco,l2cap,hci_uart video 16144 0 output 2368 1 video irtty_sir 4608 0 pcmcia 32748 2 ide_cs,serial_cs sir_dev 10436 1 irtty_sir ac97_bus 1376 1 snd_ac97_codec ltserial 6928 0 irda 98648 3 ircomm_tty,ircomm,sir_dev yenta_socket 22828 3 ltmodem 550864 1 ltserial rsrc_nonstatic 10432 1 yenta_socket pcmcia_core 31376 5 ide_cs,serial_cs,pcmcia,yenta_socket,rsrc_nonstatic ============================================================= Why is it that it works as modules, but not built in the kernel? <confused> -- Regards, Mick