Modifications

Sauter à la navigation Sauter à la recherche
2 478 octets ajoutés ,  26 mars 2015 à 12:21
Ligne 31 : Ligne 31 :     
=== Configurer le Device Tree ===
 
=== Configurer le Device Tree ===
 +
You don’t have to edit /etc/modules anymore, but need to load the correct device tree file. To do this, you must edit /boot/config.txt and add the following line
 +
 +
==== DAC ====
 +
Le DAC concerne uniquement les anciens modèles pour Raspberry Pi A et B. Si vous avez un Raspberry Pi 2 ou B+, il faut vous référer à la configuration du DAC+.
 +
 +
dtoverlay=hifiberry-dac
 +
 +
==== DAC+ ====
 +
Concerne les cartes HiFiBerry avec sorties analogiques (RCA), cartes destinées au Raspberry-Pi 2 et Pi B+.
 +
 +
dtoverlay=hifiberry-dacplus
 +
 +
==== Digi/Digi+ ====
 +
 +
dtoverlay=hifiberry-digi
 +
 +
==== Amp/Amp+ ====
 +
 +
dtoverlay=hifiberry-amp
 +
 +
In the future it will be possible to automatically detect the DAC+/Digi+ boards based on the information stored in the EEPROM on the card. However we need to implement this first.
 +
 +
== Configurer ALSA ==
 +
ALSA est le pilote informatique du noyau Linux en charge destiné à piloter les cartes sons. Voyez [http://fr.wikipedia.org/wiki/Advanced_Linux_sound_architecture ce lien pour plus d'information sur ALSA] (''Wikipedia, français'')
 +
 +
Create /etc/asound.conf with the following content:
 +
 +
<nowiki>pcm.!default  {
 +
type hw card 0
 +
}
 +
ctl.!default {
 +
type hw card 0
 +
}</nowiki>
 +
 +
Reboot again now
 +
 +
== Tester ==
 +
Check, if the sound card is enabled with “aplay”:
 +
 +
<nowiki>pi@raspberrypi ~ $ aplay -l
 +
**** List of PLAYBACK Hardware Devices ****
 +
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
 +
Subdevices: 1/1
 +
Subdevice #0: subdevice #0</nowiki>
 +
 +
You can use aplay, to playback a WAV file. Note that aplayer won’t convert files that are in a format that is not natively supported from our drivers. (e.g. mono files or different sample rates). For other file formats (MP3, FLAC, …) We recommend to use mplayer.
 +
 +
sudo apt-get install mplayer
 +
 +
Some users have reported problems with MP3 playback of mplayer. It seems, that the MP3 codec is not installed by default on all systems. We found the FLAC format to be best supported by mplayer.
 +
 +
Depending of the board you’re using it will show another HiFiBerry sound card (DAC,DAC+, Digi or Amp)
 +
 +
== Le périphérique n'est pas reconnu? ==
 +
This could be caused by typos in config.txt or blacklisted drivers. Add “dtdebug=1″ to your config.txt. Have a look at the output of “dmesg” and the output of “sudo vcdbg log msg”.
 +
 +
== Vous avez un problème? ==
 +
Please post your question sur le [https://www.hifiberry.com/forum Forum HiFiBerry] (''anglais'').
 +
    
{{Rasp-HiFiBerry-Linux-3-18-x-TRAILER}}
 
{{Rasp-HiFiBerry-Linux-3-18-x-TRAILER}}
29 917

modifications

Menu de navigation