Portál AbcLinuxu, 12. května 2025 10:15
ondra-laptop ondra # lspci | grep Audio 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)Pouzivam jadro linux-2.6.19-gentoo-r5 a alsa-driver-1.0.14_rc1. Zkousel jsem i alsa-driver-1.0.14_rc2-r1, ale vysledek byl stejny. Pro nastaveni scriptu jsem pouzil alsaconf, ktery moji zvukovku rozpoznal. Je tam osazeny cip ALC861. Kdyz restartuju alsu dostanu toto:
ondra-laptop ondra # /etc/init.d/alsasound restart * Storing ALSA Mixer Levels ... /usr/sbin/alsactl: save_state:1253: No soundcards found... [ !! ] * Unloading ALSA ... [ ok ] * Unloading ALSA modules ... [ ok ] * Loading ALSA modules ... * Loading: snd-card-0 ... FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.19-gentoo-r5/alsa-driver/pci/hda/snd-hda-intel.ko): Unknown symbol in module, or unknown parameter (see dmesg) [ !! ] * Loading: snd-seq ... [ ok ] * ERROR: Failed to load necessary drivers [ ok ] * Restoring Mixer Levels ... * No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]v dmesg je pak toto:
ondra@ondra-laptop:~$ dmesg ... snd_hda_intel: Unknown parameter `disable_msi'Coz je relikt z doby, kdy jsem se pomoci /etc/modules.conf snazil vnutit parametry modulu snd-hda-intel ("modul=asus-laptop" nebo "modul=3stack"). Ted se nemuzu zbavit toho parametru
disable_msi, ktery jsem jednou nastavil a pak ho vsude odebral, ale porad se to snazi nahrat modul s timto parametrem. Nevite, prosim, jak se tohoto parametru modulu snd-hda-intel zbavit?
ondra-laptop ondra # /etc/init.d/alsasound restart * Storing ALSA Mixer Levels ... /usr/sbin/alsactl: get_control:209: Cannot read control info '2,0,0,Capture Volume,0': Invalid argument [ !! ] * Unloading ALSA ... [ ok ] * Unloading ALSA modules ... [ ok ] * Loading ALSA modules ... * Loading: snd-card-0 ... [ ok ] * Loading: snd-seq ... [ ok ] * Restoring Mixer Levels ... * No mixer config in /etc/asound.state, you have to unmute your card! [ ok ]A kdyz se snazim spustit alsamixer, dostanu toto:
ondra-laptop ondra # alsamixer alsamixer: function snd_mixer_load failed: Invalid argumentKarta je rozpoznana spravne:
ondra-laptop ondra # cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xffafc000 irq 23V /dev/ mam rekl bych, ze spravne, vytvoreny adresar snd:
ondra-laptop ondra # ls -l /dev/snd total 0 crw-rw---- 1 root audio 116, 0 Feb 14 02:17 controlC0 crw-rw---- 1 root audio 116, 24 Feb 14 02:17 pcmC0D0c crw-rw---- 1 root audio 116, 16 Feb 14 02:17 pcmC0D0p crw-rw---- 1 root audio 116, 30 Feb 14 02:17 pcmC0D6c crw-rw---- 1 root audio 116, 22 Feb 14 02:17 pcmC0D6p crw-rw---- 1 root audio 116, 1 Feb 14 02:17 seq crw-rw---- 1 root audio 116, 33 Feb 14 02:17 timerale adresare jako mixer, dsp a spol tam nejsou. Ty se pravdepodobne snazi alsamixer otevrit, ze? Nevite nekdo, kde by mohla byt chyba a pro nejde alsamixer otevrit? Jeste upresnim, ze modul se snazi nahrat pravdepodobne uz udevd pri startu, ale ani killall udevd a udevstart nepomaha. Diky moc
ondra@ondra-laptop:~$ dmesg ... hda_codec: num_steps = 0 for NID=0x15Zkousel jsem prochazet archivy na alsa-devel, stejnou chybu reportuji i na noteboocich ASUS F3T. Vsechno nastaveni vypada v poradku vcetne /proc/asound/devices:
ondra@ondra-laptop:~$ cat /proc/asound/devices 0: [ 0] : control 1: : sequencer 16: [ 0- 0]: digital audio playback 17: [ 0- 1]: digital audio playback 22: [ 0- 6]: digital audio playback 24: [ 0- 0]: digital audio capture 30: [ 0- 6]: digital audio capture 33: : timerNesetkal jste se s tim nekdo z vas?
ondra-laptop ondra # lsmod | grep snd snd_seq 35664 0 snd_seq_device 5004 1 snd_seq snd_hda_intel 14616 0 snd_hda_codec 158976 1 snd_hda_intel snd_pcm 50948 2 snd_hda_intel,snd_hda_codec snd_timer 15108 2 snd_seq,snd_pcm snd 29688 6 snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer snd_page_alloc 6792 2 snd_hda_intel,snd_pcmTo tu jeste chybi. A zvukovka je po nainstalovani alsy v gentoo defaultne ztlumena. Bohuzel ten alsamixer nefunguje.
options snd_hda_intel model=3stack position_fix=1
# cd include # cp -a * /usr/src/linux/include/soundvynechte, nedavaji smysl, protoze include/sound uz je smazany prikazy vyse. Podivejte se co pise dmesg po nacteni snd-hda-intel a spusteni alsamixer. Pokud to je neco jako:
hda_codec: num_steps = 0 for NID=0x15tak je to na tuty problem popsany vyse
dmesg | grep -i hda_codec Modules linked in: snd_hda_intel snd_hda_codec snd_pcm snd_timer snd soundcore snd_page_alloc EIP is at snd_hda_codec_new+0x280/0x3d9 [snd_hda_codec] [< e19435a3 >] snd_hda_bus_new+0x92/0xb3 [snd_hda_codec] EIP: [< e1942f0d >] snd_hda_codec_new+0x280/0x3d9 [snd_hda_codec] SS:ESP 0068:de43fd58
gentoo ~ # lsmod Module Size Used by snd_hda_intel 18983 1 snd_hda_codec 197888 1 snd_hda_intel snd_pcm 64516 2 snd_hda_intel,snd_hda_codec snd_timer 20100 1 snd_pcm snd 42340 4 snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer soundcore 9568 1 snd snd_page_alloc 11144 2 snd_hda_intel,snd_pcmcast vypisu dmesg
gentoo ~ # dmesg . . dmesgModules linked in: snd_hda_intel snd_hda_codec snd_pcm snd_timer snd soundcore snd_page_alloc CPU: 1 EIP: 0060:[< e1942f0d >] Not tainted VLI EFLAGS: 00010202 (2.6.20-gentoo-r0 #3) EIP is at snd_hda_codec_new+0x280/0x3d9 [snd_hda_codec] eax: decdbac0 ebx: dfaedd24 ecx: 00000f20 edx: 00000286 esi: 00000000 edi: e194f7d4 ebp: dfaedd80 esp: de43fd58 ds: 007b es: 007b ss: 0068 Process modprobe (pid: 2264, ti=de43e000 task=de89a030 task.ti=de43e000) Stack: 00000f20 00000000 decdbac0 00000000 decdbac0 0000002a de43fde4 dfaedeec e19435a3 0002a7c8 00000000 00000000 de43fdfc dfaede80 e087629d dec07844 e0876a26 dec07824 febfc000 00000010 00004000 0000a1ff 00000040 00000100 Call Trace: [< e19435a3 >] snd_hda_bus_new+0x92/0xb3 [snd_hda_codec] [< e087629d >] azx_probe+0x54f/0x710 [snd_hda_intel] [< c017f5a2 >] sysfs_dirent_exist+0x20/0x5f [< e087561d >] azx_send_cmd+0x0/0xd5 [snd_hda_intel] [< e08756f2 >] azx_get_response+0x0/0x13e [snd_hda_intel] [< c0206468 >] kobject_get+0xf/0x13 [< c0211a38 >] pci_device_probe+0x36/0x57 [< c028acbd >] really_probe+0x7f/0x103 [< c028ad85 >] driver_probe_device+0x44/0xa5 [< c028ae65 >] __driver_attach+0x0/0x87 [< c028aeb7 >] __driver_attach+0x52/0x87 [< c028a37a >] bus_for_each_dev+0x33/0x55 [< c028ab83 >] driver_attach+0x16/0x18 [< c028ae65 >] __driver_attach+0x0/0x87 [< c028a63c >] bus_add_driver+0x5e/0x15f [< c0211b90 >] __pci_register_driver+0x64/0x90 [< c013233b >] sys_init_module+0x1651/0x179c [< c015097d >] vfs_read+0x88/0x134 [< c0103528 >] sysenter_past_esp+0x5d/0x81 [< c0420033 >] cache_release+0x52/0x7f ======================= Code: 04 0f b7 55 12 31 c9 89 e8 c7 44 24 04 00 00 00 00 c7 04 24 20 0f 00 00 e8 72 e6 ff ff 89 45 18 8b 45 00 bf d4 f7 94 e1 8b 70 0c < ac > ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 31 f6 85 c0 75 EIP: [< e1942f0d >] snd_hda_codec_new+0x280/0x3d9 [snd_hda_codec] SS:ESP 0068:de43fd58
gentoo ~ # /etc/init.d/alsasound restart * Unloading ALSA ... [ ok ] * Unloading ALSA modules ... [ !! ]
gentoo ~ # alsamixer alsamixer: function snd_ctl_open failed for default: No such device(zarizeni /dev/dsp neexistuje) modul je nahrany, ale zarizeni /dev/dsp nebylo vytvoreno.
gentoo ~ # cat /proc/asound/cards --- no soundcards ---kdyz jsem pouzil alsu rc2, tak mi /proc/asound/cards vypisoval, ze mam intel, ted nic. zvlastni je tento vypis (jadro jsem opravdu patchnul nejnovejsi verzi alsy):
gentoo ~ # cat /proc/asound/version Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09 09:56:17 2007 UTC).Jeste mne napadlo, ze by vyvojari zmenili neco v ALSE. Mohl byste mi treba poslat zdrojovy kod Vasi funkcni ALSY?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.