[Résolu] Impossible de compiler alsa

Bonjour à tous,

Même si j’ai trouvé des sujets similaires, aucun ne résout mon problème.
Configuration :

  • portable HP DV7
  • Debian Sid avec noyau 2.6.32-2-686
  • carte audio HDA intel

Mon problème est que je n’arrive pas à compiler alsa que ce soit avec module-assistant ou les sources, suite à un nombre incalculable d’erreur.
Donc je n’ai aucun son (qui fonctionne avec le noyau 2.6.26)

lspci -v | grep Audio 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Paquets installés :

dpkg --get-selections | grep alsa alsa-base install alsa-oss install alsa-source install alsa-tools install alsa-tools-gui install alsa-utils install alsaplayer-daemon install alsaplayer-oss install gnome-alsamixer deinstall gstreamer0.10-alsa install libsdl1.2debian-alsa install libwine-alsa install

dpkg --get-selections | grep linux doc-linux-fr-text install doc-linux-text install firmware-linux-free install libselinux1 install linux-headers-2.6-486 install linux-headers-2.6-686 install linux-headers-2.6.32-2-486 install linux-headers-2.6.32-2-686 install linux-headers-2.6.32-2-common install linux-headers-2.6.32-2-common-vserver install linux-headers-2.6.32-2-vserver-686 install linux-headers-2.6.32-3-686 install linux-headers-2.6.32-3-common install linux-headers-2.6.32-trunk-486 install linux-headers-2.6.32-trunk-common install linux-image-2.6-686 install linux-image-2.6.26-2-686 install linux-image-2.6.32-2-686 install linux-kbuild-2.6.32 install linux-libc-dev install linux-sound-base install linux-source-2.6.32 install linux-wlan-ng install linux-wlan-ng-doc install linux-wlan-ng-source install util-linux install

Le message quand je clique sur l’applet contrôleur de volume :

En définitif par de carte installéeet je n’ai plus d’idée … :frowning:

Merci de votre aide

Salut,
J’ai la même carte que toi, et elle marche nickel sur Sid sans avoir besoin de compiler alsa.
As-tu modifié /etc/modprobe.d/alsa-base.conf en ajoutant :

Pour le model, plusieurs valeurs sont possibles d’après http://doc.ubuntu-fr.org/audio_intel_hda

Bonjour lsam et merci pour ta réponse.

J’avais vu ce site
Voici mon fichier alsa-base-conf

[code]# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

Cause optional modules to be loaded above generic modules

install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modprobe --quiet snd-emu10k1-synth ; : ; }

Prevent abnormal drivers from grabbing index 0

options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

Keep snd-pcsp from beeing loaded as first soundcard

options snd-pcsp index=-2

Option pour HP DV7

options snd-hda-intel model=hp enable=0 enable_msi=1 single_cmd=1 power_save_controller=1

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
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[/code]

Lorsque je veux redémarrer alsa, j’obtiens :

/etc/init.d/alsa-utils restart Shutting down ALSA...done (none loaded). Setting up ALSA...done (none loaded).
ce qui me fait dire qe je n’ai pas grand-chose d’installer …

Si tu passes un “alsaconf” est-ce qu’il reconnait ta carte ?

Bonjour BuTcHeRsYl

Non …

alsaconf bash: alsaconf : commande introuvable

Autant pour moi il n’est plus disponible dans la branche Sid… la c’est plus embettant.

Bon,
essaie alsamixer plutôt.

Sinon, as-tu vérifié que tu appartiens bien au groupe audio ?

Enfin, dans /etc/modrpboe.d/alsa-base.conf, tu as beaucoup d’options qui, je pense, ne sont pas nécessaires.
Pour info, sur mon toshiba, avec la même carte que toi, j’ai ça à la fin du fichier :

options snd-pcsp index=-2 options snd-hda-intel model=toshiba

je suis bien dans le groupe audio et j’ai bien dans alsa-base.conf

[code]# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2

Option pour HP DV7

options snd-hda-intel model=hp enable=0 enable_msi=1 single_cmd=1 power_save_controller=1
[/code]

Pour alsamixer, je te dis ça ce soir.

Merci pour votre aide en tous cas

Pas mieux avec alsamixer

alsamixer cannot open mixer: Aucun fichier ou dossier de ce type

Tu n’as pas bien compris mon précédent post.
Où as-tu pêché toutes les options de la fin de ton fichier /etc/modprobe.d/alsa-base.conf ?

