Page 1 sur 1

[ALSA ] pas de son noyau 2.6.28

Publié : lun. 09 févr. 2009, 16:37
par pitbac23
Bonjour a tous
Cela fait longtemps que je me bat avec alsa afin de pouvoir avoir du son .
Tout d'abord un petit recapitulatif de mon materiel.

lspci | grep -i audio

Code : Tout sélectionner

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
aplay -l

Code : Tout sélectionner

**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
.asoundrc

Code : Tout sélectionner

pcm.!default {
        type hw
        card 0
        device 0
        }

        ctl.!default {
        type hw
        card 0
        device 0
        }
pacman -Qs alsa

Code : Tout sélectionner

ocal/alsa-lib 1.0.18-1
    An alternative implementation of Linux sound support
local/alsa-utils 1.0.18-1
    An alternative implementation of Linux sound support
lsmod | grep snd

Code : Tout sélectionner

snd_hda_codec_atihdmi     5376  1
snd_hda_codec_realtek   191876  1
snd_hda_intel          27080  0
snd_hda_codec          62720  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               9220  1 snd_hda_codec
snd_pcm                70276  2 snd_hda_intel,snd_hda_codec
snd_timer              21512  1 snd_pcm
snd_page_alloc         10120  2 snd_hda_intel,snd_pcm
snd                    54052  6 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               8160  1 snd
uname -r

Code : Tout sélectionner

2.6.28-ARCH
Mon probleme est simple , rien ne sors dans enceintes .
comme vous pouvez le voir , j'ai deux carte son detecter l'une est pour le 7.1 avec le codec realtek ALC888 l'autre pour l'hdmi ( que j'ai abandonné car j'utilise le driver fglrx).
j'aimerais pourvoir n'utiliser que la realtek.
j'ai essayé aussi de compilé les drivers a partir de alsa 1.0.19 mais rien n'y fait .
les potard sont unmuted , et je n'ai vraiment plus d'idée ou chercher.
mplayer me donne aucune erreur de meme que le noyau , tout se passe comme si tout allait bien .
mon rc.conf
cat /etc/rc.conf | grep -i modules

Code : Tout sélectionner

# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
MODULES=(r8169 !slhc !snd-mixer-oss !snd-pcm-oss !snd-hwdep !snd-page-alloc !snd-pcm !snd-timer snd snd-hda-intel soundcore !snd_pcsp)
modprobe.conf

Code : Tout sélectionner

options snd-hda-intel model=auto
>>>> c'est avec cette option que je parvenais a avoir du son sur ubuntu>>>>>>
Je suis ouvert a tout proposition , je continue a chercher de mon côté.
Merci

Publié : lun. 09 févr. 2009, 18:19
par aldevar
Pour ma part, pour définir le périphérique qu'alsa doit utiliser, j'écris dans /etc/modprobe.d/sound :

Code : Tout sélectionner

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
Par contre, je n'ai pas réussi à le faire prendre en compte avec un restart d'alsa, ça n'a fonctionné qu'au reboot

Publié : mer. 11 févr. 2009, 13:10
par Calimero
Moi j'avais pas de son avec snd-hda-intel, j'ai rajouté une ligne options à la fin de mon /etc/modprobe.d/sound, que voici :

Code : Tout sélectionner

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=3stack-6ch
Voici ce qui m'y a mené :
If you read /usr/src/linux-2.6.24.5/Documentation/sound/alsa/ALSA-Configuration.txt and search for "snd-hda-intel", there is a large section that lists all of the possible model options you can pass to the snd-hda-intel module. It looks like you have the ALC883 model (as do I), so you would only need to try the modules in that section. The possible options you can pass are listed below:
Code:

*3stack-dig 3-jack with SPDIF I/O
*6stack-dig 6-jack digital with SPDIF I/O
*3stack-6ch 3-jack 6-channel
*3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
6stack-dig-demo 6-jack digital for Intel demo board
acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
acer-aspire Acer Aspire 9810
medion Medion Laptops
medion-md2 Medion MD2
targa-dig Targa/MSI
targa-2ch-dig Targs/MSI with 2-channel
laptop-eapd 3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
lenovo-101e Lenovo 101E
lenovo-nb0763 Lenovo NB0763
lenovo-ms7195-dig Lenovo MS7195
haier-w66 Haier W66
6stack-hp HP machines with 6stack (Nettle boards)
3stack-hp HP machines with 3stack (Lucknow, Samba boards)
auto auto-config reading BIOS (default)

You can add the following to /etc/modprobe.d/sound (create the file if it doesn't exist. Don't use /etc/modprobe.conf as suggested above -- if you read that file, it will tell you that it's deprecated):
Code:

options snd-hda-intel model=modelname

Of course, replace modelname with one of the above options. You may need to try quite a few. Unload the snd-hda-intel module using
Code:

# rmmod snd-hda-intel

Then edit /etc/modprobe.d/sound and try an option. Then load the module again with
Code:

# modprobe snd-hda-intel

Then test the sound (play a sound file). If the rmmod command doesn't work you may wish to try `modprobe -r snd-hda-intel`, but it shouldn't be necessary. You may wish to try this outside of X in a console, since sometimes KDE (and other DEs) insist(s) on reserving the sound card so you can't unload the module.
J'ai rajouté une étoile devant les valeurs de l'option qui marchent chez moi.