Postup instalace:

opkg update
opkg install mpc
opkg install mpd-mini
opkg install libmpdclient
opkg install mpd
opkg install kmod-usb-core
opkg install kmod-usb2
opkg install kmod-hid
opkg install kmod-hid-generic
opkg install kmod usb hid
opkg install usbutils
opkg install usb-modeswitch
opkg install libusb-1.0
opkg install ibertas-usb-firmware
opkg install kmod-usb3
opkg install kmod-usb2-fsl
opkg install kmod-usb2
opkg install kmod-usb-uhci
opkg install kmod-usb-core
opkg install kmod-usb-audio
opkg install alsa-lib
opkg install alsa-utils
opkg install alsa-utils-tests


Zeditovat /etc/mpd.conf (na konec souboru přidat)

bind_to_address "127.0.0.1"
port "6600"

audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
mixer_type "hardware"
mixer_device "default"
}


!! pokud to nebude fungovat upravit též

/etc/passwd

mpd:x:45:45::/var/lib/mpd:/bin/true

/etc/group

audio:x:92:pcare,mpd
mpd:x:45:

Do scriptu po startu přidat:

cd ..
cd ..
cd ..
cd var
cd lib
mkdir alsa
chmod 777 /var/lib/alsa
cd ..
cd ..

amixer set "Headphone" 100
alsactl start
mpc volume 100

nová verze driveru kmod-usb-audio ma bug (output: ioctl(SNDCTL_DSP_SYNC): Device or resource busy)

root@silenci:/data/music# cat /proc/bus/usb/devices
cat: can't open '/proc/bus/usb/devices': No such file or directory
root@silenci:/data/music# cat /proc/asound/cards
0 [Headset ]: USB-Audio - Logitech USB Headset
Logitech Logitech USB Headset at usb-fsl-ehci.0-1.2.1, full speed
root@silenci:/data/music# cat /proc/asound/card0/usbbus
001/005


Configuring kmod-usb-audio.
snd-usbmidi-lib is already loaded
snd-usb-audio is already loaded
root@silenci:~#
root@silenci:~# snd-usbmidi-lib is already loaded
-ash: snd-usbmidi-lib: not found
root@silenci:~# snd-usb-audio

nastaveni mixeru

amixer set "Mic" 0
amixer set "Headphone" 100
alsactl start
alsactl init
mpc volume 100

v logu nevyřešeny chyby ...

Feb 28 19:09 : player: played "http://icy-e-bz-03-gos.sharp-stream.com:8000/metro.mp3"
Feb 28 19:09 : output: Failed to open mixer for 'My ALSA Device'
Feb 28 19:13 : player: played "http://icy-e-bz-03-gos.sharp-stream.com:8000/metro.mp3"

Vloženo: jos.sk @ 4:48:09 PM, 2016/12/26