HowTo working with MPD and analog sound
#1
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 : 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.
  Reply
#2
Can you list the base OS and repositories for this configuration? I cannot get MPD to install!
  Reply
#3
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
  Reply
#4
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information Howto: OctoPrint Working on Pine 64 chaos_actual125 22 24,111 07-11-2021, 04:13 AM
Last Post: zer0sig
  Captive portal at school not working on the Pinebook pro WilliamZieg 2 2,515 02-06-2020, 10:41 PM
Last Post: xmixahlx
  Q4OS WiFi Dongle not working cheezmeister 3 2,851 04-07-2017, 08:01 AM
Last Post: iccoldbeer
Music Getting analog audio/sound to work (headphones socket) on debian pfeerick 7 16,341 12-30-2016, 07:37 AM
Last Post: Birneklub9
Exclamation JAVA App. not working correct wrongway 0 1,305 09-14-2016, 11:14 AM
Last Post: wrongway
  Anyone got jackd working? jkmooney 4 3,359 08-27-2016, 08:18 AM
Last Post: pfeerick
  Internet not working properly cezar.suteu@gmail.com 2 2,270 06-17-2016, 01:12 AM
Last Post: cezar.suteu@gmail.com
  wget not working? slerched 3 2,901 06-01-2016, 08:15 AM
Last Post: slerched
  Wireless mouse & kbd recognized but not working thehamguy1 9 5,617 05-17-2016, 11:44 AM
Last Post: thehamguy1

Forum Jump:


Users browsing this thread: 2 Guest(s)