Both sides previous revisionPrevious revisionNext revision | Previous revision |
ca-valencia:howtos:hardware:audio_and_snd-hda-intel [2015/01/26 12:27 (UTC)] – [Overview] translated to ca-valencia el_pinux_penat | ca-valencia:howtos:hardware:audio_and_snd-hda-intel [2015/01/27 14:22 (UTC)] (Actual) – [La solució] el_pinux_penat |
---|
* No es reconeixen les entrades d'Àudio? | * No es reconeixen les entrades d'Àudio? |
| |
===== Diagnosing the issue ===== | ===== Diagnosticant el problema el ===== |
| |
Execute the command <code>lsmod | grep snd</code> in a terminal window. If there is a reference to ''snd_hda_intel'' in the output then the ''snd-hda-intel'' kernel module has been loaded as the driver for the controller chip and the codec chips on the HD-audio bus. | Executa la ordre <code>lsmod | grep snd</code> en una finestra de terminal. Si hi ha una referència a ''snd_hda_intel'' en la eixida, aleshores el mòdul de nucli ''snd-hda-intel'' ha sigut carregat així com el controlador per al xip controlador i el xip de codec al bus HD-audio. |
| |
Execute the command <code>aplay -l</code> in a terminal window. If there are multiple sound devices then you will need to identify and set the sound device that you wish to use. See http://docs.slackware.com/howtos:hardware:sound_problems_on_slackware | Execute la ordre <code>aplay -l</code> en una finestra de terminal. Si hi ha més d'un dispositiu d'àudio caldrà que identifiques i definisques el dispositiu que t'agradaria utilitzar. Mira http://docs.slackware.com/howtos:hardware:sound_problems_on_slackware |
===== The fix ===== | ===== La solució ===== |
| |
The ''snd-hda-intel kernel'' module tries to autodetect and configure your sound hardware, but this is not always successful. Some further configuration may help. | El mòdul ''snd-hda-intel kernel'' intenta auto-detectar i configurar el teu maquinari de so, però no sempre amb èxit. Una mica de configuració extra pot ajudar. |
| |
Often the fix is simple. Just create a file in the ''/etc/modprobe.d/'' directory and provide suitable options to the ''snd-hda-intel'' kernel module. The actual file name is not important although it must have a ''.conf'' suffix. You could use ''snd-hda-intel.conf''. Names used by other distributions to hold this information include ''sound.conf'' and ''alsa-base.conf''. | Sovint la solucion és senzilla. Tan sols crea un fitxer al directori ''/etc/modprobe.d/'' i proporciona-li les opcions adequades al mòdul del nucli ''snd-hda-intel''. El nom del fitxer en sí no és important malgrat que ha de tindre el sufixe ''.conf''. Pots utilitzar ''snd-hda-intel.conf''. Els noms utilitzats per altres distribucions per a sostindre aquesta informació inclouen ''sound.conf'' i ''alsa-base.conf''. |
| |
A simple way is to execute (as root) <code>echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf</code> | Una forma simple de fer-ho és executar (com root) <code>echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf</code> |
| |
<note warning>If you use an editor to create files in /etc/modprobe.d/ be sure to remove any backup copies.</note> | <note warning>Si utilitzes un editor per a crear els fitxers a /etc/modprobe.d/ assegura't d'esborrar qualsevol còpia de seguretat.</note> |
| |
It is probably easiest just to reboot at this stage to check if it works right. | És probablement més fàcil reiniciar en aquesta fase per a comprovar si tot funciona correctament. |
| |
If you have multiple sound devices, then you can specify the index values that are to be assigned to each device, where index=0 is the default. For example, if <code>aplay -l | Si tens múltiples dispositius de so, pots especificar els valors d'índex que s'han d'assignar a cada dispositiu, on index=0 és el valor per defecte. Per exemple, si <code>aplay -l |
**** List of PLAYBACK Hardware Devices **** | **** List of PLAYBACK Hardware Devices **** |
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] | card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] |
card 1: Generic_1 [HD-Audio Generic], device 0: CX20756 Analog [CX20756 Analog] | card 1: Generic_1 [HD-Audio Generic], device 0: CX20756 Analog [CX20756 Analog] |
Subdevices: 1/1 | Subdevices: 1/1 |
Subdevice #0: subdevice #0</code> then you could assign card 1 to index=0 with /etc/modprobe.d/snd-hda-intel.conf containing <code>alias char-major-116 snd | Subdevice #0: subdevice #0</code> aleshores podries assignar index=0 a la targeta 1 amb /etc/modprobe.d/snd-hda-intel.conf contenint <code>alias char-major-116 snd |
alias snd-card-0 snd-hda-intel | alias snd-card-0 snd-hda-intel |
alias snd-card-1 snd-hda-intel | alias snd-card-1 snd-hda-intel |