Oops … je n’avais pas bien compris.
J’ai dû les rajouter après les tonnes de recherches que j’ai faites… :frowning:
Je peux les enlever et je te tiens au courant.

Tout pareil…

Voilà le message d’erreur à la fin du make :

/lib/modules/2.6.32-2-686/source/include/linux/gameport.h: In function ‘gameport_register_driver’: /lib/modules/2.6.32-2-686/source/include/linux/gameport.h:154: error: ‘KBUILD_MODNAME’ undeclared (first use in this function) /lib/modules/2.6.32-2-686/source/include/linux/gameport.h:154: error: (Each undeclared identifier is reported only once /lib/modules/2.6.32-2-686/source/include/linux/gameport.h:154: error: for each function it appears in.) make[1]: *** [memory_wrapper.o] Erreur 1 make[1]: quittant le répertoire « /home/thierry/alsa/alsa-driver-1.0.22.1/acore » make: *** [compile] Erreur 1

Si quelqu’un a une idée …
Merci

pas besoin de compiler

lsmod pour vérifier la présence snd-hda-intel

asoundconf list
asoundconf set-default-card XXX

(tu peux ajouter les source stable si alsaconf ou asoundconf pas présent)

si pas ok
supprimer le .asound* dans le dossier home du testeur du son (root, user)
si c’est avec un “user” vérifier qui fait partie du group audio ( comme dis lsam)
et refaire le test avec alsamixer (pas de “MM” en bas du alsamixer…)

Salut dchost99,

  • lsmod ne renvoie rien

lsmod | grep snd*

  • asoundconf : commande introuvable. J’ai passé les dépôts en stable mais à quels paquets appartient asoundconf ?
  • pas de fichier .asound* dans les home user et root
  • le user est dans le groupe audio

id uid=1000(bluepingoo) gid=1000(bluepingoo) groupes=1000(thierry),20(dialout),21(fax),24(cdrom),29(audio),40(src),44(video),46(plugdev),108(netdev),112(fuse),114(lpadmin),115(scanner)

alsamixer cannot open mixer: Aucun périphérique ou adresse

quand tu ajoute le stable
apt-get update
apt-get insall alsa-base alsa-utils

modprobe snd-hda-intel
?

apt-get install alsa-base alsa-utils Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait alsa-base est déjà la plus récente version disponible. alsa-utils est déjà la plus récente version disponible.

modprobe snd-hda-intel FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.32-2-686/kernel/sound/pci/hda/snd-hda-intel.ko): Invalid module format

je suis c** !
j’ai désinstallé les paquets et réinstallé avec les nouveaux dépôts
J’ai pu enfin lancer alsaconf
J’ai encore des erreurs :

[code]Loading driver…
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.32-2-686/kernel/sound/pci/hda/snd-hda-intel.ko): Invalid module format
FATAL: Error running install command for snd_hda_intel
Setting default volumes…
amixer: Mixer attach default error: No such device or address

===============================================================================

Now ALSA is ready to use.
For adjustment of volumes, use your favorite mixer.

Have a lot of fun!
[/code]

alsamixer :

[code]alsamixer

alsamixer: function snd_ctl_open failed for default: No such device or address
debian:/home/thierry# asoundconf list
debian:/home/thierry# modprobe snd_hda_intel
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release.
FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.32-2-686/kernel/sound/pci/hda/snd-hda-intel.ko): Invalid module format
FATAL: Error running install command for snd_hda_intel
[/code]

modprobe snd_hda_intel WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/alsa-base-blacklist, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release. WARNING: All config files need .conf: /etc/modprobe.d/sound, it will be ignored in a future release. FATAL: Error inserting snd_hda_intel (/lib/modules/2.6.32-2-686/kernel/sound/pci/hda/snd-hda-intel.ko): Invalid module format FATAL: Error running install command for snd_hda_intel

on progreese quand même…

Vraiment curieux, que donne

/sbin/modinfo snd_hda_intel

Salut fran.b

