file://classique.m3u \
"
+do_install:append() {
+ ALSA_MIXER="PCM"
+}
+
+do_install:append:wandboard() {
+ ALSA_DEVICE_NAME="imx6wandboardsg"
+}
+
+do_install:append:rpi() {
+ # Internal sound card
+ ALSA_DEVICE_NAME="headphones"
+}
+
do_install:append() {
echo "zeroconf_enabled \"yes\"" >> ${D}/${sysconfdir}/mpd.conf
echo "zeroconf_name \"Serveur Musique MPD\"" >> ${D}/${sysconfdir}/mpd.conf
echo "audio_output {" >> ${D}/${sysconfdir}/mpd.conf
echo " type \"alsa\"" >> ${D}/${sysconfdir}/mpd.conf
- echo " name \"My ALSA Device\"" >> ${D}/${sysconfdir}/mpd.conf
+ echo " name \"${ALSA_DEVICE_NAME}\"" >> ${D}/${sysconfdir}/mpd.conf
echo " device \"hw:${ALSA_DEVICE_ID},0\"" >> ${D}/${sysconfdir}/mpd.conf
+ echo " mixer_control \"${ALSA_MIXER}\"" >> ${D}/${sysconfdir}/mpd.conf
echo "}" >> ${D}/${sysconfdir}/mpd.conf
install -m 644 -o mpd -g audio ${WORKDIR}/*.m3u ${D}/${localstatedir}/lib/mpd/playlists/