MPD On the Raspberry Pi

The Raspberry Pi doesn't have an audio-out jack so grabbed this USB audio adapter from Behringer. After plugging it in, the first step is to confirm that it's recognized by lsusb:

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 08bb:2902 Texas Instruments Japan PCM2902 Audio Codec

Since I have all my media on a NAS and not on the pi, I added this line to /etc/fstab:

// /mnt/music cifs guest,_netdev,sec=ntlm  0   0

Then I installed mpd:

sudo apt-get install mpd

A few changes to /etc/mpd.conf are necessary:

music_directory      "/mnt/music"
bind_to_address        "any"


device       "hw:0,0"


device       "hw:1,0"

Finally, uncomment the line:

mixer_type           "software"

After putting new music onto the share, you have to tell mpd to update it's database:

sudo mpc update

Finally, from other machines on the network (and after installing the ncmpc client):

ncmpc -h