#/etc/asound.conf
pcm.!default {
type plug
slave {
pcm "hw:1,0" #delete the first hash for sound over analog
# pcm "hw:1,1" #delete the first hash for sound over optical
# pcm "hw:0,3" #delete the first hash for sound over hdmi
rate 48000
}
}
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
.asoundrc
pcm.mpd {
type hw
card 1
}
the ALSA output in the mpd.conf
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:1,0"
# mixer_type "software"
# mixer_device "default"
# mixer_control "PCM"
}
And now its all working, apart from the lack of volume control in the client, but I can live with that.
Thank you to everybody who suggested solutions.