/sbin/modinfo snd_hda_intel filename: /lib/modules/2.6.32-2-686/kernel/sound/pci/hda/snd-hda-intel.ko description: Intel HDA driver license: GPL alias: pci:v000010DEd00000BD7sv*sd*bc*sc*i* alias: pci:v000010DEd00000BD6sv*sd*bc*sc*i* alias: pci:v000010DEd00000BD5sv*sd*bc*sc*i* alias: pci:v000010DEd00000BD4sv*sd*bc*sc*i* alias: pci:v000010DEd00000AC3sv*sd*bc*sc*i* alias: pci:v000010DEd00000AC2sv*sd*bc*sc*i* alias: pci:v000010DEd00000AC1sv*sd*bc*sc*i* alias: pci:v000010DEd00000AC0sv*sd*bc*sc*i* alias: pci:v000010DEd000007FDsv*sd*bc*sc*i* alias: pci:v000010DEd000007FCsv*sd*bc*sc*i* alias: pci:v000010DEd00000777sv*sd*bc*sc*i* alias: pci:v000010DEd00000776sv*sd*bc*sc*i* alias: pci:v000010DEd00000775sv*sd*bc*sc*i* alias: pci:v000010DEd00000774sv*sd*bc*sc*i* alias: pci:v000010DEd0000055Dsv*sd*bc*sc*i* alias: pci:v000010DEd0000055Csv*sd*bc*sc*i* alias: pci:v000010DEd0000044Bsv*sd*bc*sc*i* alias: pci:v000010DEd0000044Asv*sd*bc*sc*i* alias: pci:v000010DEd000003F0sv*sd*bc*sc*i* alias: pci:v000010DEd000003E4sv*sd*bc*sc*i* alias: pci:v000010DEd00000371sv*sd*bc*sc*i* alias: pci:v000010DEd0000026Csv*sd*bc*sc*i* alias: pci:v000010B9d00005461sv*sd*bc*sc*i* alias: pci:v00001039d00007502sv*sd*bc*sc*i* alias: pci:v00001106d00003288sv*sd*bc*sc*i* alias: pci:v00001002d0000AA48sv*sd*bc*sc*i* alias: pci:v00001002d0000AA40sv*sd*bc*sc*i* alias: pci:v00001002d0000AA38sv*sd*bc*sc*i* alias: pci:v00001002d0000AA30sv*sd*bc*sc*i* alias: pci:v00001002d0000AA28sv*sd*bc*sc*i* alias: pci:v00001002d0000AA20sv*sd*bc*sc*i* alias: pci:v00001002d0000AA18sv*sd*bc*sc*i* alias: pci:v00001002d0000AA10sv*sd*bc*sc*i* alias: pci:v00001002d0000AA08sv*sd*bc*sc*i* alias: pci:v00001002d0000AA00sv*sd*bc*sc*i* alias: pci:v00001002d0000960Fsv*sd*bc*sc*i* alias: pci:v00001002d00007919sv*sd*bc*sc*i* alias: pci:v00001002d0000793Bsv*sd*bc*sc*i* alias: pci:v00001002d00004383sv*sd*bc*sc*i* alias: pci:v00001002d0000437Bsv*sd*bc*sc*i* alias: pci:v00008086d0000811Bsv*sd*bc*sc*i* alias: pci:v00008086d00003A6Esv*sd*bc*sc*i* alias: pci:v00008086d00003A3Esv*sd*bc*sc*i* alias: pci:v00008086d0000293Fsv*sd*bc*sc*i* alias: pci:v00008086d0000293Esv*sd*bc*sc*i* alias: pci:v00008086d00002911sv*sd*bc*sc*i* alias: pci:v00008086d0000284Bsv*sd*bc*sc*i* alias: pci:v00008086d0000269Asv*sd*bc*sc*i* alias: pci:v00008086d000027D8sv*sd*bc*sc*i* alias: pci:v00008086d00002668sv*sd*bc*sc*i* depends: snd-pcm,snd-page-alloc,snd vermagic: 2.6.26-2-686 SMP mod_unload modversions 686 parm: power_save:Automatic power-saving timeout (in second, 0 = disable). (int) parm: index:Index value for Intel HD audio interface. (array of int) parm: id:ID string for Intel HD audio interface. (array of charp) parm: enable:Enable Intel HD audio interface. (array of bool) parm: model:Use the given board model. (array of charp) parm: position_fix:Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size). (array of int) parm: probe_mask:Bitmask to probe codecs (default = -1). (array of int) parm: single_cmd:Use single command to communicate with codecs (for debugging only). (bool) parm: enable_msi:Enable Message Signaled Interrupt (MSI) (int) parm: power_save_controller:Reset controller in power save mode. (bool)

Merci encore pour votre aide à tous !!