PINE64

Full Version: HowTo working with MPD and analog sound
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I did want to use my Pine64 as a Music Player Daemon linked to my sound system with the jack thing. It took me some time and I made this thread to help those who want to do quite the same thing. I hope my English will be undersandable.

To work with the jack and audiocodec the longsleep's posts helped a lot :
  • http://forum.pine64.org/showthread.php?tid=807&pid=7420#pid7420 >> setting the correct kernel modules
  • http://forum.pine64.org/showthread.php?tid=807&pid=7591#pid7591 >> setting up alsa to produce a sound (alleluia !)
To get rid of the need of sudoing alsamixer :
Code:
sudo usermod -a -G audio username

The MPD package is not in the stable or backports repositories. In fact it is. But not with the arm64 arch. So you can install it with its dependencies in a multi-arch way (mpd:armhf). I prefer another way : mpd:arm64 is in the testing repo. I find much easier (and safier) to deal with testing than with multiarch.

The difficulty then was to find the proper settings for the sound card (amixer helped a lot). Here they are :
Code:
/etc/mpd.conf
audio_output {
    type        "alsa"
    name        "My ALSA Device"
    device        "hw:1"
    mixer_type      "hardware"
    mixer_device    "hw:1"
    mixer_control    "headphone volume"
    mixer_index    "0"
}

And then it worked.
Can you list the base OS and repositories for this configuration? I cannot get MPD to install!
I remember MPD packet was'nt in stable or backports repositories for armhf arch. So I needed to install the testing repository.

Here is my config :


Code:
$ uname -a
Linux xxx.example.com 3.10.102-3-pine64-longsleep #98 SMP PREEMPT Sat Aug 20 22:28:17 CEST 2016 aarch64 GNU/Linux
Code:
$ aptitude versions ^mpd~i
Paquet mpd :                                    
i   0.19.19-1                                       testing                              100
Code:
$ cat /etc/apt/source.list
deb http://ftp.fr.debian.org/debian stable main contrib non-free
deb-src http://ftp.fr.debian.org/debian stable main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.fr.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian jessie-updates main contrib non-free
deb http://httpredir.debian.org/debian jessie-backports main contrib non-free
deb http://ftp.fr.debian.org/debian testing main contrib non-free
Code:
$ cat /etc/apt/preferences
Package: *
Pin: release o=Debian,a=testing,l=Debian
Pin-Priority: 90

Package: *
Pin: release o=Debian,a=stable,l=Debian-Security
Pin-Priority: 900

Package: *
Pin: release o=Debian,a=stable,l=Debian
Pin-Priority: 900

Package: *
Pin: release o=Debian,a=jessie-updates,l=Debian
Pin-Priority: 800

Package: *
Pin: release o=Debian Backports,a=jessie-backports,l=Debian Backports
Pin-Priority: 700

Package: *
Pin: release o=Debian,a=jessie-backports,l=Debian
Pin-Priority: 700
I had given up on getting JACK to work based on what I was reading about it not playing well with ARM but, if you've got it working, that's pretty cool Smile. If I can get it running and working with guitarix I may yet put this board in my son's dead practice amp.

Thanks.