I’ve got it connected to the My Cloud audio speakers and play music through it.
After several days of research got to do with our NASa “mp3 player”. Sound on its attached usb-sound card appeared. I had to compile the kernel modules that are responsible for the sound.
To compile the kernel modules I downloaded the firmware source from
http://support.wd.com/product/download.asp?groupid=904&sid=211
There is a file in the firmware \packages\kernel_3.2.26.28\wd\README
And there is described how to compile the kernel and modules.
The only reference to the compiler was not working, I downloaded it from here: https://launchpadlibrarian.net/129960680/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux.tar.bz2
All I have done in Ubuntu 12.04 x86. In the 64-bit version may need to install 32 bit modules:
apt-get install ia32-libs
Configuring the kernel, I check all the items in section: Device Driver\Sound card support
Compiled and got a folder with sound *. ko files.
Here is an archive of pre-compiled kernel modules required:
https://mega.co.nz/#!G95xzaDa!oBQMkbXXF4ltTC4t-xvR_3S1Ury23evIyYTvv0M5FEU
These modules are compiled from source 156 firmware, but it seems to me that they will work with later firmware (checked on 165 firmware - works).
Need to put the folder sound in /lib/modules/3.2.26/kernel on our NAS.
Necessary to add to the file /lib/modules/3.2.26/modules.dep strings:
kernel/sound/soundcore.ko:
kernel/sound/usb/snd-usb-audio.ko:
kernel/sound/usb/snd-usbmidi-lib.ko:
kernel/sound/core/snd.ko:
kernel/sound/core/snd-hwdep.ko:
kernel/sound/core/snd-page-alloc.ko:
kernel/sound/core/snd-pcm.ko:
kernel/sound/core/snd-rawmidi.ko:
kernel/sound/core/snd-timer.ko:
kernel/sound/core/seq/snd-seq.ko:
kernel/sound/core/seq/snd-seq-device.ko:
kernel/sound/core/seq/snd-seq-midi.ko:
kernel/sound/core/seq/snd-seq-midi-event.ko:
Then run the command:
depmod -a
Then:
modprobe snd-usb-audio
If no errors pop up, everything is OK.
See which modules are loaded with the command:
lsmod
What would sound modules automatically loaded at startup NAS, in file /etc/modules appends:
snd-usb-audio
Now, install apt, responsible for working with sound.
apt-get update
apt-get install alsa
Connect your usb-audio card (I have Sound Blaster Play!) and enter:
cat /proc/asound/cards
This should display up your sound card.
Put name.wav file folder Public.
And run:
aplay /shares/Public/name.wav
If from the speakers connected to the usb-audio card will hear our record means you’re done.
If you throw a message:
ALSA lib confmisc.c:768 :(parse_card) cannot find card ‘0’
then in the file /etc/modprobe.d/alsa-base.conf edit line
options snd-usb-audio index=-2
to
options snd-usb-audio index=0
In general I suggest to change to the index=0 in any case, since otherwise it may stop working later.
Restarting the NAS.
Now you can install any console audio player and enjoy the most capacious mp3-player.
I recommend to install a network player mpd
apt-get install mpd
If you install player mpd, you can help to uncomment in the file /etc/mpd.conf line:
mixer_type “software”
This will adjust the volume.
What would mpd server will be available on the network parameter change:
bind_to_address “localhost”
to
bind_to_address “0.0.0.0”
And chenge parameter to folder available on the network:
music_directory “/shares/Music”
In this folder, you must upload music.
Then we need to reload mpd:
/etc/init.d/mpd restart
Control playback on the network can use the program Сantata.
p.s. The disadvantage is that when you start to copy files over the network to the device, the music starts to stutter a bit, how to fix it - I have not found.
(c) agran - BTC: 1agran1xQ4Nwiqv1qegBDF6kqZdfESMUG