mercredi 20 avril 2016

[EN COURS] Make a jukebox from scratch

En cours... de rédaction

 

Make a jukebox from scratch

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo reboot


$ uname -a
Linux xxxxxx 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux

$ raspi-config

do what you want to , but enable device tree...and reboot


$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



Only onboard sound device is listed

$ sudo nano /boot/config.txt
At the end of file :

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
start_x=0
gpu_mem=0
dtparam=spi=on
#device_tree=


Replace by :

# Enable audio (loads snd_bcm2835)
dtparam=audio= 
dtoverlay=hifiberry-dacplus

# Raspi Config add
start_x=0
gpu_mem=0
dtparam=spi=on
#device_tree=


 $ sudo reboot
 $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Only Hat DAC board sound device is listed, here an "Hifiberry Dac+" (pcm512x DAC family)
Connect your DAC to your HiFi amp (normaly: no pop no crack no noise), adjust HiFi amp volume to 1/10.


$ sudo apt-get update
$ sudo apt-get install mpd

Music Player Deamon is now installed...


$ sudo -H -u mpd alsamixer













Make your settings and then "Escape" to quit.




Aucun commentaire:

Enregistrer un commentaire