NSLU2-Linux
view · edit · print · history

HowTo.SlugAsAudioPlayer History

Hide minor edits - Show changes to markup

March 06, 2009, at 04:57 PM by Tom Harris -- USB speakers - TEAC XS-2s known to work
Added lines 56-57:

(Tom Harris) Another option is to use a pair of USB laptop speakers, which get both power and data through the slug's USB port and don't need a separate soundcard. They are also available in pretty small sizes, too, which fit with the slug's form factor. I needed a small set to fit inside an old wallbox that I'm converting into a slug-powered MP3? jukebox - a set of TEAC XS-2 speakers (http://www.amazon.co.uk/exec/obidos/ASIN/B000KHVGHO/) work fine with the slug and give reasonable sound (the bass is as good as can be expected from a pair of one-inch drivers ;-)

February 20, 2009, at 08:31 PM by JonBoy -- Added snd-seq-device and advice on using modinfo
Added line 72:

insmod /lib/modules/2.6.*/kernel/sound/core/seq/snd-seq-device.ko\\

Added lines 88-92:

If you still get the error message 'Unknown symbol in module' you can use 'modinfo' to see what dependencies the module in question has. Then check the dependencies are loaded using lsmod or insert them first. For instance if you check rawmidi using the line below, you'll probably see it depends on snd and snd-seq-device (true with SlugOS and kernel 2.6.21.7)

modinfo /lib/modules/2.6.*/kernel/sound/core/snd-rawmidi.ko

December 06, 2008, at 07:51 AM by tmbridgmailcom -- correct typo
Changed lines 54-55 from:

Analog output is very high when the "Loudness" is enabled (default). Switch with alsamixer. There is some noise with the analog output, but it is very low compared to the signal level. This unit has an optical digital (SPDIF / TOSLINK) output that is coaxial with the 3.5mm analog output. The supplied adapter allows you to connect a fiber optic cable to the optical input of a receiver. This elimates ALL environmental noise. The fanless NSLU2 piped to the receiver optical input while running mpd, and qmpdclient on another computer in another room keeping the playslist staoked with favorites, is a most agreeable setup.

to:

Analog output is very high when the "Loudness" is enabled (default). Switch with alsamixer. There is some noise with the analog output, but it is very low compared to the signal level. This unit has an optical digital (SPDIF / TOSLINK) output that is coaxial with the 3.5mm analog output. The supplied adapter allows you to connect a fiber optic cable to the optical input of a receiver. This elimates ALL environmental noise. The fanless NSLU2 piped to the receiver optical input while running mpd, and qmpdclient on another computer in another room keeping the playslist stoked with favorites, is a most agreeable setup.

December 06, 2008, at 07:48 AM by tmbridgmailcom -- Turtle Beacy Voyetra (Audio Advantage Micro) success (SPDIF)
Added lines 53-55:

(tbrier) Great success with the Turtle Beach Audio Advantage Micro (AKA Voyetra) http://www.amazon.com/Turtle-Beach-Micro-Voyetra-TBS-1120-01/dp/B0002ICGDY/ref=pd_bbs_sr_1?ie=UTF8&s=electronics&qid=1228548208&sr=8-1 Analog output is very high when the "Loudness" is enabled (default). Switch with alsamixer. There is some noise with the analog output, but it is very low compared to the signal level. This unit has an optical digital (SPDIF / TOSLINK) output that is coaxial with the 3.5mm analog output. The supplied adapter allows you to connect a fiber optic cable to the optical input of a receiver. This elimates ALL environmental noise. The fanless NSLU2 piped to the receiver optical input while running mpd, and qmpdclient on another computer in another room keeping the playslist staoked with favorites, is a most agreeable setup.

November 16, 2008, at 03:30 PM by Thomas Reitmayr -- Un-wikify some words to prevent creation of spam pages on these words.
Changed lines 50-52 from:

I (epninety) found that not all the USB sound dongles are equal. Mine looks like those described (translucent case, "3D-sound"), but only has one LED (some have two), and doesn't use the CM10x? chip. It works straight out of the box, and plays my 320kbit MP3s? with no glitches or gaps. Trouble is, the distortion is terrible! Even a simple sinewave has lots of distortion - (2nd harmonic of 10kHz tone only -20dB at full output, lots of other 'sprogs' visible too). Maybe I got a bad one? Chip bears the numbers "1621 C1-M6C? P4A53?-010C", not sure of the manufacturer. It looks like the second board in the pic at http://www.stockstore.com.br/BookPic/Som/somusbfo.jpg I wouldn't listen to this thing out of choice! I bought a Behringer UCA202? to replace it... Also works straight out of the box and sounds great!

to:

I (epninety) found that not all the USB sound dongles are equal. Mine looks like those described (translucent case, "3D-sound"), but only has one LED (some have two), and doesn't use the CM10x chip. It works straight out of the box, and plays my 320kbit MP3s with no glitches or gaps. Trouble is, the distortion is terrible! Even a simple sine wave has lots of distortion - (2nd harmonic of 10kHz tone only -20dB at full output, lots of other 'sprogs' visible too). Maybe I got a bad one? Chip bears the numbers "1621 C1-M6C P4A53-010C", not sure of the manufacturer. It looks like the second board in the pic at http://www.stockstore.com.br/BookPic/Som/somusbfo.jpg I wouldn't listen to this thing out of choice! I bought a Behringer UCA202 to replace it... Also works straight out of the box and sounds great!

Changed lines 211-212 from:

[epninety]I wanted to be able to control the player from any (just about) web device on my network, so the frontend needed to be served from the slug. Using lighttpd and PHP5?.2, I have two interfaces available, phpMp and Relaxx (both linked from the MPD wiki. phpMp works great on just about everything, Relaxx is more flashy but doesn't work on everything (like from pocket IE). Works great, very responsive, even with a 10,000 track library.

to:

[epninety]I wanted to be able to control the player from any (just about) web device on my network, so the frontend needed to be served from the slug. Using lighttpd and PHP5.2, I have two interfaces available, phpMp and Relaxx (both linked from the MPD wiki. phpMp works great on just about everything, Relaxx is more flashy but doesn't work on everything (like from pocket IE). Works great, very responsive, even with a 10,000 track library.

November 16, 2008, at 03:14 PM by Thomas Reitmayr -- minor correction of layout
Changed lines 188-190 from:

You can specify the URL of an internet radio stream or a certain entry of a podcast directly. However if you want to listen always to the most recent podcast entry and/or your player is not able to interpret m3u/pls/asx playlists (like MPD), the following 'podcast-bounce' server can help, see

  Hack:podcast-bounce
to:

You can specify the URL of an internet radio stream or a certain entry of a podcast directly. However if you want to listen always to the most recent podcast entry and/or your player is not able to interpret m3u/pls/asx playlists (like MPD), the following 'podcast-bounce' server can help: Hack:podcast-bounce.

November 16, 2008, at 03:12 PM by Thomas Reitmayr -- Reference podcast-bounce for listening to podcasts and internet radio
Changed lines 180-181 from:

Music Storage

to:

Music Sources

Local and Network Storage

Added lines 186-190:

Internet Radio and Podcasts

You can specify the URL of an internet radio stream or a certain entry of a podcast directly. However if you want to listen always to the most recent podcast entry and/or your player is not able to interpret m3u/pls/asx playlists (like MPD), the following 'podcast-bounce' server can help, see

  Hack:podcast-bounce
October 24, 2008, at 01:57 PM by epninety -- Added info on working MPD front ends.
Added lines 205-206:

[epninety]I wanted to be able to control the player from any (just about) web device on my network, so the frontend needed to be served from the slug. Using lighttpd and PHP5?.2, I have two interfaces available, phpMp and Relaxx (both linked from the MPD wiki. phpMp works great on just about everything, Relaxx is more flashy but doesn't work on everything (like from pocket IE). Works great, very responsive, even with a 10,000 track library.

October 24, 2008, at 12:08 PM by epninety -- Added USB audio info.
Added lines 50-52:

I (epninety) found that not all the USB sound dongles are equal. Mine looks like those described (translucent case, "3D-sound"), but only has one LED (some have two), and doesn't use the CM10x? chip. It works straight out of the box, and plays my 320kbit MP3s? with no glitches or gaps. Trouble is, the distortion is terrible! Even a simple sinewave has lots of distortion - (2nd harmonic of 10kHz tone only -20dB at full output, lots of other 'sprogs' visible too). Maybe I got a bad one? Chip bears the numbers "1621 C1-M6C? P4A53?-010C", not sure of the manufacturer. It looks like the second board in the pic at http://www.stockstore.com.br/BookPic/Som/somusbfo.jpg I wouldn't listen to this thing out of choice! I bought a Behringer UCA202? to replace it... Also works straight out of the box and sounds great!

October 14, 2008, at 11:27 AM by CBlue --
Changed line 77 from:

C. Blue - Three of the above insmods might give an error message 'Unknown symbol in module'. If that happens, try creating the audio devices with these 'mknod' commands. Then retry insmodding and it should work:

to:

C. Blue - Three of the above insmods might give an error message 'Unknown symbol in module'. If that happens, try creating the audio devices with these 'mknod' commands. Then retry insmodding and it should work:\\

Changed lines 79-80 from:

mknod /dev/mixer c 14 0

to:

mknod /dev/mixer c 14 0

October 14, 2008, at 11:26 AM by CBlue --
Changed lines 78-80 from:

@@mknod /dev/dsp c 14 3 @@mknod /dev/mixer c 14 0

to:

mknod /dev/dsp c 14 3
mknod /dev/mixer c 14 0

October 14, 2008, at 11:25 AM by CBlue --
Changed lines 77-78 from:

Note: Three of the above might give an error message 'Unknown symbol in module'. If that happens, try the two 'mknod' commands from the Unslung section below to create /dev/dsp and /dev/mixer. Then retry insmodding. - C. Blue

to:

C. Blue - Three of the above insmods might give an error message 'Unknown symbol in module'. If that happens, try creating the audio devices with these 'mknod' commands. Then retry insmodding and it should work: @@mknod /dev/dsp c 14 3 @@mknod /dev/mixer c 14 0

October 14, 2008, at 11:22 AM by CBlue --
Added lines 77-78:

Note: Three of the above might give an error message 'Unknown symbol in module'. If that happens, try the two 'mknod' commands from the Unslung section below to create /dev/dsp and /dev/mixer. Then retry insmodding. - C. Blue

May 19, 2008, at 02:05 AM by Landon -- Choppy playback in mpd fix
Added lines 161-164:

If you have choppy playback, try playing with the output rates and/or the audio buffers. I had choppy playback until I added the following lines to my mpd.conf:

  audio_buffer_size               "4096"
  buffer_before_play              "10%"

May 02, 2008, at 03:37 PM by Thomas Reitmayr -- added note about LIRC for sound card buttons
Changed lines 242-244 from:

Some USB sound cards provide buttons for muting, adjusting the volume, etc. These buttons can be used to control the MPD (or any other application) in various ways. http://www.devbase.at/nslu2/keyevent.php provides a little tool for reporting buttons being pressed and a simple example script implementing PLAY, STOP, SKIP functionality with just a single button.

to:

Some USB sound cards provide buttons for muting, adjusting the volume, etc. These buttons can be used to control the MPD (or any other application) in various ways. LIRC can read these key presses via the event device interface. A different little tool at http://www.devbase.at/nslu2/keyevent.php prints each key press to stdout and provides additional information like long/short/repeated/"double-click", eg. allowing for a script implementing PLAY, STOP, SKIP functionality with just a single button.

April 01, 2008, at 09:29 PM by janne5011 -- link added
Changed line 263 from:

--

to:
April 01, 2008, at 09:28 PM by janne5011 -- added link
Changed lines 262-266 from:

bredde - I had a problem like the ones above with my audio dongle. The audio dongle is plugged into an USB(2)-Hub next to a bluetooth adapter and an external harddisk. Without the harddisk or the bluetooth adapter, my audio-stick worked fine, but when all three devices were pluged in, the dongle did not work. It was discovered correctly, but when I tried to play something with MPD, there were strange error-lines in /var/log/messages. The solution to the problem is as easy as incomprehensible: When the bluetooth adapter was not plugged in, I started to play music. While playing, I plugged the bluetooth adapter in and well... the adapter works fine. I also can stop the music and continue playing using my mobile-phone and bluetooth, no more problems since this procedure.

to:

bredde - I had a problem like the ones above with my audio dongle. The audio dongle is plugged into an USB(2)-Hub next to a bluetooth adapter and an external harddisk. Without the harddisk or the bluetooth adapter, my audio-stick worked fine, but when all three devices were pluged in, the dongle did not work. It was discovered correctly, but when I tried to play something with MPD, there were strange error-lines in /var/log/messages. The solution to the problem is as easy as incomprehensible: When the bluetooth adapter was not plugged in, I started to play music. While playing, I plugged the bluetooth adapter in and well... the adapter works fine. I also can stop the music and continue playing using my mobile-phone and bluetooth, no more problems since this procedure. -- link to howto use the cheap "3D sound" usb card on the slug and debian: http://www.hermann-uwe.de/blog/playing-audio-on-the-nslu2

February 22, 2008, at 09:09 PM by Mark Breddemann --
Added lines 261-262:

bredde - I had a problem like the ones above with my audio dongle. The audio dongle is plugged into an USB(2)-Hub next to a bluetooth adapter and an external harddisk. Without the harddisk or the bluetooth adapter, my audio-stick worked fine, but when all three devices were pluged in, the dongle did not work. It was discovered correctly, but when I tried to play something with MPD, there were strange error-lines in /var/log/messages. The solution to the problem is as easy as incomprehensible: When the bluetooth adapter was not plugged in, I started to play music. While playing, I plugged the bluetooth adapter in and well... the adapter works fine. I also can stop the music and continue playing using my mobile-phone and bluetooth, no more problems since this procedure.

February 06, 2008, at 10:14 PM by karibou-hunter --
Added lines 46-49:

I (karibou-hunter) found, and tried, successfull this one : http://www.dealextreme.com/details.dx/sku.5831 (this site is amazing :)

February 03, 2008, at 08:08 PM by Me --
Changed lines 182-183 from:

MusicBrowser? is a web frontend for your music collection, which can do playback via madplay.

to:

Music Browser is a web frontend for your music collection, which can do playback via madplay.

February 03, 2008, at 08:07 PM by Me --
Added lines 182-183:

MusicBrowser? is a web frontend for your music collection, which can do playback via madplay.

January 31, 2008, at 12:50 AM by kismetcow -- Moved my earlier contribution into a new section, where it properly belongs
Deleted lines 72-84:
[kismetcow] I followed the above instructions except I lamely didn't create S99mpd as a script (just as a plain-text file). I figured this out when I tried to add the line to the script to start mpd on bootup. Since I'd successfully gotten mpd to play without running those commands, I tracked down the insmods: they apparently were placed for me in /etc/rc.d/rc.locmods which is part of the bootup. (This with Unslung 6.8beta, and Logitech V10 USB speakers.)
I then updated the daemon startup. I have this in /opt/etc/init.d/S90mpd:
#!/bin/sh

if [ -n "`pidof mpd`" ] ;then
        /bin/killall mpd 2>/dev/null
fi
sleep 2
/opt/bin/mpd
Following the advice at the MPD site, I'm running the service as a non-root user (I created a user called 'mpd'). I then discovered that the /dev/dsp device is not created with global permissions, so that needed to be chmod'd. There is no /dev/mixer, not sure why -- maybe usbaudio doesn't support it? Doesn't seem to matter: mpd runs without it, and mpd does not need ALSA. The client's volume control does cause MPD to scale playback.
Changed line 102 from:

Put the insmods in a script in /opt/etc/init.d/S90audio (?), like this (?):\\

to:

Put the insmods in a script in /opt/etc/init.d/S90audio (OR DON'T: see note following), like this:\\

Added lines 109-122:
[kismetcow] I followed (an earlier version of) the above instructions except I lamely didn't create S99mpd as a script (just as a plain-text file). I figured this out when I tried to add the line to the script to start mpd on bootup. Since I'd successfully gotten mpd to play without running those commands, I tracked down the insmods: they apparently were placed for me in /etc/rc.d/rc.locmods which is part of the bootup. (This with Unslung 6.8beta, and Logitech V10 USB speakers.)
I then updated the daemon startup. I have this in /opt/etc/init.d/S90mpd:
#!/bin/sh

if [ -n "`pidof mpd`" ] ;then
        /bin/killall mpd 2>/dev/null
fi
sleep 2
/opt/bin/mpd
Following the advice at the MPD site, I'm running the service as a non-root user (I created a user called 'mpd'). I then discovered that the /dev/dsp device is not created with global permissions, so that needed to be chmod'd. There is no /dev/mixer, not sure why -- maybe usbaudio doesn't support it? Doesn't seem to matter: mpd runs without it, and mpd does not need ALSA. The client's volume control does cause MPD to scale playback.
January 01, 2008, at 07:32 PM by bcrowell --
Changed line 108 from:

see http://www.ss64.com/bash/mknod.html\\

to:

...see http://www.ss64.com/bash/mknod.html\\

January 01, 2008, at 07:31 PM by bcrowell --
Changed lines 107-108 from:

mknod /dev/mixer c 14 0 ... where the 14 and 0 come from the output of an ls -l on another linux box; see http://www.ss64.com/bash/mknod.html\\

to:

mknod /dev/mixer c 14 0 ... where the 14 and 0 come from the output of an ls -l on another linux box;
see http://www.ss64.com/bash/mknod.html\\

January 01, 2008, at 07:30 PM by bcrowell --
Changed line 107 from:

mknod /dev/mixer c 14 0 ... where the 14 and 0 come from the output of an ls -l on another linux box\\

to:

mknod /dev/mixer c 14 0 ... where the 14 and 0 come from the output of an ls -l on another linux box; see http://www.ss64.com/bash/mknod.html\\

January 01, 2008, at 07:29 PM by bcrowell --
Changed lines 119-120 from:

and do a @chmod +rx S90audio@

to:

and do a chmod +rx S90audio

January 01, 2008, at 07:28 PM by bcrowell --
Changed lines 119-121 from:

Card specific issues

to:

and do a @chmod +rx S90audio@

Card-specific issues

January 01, 2008, at 07:26 PM by bcrowell --
Changed lines 114-115 from:

Put the insmods in a script in /opt/etc/init.d/ ??

to:
Put the insmods in a script in /opt/etc/init.d/S90audio (?), like this (?):
#!/bin/sh
insmod /lib/modules/2.4.22-xfs/kernel/drivers/sound/soundcore.o
insmod /lib/modules/2.4.22-xfs/kernel/drivers/usb/audio.o
depmod -a
January 01, 2008, at 07:20 PM by bcrowell --
Changed lines 50-51 from:

Try System > Prefs > Hardware Info brings up Device Manager to make sure the device has been recognized.

to:

System > Preferences > Hardware Info brings up Device Manager, so you can make sure the device has been recognized.

January 01, 2008, at 07:19 PM by bcrowell --
Changed lines 48-49 from:

You may want to start by testing your USB audio device to make sure you can actually get it to work on a standard desktop linux system. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. Here are some instructions for poking around in the GNOME GUI to make sure it works.

to:

You may want to start by testing your USB audio device to make sure you can actually get it to work on a standard desktop linux system. Typically you'll already have a non-USB sound interface (either a card, or one built into your motherboard), and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. Here are some instructions for poking around in the GNOME GUI to make sure it works.

January 01, 2008, at 07:18 PM by bcrowell --
Changed lines 48-49 from:

You may want to start by testing your USB audio device to make sure you can actually get it to work on linux. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. Here are some instructions for poking around in the GNOME GUI to make sure it works.

to:

You may want to start by testing your USB audio device to make sure you can actually get it to work on a standard desktop linux system. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. Here are some instructions for poking around in the GNOME GUI to make sure it works.

January 01, 2008, at 07:18 PM by bcrowell --
Changed lines 48-49 from:

You may want to start by testing your USB audio device to make sure you can actually get it to work on linux. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. In GNOME, you can try System > Prefs > Hardware Info brings up Device Manager to make sure the device has been recognized.

to:

You may want to start by testing your USB audio device to make sure you can actually get it to work on linux. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. Here are some instructions for poking around in the GNOME GUI to make sure it works.

Try System > Prefs > Hardware Info brings up Device Manager to make sure the device has been recognized.

To control the volume, double-click on the volume control icon in GNOME's top menu bar; this pops up an applet with the name of the sound card listed in its title bar. File > Change Device lets you select your USB device instead so you can set its volume.

To get some output, try Gnome > System > Preferences > Sound > Devices > Sound Events. Change it from autodetect to USB audio.

January 01, 2008, at 07:14 PM by bcrowell --
Added lines 46-49:

Testing the USB audio device for linux support:

You may want to start by testing your USB audio device to make sure you can actually get it to work on linux. Typically you'll already have a non-usb sound interface (either a card, or one built into your motherboard_, and even when you have a USB audio device plugged into a USB port, Linux will continue using the non-USB one by default unless you tell it otherwise. In GNOME, you can try System > Prefs > Hardware Info brings up Device Manager to make sure the device has been recognized.

January 01, 2008, at 07:06 PM by bcrowell --
Changed lines 76-78 from:

To control your card you need to install alsa using the command ipkg install alsa-utils-alsamixer alsa-utils-midi alsa-utils-aplay alsa-utils-amixer alsa-utils-aconnect alsa-utils-iecset alsa-utils-speakertest alsa-utils-aseqnet alsa-utils-alsactl. These packages do not seem to exist for Unslung at the moment though. .

to:

To control your card you need to install alsa using the command ipkg install alsa-utils-alsamixer alsa-utils-midi alsa-utils-aplay alsa-utils-amixer alsa-utils-aconnect alsa-utils-iecset alsa-utils-speakertest alsa-utils-aseqnet alsa-utils-alsactl.

Check (after plugging in your USB card and speakers) /proc/asound/cards to see if your card is actually present.

If so start alsamixer. Make sure the card is not muted and the sound volume ok. (mine is close to 100%).

As tests try:
speaker-test -c2 -Ddefault
and
aplay tst.wav (or another wav file to your choice).

Added lines 88-89:

Unslung uses the 2.4 linux kernel, which has less audio support than later versions. In particular, ALSA doesn't exist in the 2.4 kernel.

Deleted lines 105-115:

Testing your work

Check (after plugging in your USB card and speakers) /proc/asound/cards to see if your card is actually present.

If so start alsamixer. Make sure the card is not muted and the sound volume ok. (mine is close to 100%).

As tests try:
speaker-test -c2 -Ddefault
and
aplay tst.wav (or another wav file to your choice).

January 01, 2008, at 07:03 PM by bcrowell --
Changed lines 94-95 from:

Put the insmods in your /opt/etc/init.d/S99mpd script?

to:

Put the insmods in a script in /opt/etc/init.d/ ??

January 01, 2008, at 07:02 PM by bcrowell -- unslung stuff
Changed lines 82-86 from:

ipkg install mpd kernel-module-audio kernel-module-soundcore madplay usbutils# lsusb ... shows that the dongle is present Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

to:

ipkg install mpd kernel-module-audio kernel-module-soundcore madplay usbutils
lsusb ... shows that the dongle is present
lsmod ... shows no audio-related modules are loaded
ls /dev/dsp ... shows it exists
ls /dev/mixer ... shows that it doesn't exist
mknod /dev/mixer c 14 0 ... where the 14 and 0 come from the output of an ls -l on another linux box
ls -R /lib/modules ... shows some audio-related kernel modules that are available to be loaded
insmod /lib/modules/2.4.22-xfs/kernel/drivers/sound/soundcore.o
insmod /lib/modules/2.4.22-xfs/kernel/drivers/usb/audio.o
depmod -a
madplay foo.mp3 ... sound comes from the speakers

Put the insmods in your /opt/etc/init.d/S99mpd script?

January 01, 2008, at 06:51 PM by bcrowell -- unslung stuff
Changed lines 46-47 from:

Software installation on slugOS:

to:

Software installation on SlugOS:

Added lines 80-84:

Bcrowell used the following procedure to get audio output working on unslung 6.8 with a C Media based usb audio dongle.

ipkg install mpd kernel-module-audio kernel-module-soundcore madplay usbutils# lsusb ... shows that the dongle is present

January 01, 2008, at 06:48 PM by bcrowell -- unslung stuff
Changed lines 46-47 from:

Software installation.

to:

Software installation on slugOS:

Deleted lines 62-63:

Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

Added lines 79-81:

Software installation on unslung:

Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

December 31, 2007, at 07:58 PM by Zhyla --
Changed lines 155-156 from:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password. One known working front end is wymypy which is a small, stand-alone python web server with a fairly usable AJAX web page interface. Zhyla? spent a bit time getting this to work (summary: unpack the egg on a desktop machine, ipkg install the various python standard library modules needed).

to:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password. One known working front end is wymypy which is a small, stand-alone python web server with a fairly usable AJAX web page interface. Zhyla spent a bit time getting this to work (summary: unpack the egg on a desktop machine, ipkg install the various python standard library modules needed).

December 31, 2007, at 07:57 PM by Zhyla -- Added note about wymypy
Changed lines 155-156 from:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

to:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password. One known working front end is wymypy which is a small, stand-alone python web server with a fairly usable AJAX web page interface. Zhyla? spent a bit time getting this to work (summary: unpack the egg on a desktop machine, ipkg install the various python standard library modules needed).

November 03, 2007, at 09:29 PM by carlb -- !!!!USB human interface devices
Added lines 184-186:

USB human interface devices

These are available as full keyboards, USB mice and (a possibly more suitable option) as calculator-style numeric keypads intended for use with laptop PC's. There are also adapters to connect PS/2 mice and keyboards to USB. These use a standard driver (kmod-usb-hid... in 2.6 kernels) and are readily available in computer and office-supply stores.

August 29, 2007, at 02:35 PM by fcarolo -- some formatting
Changed line 10 from:
to:
  • TerraTec Noxon Series
August 29, 2007, at 02:35 PM by fcarolo -- some formatting
Changed lines 7-28 from:

Apple http://www.apple.com/airportexpress/

Linksys WMB54G? Wireless-G Music Bridge http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1137451822026&packedargs=page%3DL_Product_C2%26sku%3D1137451822026&pagename=Linksys%2FCommon%2FVisitorWrapper&lid=2202628788B01

abit AirPace? Music http://www.abit.com.tw/page/en/multimedia/multimedia_detail.php?pMODEL_NAME=AirPace+Music&fMTYPE=AirPace%20Family&pPRODINFO=Specifications&fSEARCHTEXT=AirPace%20Music

TerraTec? Noxon Series http://web.noxonserver.de/cms/front_content.php?changelang=2

Pinnacle SoundBridge? http://www.pinnaclesys.com/PublicSite/uk/Products/Consumer+Products/Digital+Media+Adapters/Digital+Media+Player/SoundBridge.htm

This page tries to summarize what's needed to do that. Lots of this is quoted

to:
  • Apple AirPort Express
  • Linksys WMB54G Wireless-G Music Bridge
  • abit AirPace Music
  • TerraTec? Noxon Series
  • Pinnacle SoundBridge

This page tries to summarize what's needed to do that. Lots of this is quoted

August 28, 2007, at 06:12 PM by anonymous --
Changed lines 1-27 from:

The slug can be turned into a network-attached audio player. This page

to:

The slug can be turned into a network-attached audio player. Using integer codecs (due to lack of floating point unit) it's possible to decode a number of formats on the slug and output the audio via a cheap usb-audio adapter. One program, music player daemon (mpd), can be controlled via various clients from most operating systems. It's also capable of playing streamed music (internet radio, or stream the audio of the movie you're watching on your notebook). If you've got a lot of time at your disposal, you could even hack together an LCD plus some buttons to control it.. or use your mobile phone via bluetooth

Here are a number of products with similar capabilities (and less work):

Apple http://www.apple.com/airportexpress/

Linksys WMB54G? Wireless-G Music Bridge http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1137451822026&packedargs=page%3DL_Product_C2%26sku%3D1137451822026&pagename=Linksys%2FCommon%2FVisitorWrapper&lid=2202628788B01

abit AirPace? Music http://www.abit.com.tw/page/en/multimedia/multimedia_detail.php?pMODEL_NAME=AirPace+Music&fMTYPE=AirPace%20Family&pPRODINFO=Specifications&fSEARCHTEXT=AirPace%20Music

TerraTec? Noxon Series http://web.noxonserver.de/cms/front_content.php?changelang=2

Pinnacle SoundBridge? http://www.pinnaclesys.com/PublicSite/uk/Products/Consumer+Products/Digital+Media+Adapters/Digital+Media+Player/SoundBridge.htm

This page

August 11, 2007, at 06:49 PM by kismetcow -- format fix
Changed lines 64-66 from:
Following the advice at the MPD site, I'm running the service as a non-root user (I created a user called 'mpd'). I then discovered that the /dev/dsp device is not created with global permissions, so that needed to be chmod'd.

There is no /dev/mixer, not sure why -- maybe usbaudio doesn't support it? Doesn't seem to matter: mpd runs without it, and mpd does not need ALSA. The client's volume control does cause MPD to scale playback.

to:
Following the advice at the MPD site, I'm running the service as a non-root user (I created a user called 'mpd'). I then discovered that the /dev/dsp device is not created with global permissions, so that needed to be chmod'd. There is no /dev/mixer, not sure why -- maybe usbaudio doesn't support it? Doesn't seem to matter: mpd runs without it, and mpd does not need ALSA. The client's volume control does cause MPD to scale playback.
August 11, 2007, at 06:48 PM by kismetcow -- More detail on configuring Unslung for mpd
Changed lines 51-56 from:

Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

kismetcow: I followed the above instructions except I lamely didn't create S99mpd as a script. I figured this out when I tried to add the line to the script to start mpd on bootup. Since I've successfully gotten mpd to play without running those commands, I have to wonder if the insmod's are necessary at all. (This with Unslung 6.8beta, and Logitech V10 USB speakers.)
I did discover that to get mpd (running as admin) to access /dev/dsp I had to set permissions on /dev/dsp. There is no /dev/mixer, maybe because the V10s don't support a mixer(?). mpd does not need ALSA. (I don't care about the lack of volume control because once I've gotten this configured and working correctly, I'll be replacing the V10s with a USB DAC connected to a regular stereo.)
to:

Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

[kismetcow] I followed the above instructions except I lamely didn't create S99mpd as a script (just as a plain-text file). I figured this out when I tried to add the line to the script to start mpd on bootup. Since I'd successfully gotten mpd to play without running those commands, I tracked down the insmods: they apparently were placed for me in /etc/rc.d/rc.locmods which is part of the bootup. (This with Unslung 6.8beta, and Logitech V10 USB speakers.)
I then updated the daemon startup. I have this in /opt/etc/init.d/S90mpd:
#!/bin/sh

if [ -n "`pidof mpd`" ] ;then
        /bin/killall mpd 2>/dev/null
fi
sleep 2
/opt/bin/mpd
Following the advice at the MPD site, I'm running the service as a non-root user (I created a user called 'mpd'). I then discovered that the /dev/dsp device is not created with global permissions, so that needed to be chmod'd.

There is no /dev/mixer, not sure why -- maybe usbaudio doesn't support it? Doesn't seem to matter: mpd runs without it, and mpd does not need ALSA. The client's volume control does cause MPD to scale playback.

August 10, 2007, at 05:31 PM by gualteri -- trust sc-5500P works
Added lines 28-29:

http://www.amazon.co.uk/TRUST-SC-5500P-EXTERNAL-SURROUND-SOUND/dp/B0002Z2QQY

August 10, 2007, at 12:41 AM by kismetcow -- added comment re: kernel-module-audio on Unslung
Added lines 51-54:
kismetcow: I followed the above instructions except I lamely didn't create S99mpd as a script. I figured this out when I tried to add the line to the script to start mpd on bootup. Since I've successfully gotten mpd to play without running those commands, I have to wonder if the insmod's are necessary at all. (This with Unslung 6.8beta, and Logitech V10 USB speakers.)
I did discover that to get mpd (running as admin) to access /dev/dsp I had to set permissions on /dev/dsp. There is no /dev/mixer, maybe because the V10s don't support a mixer(?). mpd does not need ALSA. (I don't care about the lack of volume control because once I've gotten this configured and working correctly, I'll be replacing the V10s with a USB DAC connected to a regular stereo.)
July 15, 2007, at 04:33 PM by ssb22 -- added MIDI beeper
Added lines 13-14:

If you don't want to add sound hardware, you can still use the slug's internal speaker to play MIDI files.

March 23, 2007, at 07:56 PM by fcarolo -- commented dead link
Changed lines 151-152 from:

http://aaronbock.net/software/mpcstick/ (dead link)

to:

http://aaronbock.net/software/mpcstick/ (dead link)

March 23, 2007, at 07:56 PM by fcarolo -- cleaned up wikilinks
Changed lines 151-152 from:

http://aaronbock.net/software/mpcstick/ (dead link)

to:

http://aaronbock.net/software/mpcstick/ (dead link)

March 23, 2007, at 07:55 PM by fcarolo -- commented dead link
Changed lines 151-152 from:

http://aaronbock.net/software/mpcstick/ (dead link)

to:

http://aaronbock.net/software/mpcstick/ (dead link)

March 20, 2007, at 12:02 AM by HEINO -- link added
Changed lines 152-153 from:
to:

http://mercury.chem.pitt.edu/~shank/mpcstick-0.10.2.tar.gz

March 10, 2007, at 01:32 PM by mathieu_xwave -- Updated link to USB LCD
Changed lines 160-161 from:

Another option is currently developed to use a cheap 128x64 graphical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

to:

Another option is to use a cheap 128x64 graphical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://www.xwaves.net/?inc=projects

February 23, 2007, at 01:29 AM by oao --
Changed lines 151-152 from:

http://aaronbock.net/software/mpcstick/

to:

http://aaronbock.net/software/mpcstick/ (dead link)

January 25, 2007, at 05:31 AM by AlienZ --
Changed lines 124-130 from:

MPD is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Please can someone who has MPD working on unslung 6.8 update the wiki!! I have spent countless days trying to get it to work! - AlienZ?

to:

MPD is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd" (Now works with Unslung 6.8), alternatively see BuildMpd for details on getting it running from source.

January 23, 2007, at 06:42 AM by AlienZ --
Changed lines 126-130 from:

'' 'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Please can someone who has MPD working on unslung 6.8 update the wiki!! I have spent countless days trying to get it to work! - AlienZ? ''

to:

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Please can someone who has MPD working on unslung 6.8 update the wiki!! I have spent countless days trying to get it to work! - AlienZ?

January 23, 2007, at 06:41 AM by MPD --
Changed lines 126-127 from:

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

to:

'' 'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Please can someone who has MPD working on unslung 6.8 update the wiki!! I have spent countless days trying to get it to work! - AlienZ? ''

January 12, 2007, at 12:44 PM by James Dear -- alsa packages don\'t exist for unslung
Changed line 49 from:

To control your card you need to install alsa using the command ipkg install alsa-utils-alsamixer alsa-utils-midi alsa-utils-aplay alsa-utils-amixer alsa-utils-aconnect alsa-utils-iecset alsa-utils-speakertest alsa-utils-aseqnet alsa-utils-alsactl

to:

To control your card you need to install alsa using the command ipkg install alsa-utils-alsamixer alsa-utils-midi alsa-utils-aplay alsa-utils-amixer alsa-utils-aconnect alsa-utils-iecset alsa-utils-speakertest alsa-utils-aseqnet alsa-utils-alsactl. These packages do not seem to exist for Unslung at the moment though.

November 11, 2006, at 09:26 PM by Thomas Reitmayr -- Added section \"Sound Card Buttons\", fixed a few typos
Changed line 2 from:

tries to summarise what's needed to do that. Lots of this is quoted

to:

tries to summarize what's needed to do that. Lots of this is quoted

Changed lines 26-27 from:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it. Brands mentioned on the package are Comodow and LeadTide.

to:

This chip is also in USB sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it. Brands mentioned on the package are Comodow and LeadTide.

Changed lines 54-55 from:

Check (after plugging in your usb card and speakers) /proc/asound/cards to see if your card is actually present.

to:

Check (after plugging in your USB card and speakers) /proc/asound/cards to see if your card is actually present.

Changed lines 67-68 from:

I (malfi) just bought a Creative Sound Blaster MP3+ USB. Sound quality is very good, it has gold plated RCA jacks and doesn't need an external power supply. I can recommand this little device by all means. It is supported by the 'audio' module in OpenSlug. But a small problem I stumbled across is the output sampling rate.

to:

I (malfi) just bought a Creative Sound Blaster MP3+ USB. Sound quality is very good, it has gold plated RCA jacks and doesn't need an external power supply. I can recommend this little device by all means. It is supported by the 'audio' module in OpenSlug. But a small problem I stumbled across is the output sampling rate.

Changed line 94 from:

Recognized as USB-Audio - Burr-Brown Japan PCM2702?\\

to:

Recognized as USB-Audio - Burr-Brown Japan PCM2702\\

Changed lines 124-125 from:

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

to:

MPD is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

Changed lines 162-163 from:

Another option is currently devlopped to use a cheap 128x64 Grahpical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

to:

Another option is currently developed to use a cheap 128x64 graphical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

Changed lines 171-175 from:
to:

Sound Card Buttons

Some USB sound cards provide buttons for muting, adjusting the volume, etc. These buttons can be used to control the MPD (or any other application) in various ways. http://www.devbase.at/nslu2/keyevent.php provides a little tool for reporting buttons being pressed and a simple example script implementing PLAY, STOP, SKIP functionality with just a single button.

Changed lines 183-186 from:

esalazar - I discovered with my TurtleBeach? AudioAdvantage? that I could not use the audio card plugged into my USB 2.0 hub. I had to plug it directly into the slug.

shm - I also found that the TurtleBeach? AudioAdvantage? would not work plugged into a hub, it was discovered when inserted, but would not output any audio, also noticed that madplay was ticking off too fast. I also discovered that the audo card was not recognized during initial boot, I have to unplug and plug the device back in to get it to work.

to:

esalazar - I discovered with my TurtleBeach AudioAdvantage that I could not use the audio card plugged into my USB 2.0 hub. I had to plug it directly into the slug.

shm - I also found that the TurtleBeach AudioAdvantage would not work plugged into a hub, it was discovered when inserted, but would not output any audio, also noticed that madplay was ticking off too fast. I also discovered that the audio card was not recognized during initial boot, I have to unplug and plug the device back in to get it to work.

August 05, 2006, at 09:36 AM by eFfeM --
Deleted lines 0-1:

This page is being reworked....

Changed lines 26-29 from:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it Brands mentioned on the package are Comodow and LeadTide?.

eFfeM once got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card. However this was not reproducible. Others have seen similar behaviour with other devices (e.g. Griffin iMIC, Creative audio cards). As those cards work on PC linux systems it is expected that the problem is timing or byte ordering related.

to:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it. Brands mentioned on the package are Comodow and LeadTide.

eFfeM once got audio playback and madplay running on openslug using a Philips PSC805 Aurilium card. However this was not reproducible. Others have seen similar behaviour with other devices (e.g. Griffin iMIC, Creative audio cards). As those cards work on PC linux systems it is expected that the problem is timing or byte ordering related.

Changed line 32 from:

SlugOs? users can install the "kernel-module-snd-usb-audio", "kernel-module-snd-mixer-oss" and "kernel-module-snd-pcm-oss" packages.

to:

SlugOs users can install the "kernel-module-snd-usb-audio", "kernel-module-snd-mixer-oss" and "kernel-module-snd-pcm-oss" packages.

Added lines 52-62:

Testing your work

Check (after plugging in your usb card and speakers) /proc/asound/cards to see if your card is actually present.

If so start alsamixer. Make sure the card is not muted and the sound volume ok. (mine is close to 100%).

As tests try:
speaker-test -c2 -Ddefault
and
aplay tst.wav (or another wav file to your choice).

Deleted lines 98-106:

If your hardware is not working first check /proc/asound/cards to see if your card is actually present.

If so start alsamixer. Make sure the card is not muted and the sound volume ok. (mine is close to 100%).

As tests try:
speaker-test -c2 -Ddefault
and
aplay tst.wav (or another wav file to your choice)

Changed lines 120-123 from:

madplay and mpg321 use integer math to play MP3s and work well. At the moment only madplay - not mpg321 - is available as ipkg.

Well I tried both and mpg123 pegged CPU usage and still was slow and choppy, not useful at all. Madplay worked great and only used 2% - 3% of CPU. Brian Wood

to:

madplay and mpg321 use integer math to play MP3s and work well. At the moment only madplay - not mpg321 - is available as ipkg. mpg321 will be added in the next release (at least for SlugOS). However apparently madplay works better and uses less CPU cycles.

August 04, 2006, at 02:54 PM by eFfeM --
Changed line 34 from:

SlugOs? users can install the "kernel-module-snd-usb-audio" package.

to:

SlugOs? users can install the "kernel-module-snd-usb-audio", "kernel-module-snd-mixer-oss" and "kernel-module-snd-pcm-oss" packages.

Added lines 45-46:

insmod /lib/modules/2.6.*/kernel/sound/core/oss/snd-mixer-oss.ko
insmod /lib/modules/2.6.*/kernel/sound/core/oss/snd-pcm-oss.ko\\

July 24, 2006, at 03:52 PM by Thomas Reitmayr -- updated the links to the C-Media USB Sound chips
Changed lines 22-25 from:
http://www.cmedia.com.tw/product/CM102.htm
http://www.cmedia.com.tw/product/CM106.htm
http://www.cmedia.com.tw/product/CM108.htm
to:
http://www.cmedia.com.tw/?q=en/USB/CM102
http://www.cmedia.com.tw/?q=en/USB/CM106
http://www.cmedia.com.tw/?q=en/USB/CM108
July 15, 2006, at 02:23 PM by die amme --
Changed lines 79-80 from:

I have audio working with an M-Audio Transit. It requires the firmware to be loaded onto the card with madfu http://usb-midi-fw.sourceforge.net/ but it should work. (Also beware of the order you modprobe the modules, this does matter.)

to:

I have audio working with an M-Audio Transit. It requires the firmware to be loaded onto the card with madfu http://usb-midi-fw.sourceforge.net/ but it should work. (Also beware of the order you modprobe the modules, this does matter.)


I tried the Linex FM transmitter and it works.
Recognized as USB-Audio - Burr-Brown Japan PCM2702?
See also OpenSlug Audio Transmitter with mpd/mpc


July 11, 2006, at 08:24 PM by Apu -- added link
Changed lines 180-182 from:

Lurch - I've got some cheap USB speakers which work when plugged directly into my slug, but not via a USB 2.0 hub. I experimented, and found they do work via a USB 1.0 hub. So I've got my flash root device and my speakers hanging off a USB 1.0 hub in port2, and a couple of NTFS disks hanging of a USB 2.0 hub in port1.

to:

Lurch - I've got some cheap USB speakers which work when plugged directly into my slug, but not via a USB 2.0 hub. I experimented, and found they do work via a USB 1.0 hub. So I've got my flash root device and my speakers hanging off a USB 1.0 hub in port2, and a couple of NTFS disks hanging of a USB 2.0 hub in port1.

Apu - Solution for the problem with USB 2.0 hubs : Here.

July 10, 2006, at 04:20 PM by eFfeM --
Changed lines 34-35 from:

SlugOs? users can install the "kernel-module-snd-usb-audio" package. Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

to:

SlugOs? users can install the "kernel-module-snd-usb-audio" package. After that the following commands need to be given
insmod /lib/modules/2.6.*/kernel/sound/soundcore.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd-page-alloc.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd-rawmidi.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd-hwdep.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd-timer.ko
insmod /lib/modules/2.6.*/kernel/sound/core/snd-pcm.ko
insmod /lib/modules/2.6.*/kernel/sound/usb/snd-usb-lib.ko
insmod /lib/modules/2.6.*/kernel/sound/usb/snd-usb-audio.ko
depmod -a

Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

July 10, 2006, at 02:12 PM by eFfeM --
Added lines 1-2:

This page is being reworked....

Added line 10:
Changed lines 14-84 from:

Music Storage

You can store your music locally on the NSLU2 or mount it over the network using NFS or Samba.

Player Software

Performance

The slug's CPU is fast enough to decode MP3 and Ogg Vorbis in real time, but the lack of floating point hardware means that not all players will give acceptable results.

Players

mpg123 and XiMP3 can be built for the slug, but use floating point math, so are too slow for anything but low bitrates and/or mono output.

madplay and mpg321 use integer math to play MP3s and work well. At the moment only madplay - not mpg321 - is available as ipkg.

Well I tried both and mpg123 pegged CPU usage and still was slow and choppy, not useful at all. Madplay worked great and only used 2% - 3% of CPU. Brian Wood

MPD

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

CPU usage on a TurboSlug peaks at less than 2% for MP3 files at all bitrates. Ogg Vorbis is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer fill.

MPD maintains a database of the MP3 tracks, so for large collections (20,000+) the slug will need to have swap memory.

User Interface

We want some way to control and see the status of the player.

Remote control from a PC

The easiest option is to SSH to the slug, and run a command-line player or something like mp3blaster, possibly inside screen, so it stays running when you disconnect.

With MPD, any of the available front-ends can be run on a remote PC.

Hardware interfaces

Infrared Remotes

Could be used with a serial or USB attached receiver.

USB Joysticks

Might be an option with something like this:

http://aaronbock.net/software/mpcstick/

USB LCD display

http://www.cwlinux.com/eng/products/products_cw12232.php

This is a standard USB serial device and has a built in microcontroller to control the LCD. It has a sophisticated on-board firmware which can do scrolling, absolute positioned text and stand alone bar graphs(!). It is fully USB powered, unlike the serial version,and draws 200mA with the backlight on. With the backlight off, it draws roughly 80mA.

Another option is currently devlopped to use a cheap 128x64 Grahpical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

Serial terminal

A good old time serial terminal is an easy option, but bulky.

Xbox accessories

In Norway you can get an Xbox compatible remote and receiver for €25, which is quite cheap (Linux drivers available for the remote as well as game pads). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

to:
Changed lines 18-23 from:

Any Linux supported USB sound adapter should work (see http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

eFfeM once got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card. However this was not reproducible. Others have seen similar behaviour with other devices (e.g. Griffin iMIC, Creative audio cards). As those cards work on PC linux systems it is expected that the problem is timing or byte ordering related.

fozzy had trouble getting madplay to work with the ALSA packages. In the end the problem was the OSS compatability packages need to be installed, i.e: kernel-module-snd-mixer-oss and kernel-module-snd-pcm-oss. A simple thing, but something that could catch others.

to:

Any Linux supported USB sound adapter should work (see http://www.qbik.ch/), but in practice some adapters work better than others. \\

Added lines 30-42:

eFfeM once got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card. However this was not reproducible. Others have seen similar behaviour with other devices (e.g. Griffin iMIC, Creative audio cards). As those cards work on PC linux systems it is expected that the problem is timing or byte ordering related.

Software installation.

SlugOs? users can install the "kernel-module-snd-usb-audio" package. Unslung users can install the "kernel-module-audio" package! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

To control your card you need to install alsa using the command ipkg install alsa-utils-alsamixer alsa-utils-midi alsa-utils-aplay alsa-utils-amixer alsa-utils-aconnect alsa-utils-iecset alsa-utils-speakertest alsa-utils-aseqnet alsa-utils-alsactl .

Card specific issues

fozzy had trouble getting madplay to work with the ALSA packages. In the end the problem was the OSS compatability packages need to be installed, i.e: kernel-module-snd-mixer-oss and kernel-module-snd-pcm-oss. A simple thing, but something that could catch others.

Added lines 84-153:

Music Storage

You can store your music locally on the NSLU2 or mount it over the network using NFS or Samba.

Player Software

Performance

The slug's CPU is fast enough to decode MP3 and Ogg Vorbis in real time, but the lack of floating point hardware means that not all players will give acceptable results.

Players

mpg123 and XiMP3 can be built for the slug, but use floating point math, so are too slow for anything but low bitrates and/or mono output.

madplay and mpg321 use integer math to play MP3s and work well. At the moment only madplay - not mpg321 - is available as ipkg.

Well I tried both and mpg123 pegged CPU usage and still was slow and choppy, not useful at all. Madplay worked great and only used 2% - 3% of CPU. Brian Wood

MPD

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

CPU usage on a TurboSlug peaks at less than 2% for MP3 files at all bitrates. Ogg Vorbis is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer fill.

MPD maintains a database of the MP3 tracks, so for large collections (20,000+) the slug will need to have swap memory.

User Interface

We want some way to control and see the status of the player.

Remote control from a PC

The easiest option is to SSH to the slug, and run a command-line player or something like mp3blaster, possibly inside screen, so it stays running when you disconnect.

With MPD, any of the available front-ends can be run on a remote PC.

Hardware interfaces

Infrared Remotes

Could be used with a serial or USB attached receiver.

USB Joysticks

Might be an option with something like this:

http://aaronbock.net/software/mpcstick/

USB LCD display

http://www.cwlinux.com/eng/products/products_cw12232.php

This is a standard USB serial device and has a built in microcontroller to control the LCD. It has a sophisticated on-board firmware which can do scrolling, absolute positioned text and stand alone bar graphs(!). It is fully USB powered, unlike the serial version,and draws 200mA with the backlight on. With the backlight off, it draws roughly 80mA.

Another option is currently devlopped to use a cheap 128x64 Grahpical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

Serial terminal

A good old time serial terminal is an easy option, but bulky.

Xbox accessories

In Norway you can get an Xbox compatible remote and receiver for €25, which is quite cheap (Linux drivers available for the remote as well as game pads). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

May 14, 2006, at 06:45 PM by Lurch -- Added link to speakers webpage
Changed line 156 from:

Lurch - I've got some cheap USB speakers which work when plugged directly into my slugg, but not via a USB2?.0 hub. I experimented, and found they do work via a USB1?.0 hub. So I've got my flash root device and my speakers hanging off a USB1?.0 hub in port2, and a couple of NTFS disks hanging of a USB2?.0 hub in port1.

to:

Lurch - I've got some cheap USB speakers which work when plugged directly into my slug, but not via a USB 2.0 hub. I experimented, and found they do work via a USB 1.0 hub. So I've got my flash root device and my speakers hanging off a USB 1.0 hub in port2, and a couple of NTFS disks hanging of a USB 2.0 hub in port1.

May 14, 2006, at 06:30 PM by Lurch -- Added request for binary mpd, and info about speakers working via USB1 hub.
Added lines 37-38:

'ipkg install mpd' doesn't work on Unslung 6.8, and I don't want to have to set up a build environment. Could someone provide a binary please? - Lurch

Changed lines 154-156 from:

iano- Had the same problem when using the audio dongle with a hub. DMA time out errors in the log - it's a little bit odd. Anyway, I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd. Hopefully can avoid more DMA issues.

to:

iano- Had the same problem when using the audio dongle with a hub. DMA time out errors in the log - it's a little bit odd. Anyway, I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd. Hopefully can avoid more DMA issues.

Lurch - I've got some cheap USB speakers which work when plugged directly into my slugg, but not via a USB2?.0 hub. I experimented, and found they do work via a USB1?.0 hub. So I've got my flash root device and my speakers hanging off a USB1?.0 hub in port2, and a couple of NTFS disks hanging of a USB2?.0 hub in port1.

April 10, 2006, at 02:56 PM by hifi-andrew --
Changed lines 35-36 from:

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

to:

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. Install the binary with "ipkg install mpd", alternatively see BuildMpd for details on getting it running from source.

April 10, 2006, at 02:53 PM by hifi-andrew --
Changed lines 41-42 from:

MPD maintains a database of the MP3? tracks, so for large collections (20,000+) the slug will need to have swap memory.

to:

MPD maintains a database of the MP3 tracks, so for large collections (20,000+) the slug will need to have swap memory.

April 10, 2006, at 02:43 PM by hifi-andrew --
Changed lines 41-42 from:

MPD maintains a database of the MP3? players, so for large collections (20,000+) the slug will need to have swap memory.

to:

MPD maintains a database of the MP3? tracks, so for large collections (20,000+) the slug will need to have swap memory.

April 08, 2006, at 07:10 PM by hifi-andrew -- Added MPD details
Changed lines 37-38 from:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

to:

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

Added lines 41-42:

MPD maintains a database of the MP3? players, so for large collections (20,000+) the slug will need to have swap memory.

March 08, 2006, at 03:07 PM by mathieu_xwave -- Added USB Graphical LCD Project
Added lines 69-70:

Another option is currently devlopped to use a cheap 128x64 Grahpical LCD screen to display infos (current song, songs library etc....). Sources and more infos at http://projects.xwaves.net/usblcd/

February 25, 2006, at 02:17 PM by jpg --
Changed lines 119-120 from:
to:

I have audio working with an M-Audio Transit. It requires the firmware to be loaded onto the card with madfu http://usb-midi-fw.sourceforge.net/ but it should work. (Also beware of the order you modprobe the modules, this does matter.)

Added lines 132-133:

Alsamixer (and amixer) may fail, complaining about a missing file. If this is the case it means that it can't find certain devices in /dev. To find this you must download the source for alsa and run ./snddevices (you may have to change the file to fix the owner-user format from root.root to root:root).

February 15, 2006, at 11:35 AM by Iano --
Changed line 145 from:

iano- Had the same problem when using the audio dongle with a hub. DMA time out errors in the log. It's a little bit odd but I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd.

to:

iano- Had the same problem when using the audio dongle with a hub. DMA time out errors in the log - it's a little bit odd. Anyway, I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd. Hopefully can avoid more DMA issues.

February 15, 2006, at 11:33 AM by Iano --
Changed line 145 from:

Had the same problem when using the audio dongle with a hub. DMA time out errors in the log. It's a little bit odd but I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd.

to:

iano- Had the same problem when using the audio dongle with a hub. DMA time out errors in the log. It's a little bit odd but I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd.

February 15, 2006, at 11:32 AM by Iano --
Changed lines 143-145 from:

shm - I also found that the TurtleBeach? AudioAdvantage? would not work plugged into a hub, it was discovered when inserted, but would not output any audio, also noticed that madplay was ticking off too fast. I also discovered that the audo card was not recognized during initial boot, I have to unplug and plug the device back in to get it to work.

to:

shm - I also found that the TurtleBeach? AudioAdvantage? would not work plugged into a hub, it was discovered when inserted, but would not output any audio, also noticed that madplay was ticking off too fast. I also discovered that the audo card was not recognized during initial boot, I have to unplug and plug the device back in to get it to work.

Had the same problem when using the audio dongle with a hub. DMA time out errors in the log. It's a little bit odd but I now have the external hdd & an 802.11 dongle on the hub in the "disk 1" slot and the audio dongle in slot 2. Everything up and working well. Next I want to add a bluetooth dongle and use my mobile phone as a remote control for mpd.

February 14, 2006, at 10:02 PM by eFfeM --
Changed lines 94-95 from:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it Brands mentioned on the package are Colmodow and LeadTide?.

to:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it Brands mentioned on the package are Comodow and LeadTide?.

February 14, 2006, at 09:59 PM by eFfeM --
Added lines 94-95:

This chip is also in usb sound dongles that are sold on ebay. Mine is transparent green with the text "3D-sound" on it Brands mentioned on the package are Colmodow and LeadTide?.

January 13, 2006, at 04:43 AM by eFfeM --
Changed lines 81-82 from:

eFfeM got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card.

to:

eFfeM once got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card. However this was not reproducible. Others have seen similar behaviour with other devices (e.g. Griffin iMIC, Creative audio cards). As those cards work on PC linux systems it is expected that the problem is timing or byte ordering related.

January 08, 2006, at 09:44 PM by shm --
Changed line 141 from:

shm - I got the TurtleBeach? AudioAdvantage? to work with madplay find on the usb hub or plugged in directly, but after reboot, device would not work. I have to unplug USB device and plug it back in to work.

to:

shm - I also found that the TurtleBeach? AudioAdvantage? would not work plugged into a hub, it was discovered when inserted, but would not output any audio, also noticed that madplay was ticking off too fast. I also discovered that the audo card was not recognized during initial boot, I have to unplug and plug the device back in to get it to work.

January 08, 2006, at 06:36 PM by shm --
Changed lines 139-141 from:

esalazar - I discovered with my TurtleBeach? AudioAdvantage? that I could not use the audio card plugged into my USB 2.0 hub. I had to plug it directly into the slug.

to:

esalazar - I discovered with my TurtleBeach? AudioAdvantage? that I could not use the audio card plugged into my USB 2.0 hub. I had to plug it directly into the slug.

shm - I got the TurtleBeach? AudioAdvantage? to work with madplay find on the usb hub or plugged in directly, but after reboot, device would not work. I have to unplug USB device and plug it back in to work.

December 28, 2005, at 03:39 PM by fozzy --
Added lines 83-84:

fozzy had trouble getting madplay to work with the ALSA packages. In the end the problem was the OSS compatability packages need to be installed, i.e: kernel-module-snd-mixer-oss and kernel-module-snd-pcm-oss. A simple thing, but something that could catch others.

December 22, 2005, at 02:05 PM by eFfeM --
Added lines 81-82:

eFfeM got audio playback and madplay running on openslug using a Philips PSC805? Aurilium card.

Added lines 115-129:

Tips if your hardware is not working

If your hardware is not working first check /proc/asound/cards to see if your card is actually present.

If so start alsamixer. Make sure the card is not muted and the sound volume ok. (mine is close to 100%).

As tests try:
speaker-test -c2 -Ddefault
and
aplay tst.wav (or another wav file to your choice)

If things are not working perhaps try on a regular linux pc first. Also I got some good help on irc (freenode: #alsa)
On my linux PC I had to use -Dplughw:1,0 as 0,0 was my internal soundcard.

December 03, 2005, at 08:01 PM by Brian Wood --
Added lines 31-32:

Well I tried both and mpg123 pegged CPU usage and still was slow and choppy, not useful at all. Madplay worked great and only used 2% - 3% of CPU. Brian Wood

December 01, 2005, at 03:04 PM by Dietmar Zlabinger -- mpg321 is not available as ipkg
Changed lines 29-30 from:

madplay and mpg321 use integer math to play MP3s and work well.

to:

madplay and mpg321 use integer math to play MP3s and work well. At the moment only madplay - not mpg321 - is available as ipkg.

November 26, 2005, at 06:26 PM by esalazar -- usb audio may need to be plugged into slug
Added lines 116-118:

esalazar - I discovered with my TurtleBeach? AudioAdvantage? that I could not use the audio card plugged into my USB 2.0 hub. I had to plug it directly into the slug.

October 29, 2005, at 09:43 AM by tman --
Changed lines 11-12 from:
to:
October 29, 2005, at 09:42 AM by tman --
Changed lines 8-12 from:
  • Music Storage
  • Player Software
  • User Interface
  • Sound Hardware
to:
Added lines 16-18:

You can store your music locally on the NSLU2 or mount it over the network using NFS or Samba.

Changed lines 33-34 from:

MPD (http://www.musicpd.org/), is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

to:

MPD, is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

Added line 39:

Changed line 64 from:

This is a standard USB-serial device and has a built in microcontroller to control the LCD. It has

to:

This is a standard USB serial device and has a built in microcontroller to control the LCD. It has

Changed lines 70-73 from:

Xbox accessories''

In Norway you can get a Xbox compatible remote and receiver for €25, which is quite cheap (Linux drivers available for the remote as well as game pads). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

to:

Xbox accessories

In Norway you can get an Xbox compatible remote and receiver for €25, which is quite cheap (Linux drivers available for the remote as well as game pads). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

Changed lines 77-78 from:

Any linux-supported usb sound adapter should work (see http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

to:

Any Linux supported USB sound adapter should work (see http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

October 29, 2005, at 09:38 AM by tman --
Changed lines 6-7 from:

The basic components needed are

to:

The basic components needed are:

Changed lines 19-22 from:

The slug's CPU is fast enough to decode MP3? and ogg-vorbis in real time, but the lack of floating point hardware means that not all players will give acceptable results.

to:

The slug's CPU is fast enough to decode MP3 and Ogg Vorbis in real time, but the lack of floating point hardware means that not all players will give acceptable results.

Changed lines 23-28 from:

mpg123 and XiMP3? can be built for the slug, but use floating point math, so are too slow anything but low bitrates and/or mono output.

madplay and mpg321 use integer math to play MP3s? and work well.

to:

mpg123 and XiMP3 can be built for the slug, but use floating point math, so are too slow for anything but low bitrates and/or mono output.

madplay and mpg321 use integer math to play MP3s and work well.

Changed lines 29-38 from:

MPD (http://www.musicpd.org/), is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

CPU usage on a TurboSlug peaks at less than 2% for MP3? files at all bitrates. OGG is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer fill.

to:

MPD (http://www.musicpd.org/), is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

CPU usage on a TurboSlug peaks at less than 2% for MP3 files at all bitrates. Ogg Vorbis is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer fill.

Changed lines 41-44 from:

The easiest option is to SSH to the slug, and run a command-line player or something like mp3blaster, possibly inside screen, so it stays running when you disconnect.

to:

The easiest option is to SSH to the slug, and run a command-line player or something like mp3blaster, possibly inside screen, so it stays running when you disconnect.

Changed lines 48-49 from:

could be used with a serial or usb-attached receiver.

to:

Could be used with a serial or USB attached receiver.

Changed lines 51-52 from:

might be an option with something like this

to:

Might be an option with something like this:

Changed lines 59-64 from:

It's a standard USB-serial device and is extremely intelligent. It has a sophisticated on-board firmware which can do scrolling, absolute positioned text and standalone bar graphs(!). It's fully USB powered, unlike the serial version,and pulls 200mA with the backlight on. Backlight off, it should take about 80mA.

to:

This is a standard USB-serial device and has a built in microcontroller to control the LCD. It has a sophisticated on-board firmware which can do scrolling, absolute positioned text and stand alone bar graphs(!). It is fully USB powered, unlike the serial version,and draws 200mA with the backlight on. With the backlight off, it draws roughly 80mA.

Changed lines 63-76 from:

A good oldtime serial terminal is an easy option, but bulky.

XBox? accessories''

In Norway you can get an extensive, xbox compatible remote and receiver for 25 euro, which is quite cheap (Linux drivers available for remote as well as game pad). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

to:

A good old time serial terminal is an easy option, but bulky.

Xbox accessories''

In Norway you can get a Xbox compatible remote and receiver for €25, which is quite cheap (Linux drivers available for the remote as well as game pads). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

Changed lines 71-82 from:

Any linux-supported usb sound adapter should work (see http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

Devices based on this chip http://www.qbik.ch/usb/devices/showdev.php?id=3132 have been used successfully.

to:

Any linux-supported usb sound adapter should work (see http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

Devices based on this chip http://www.qbik.ch/usb/devices/showdev.php?id=3132 have been used successfully.

Changed lines 82-95 from:

I (malfi) just bought a Creative Sound Blaster MP3+ USB. Sound quality is very good, it has golden RCA jacks and doesn't need a power supply. I can recommand this little device by all means. It is supported by the 'audio' modul in openslug. But a small problem I stumbled across is the output sampling rate. dmesg tells:
usbaudio: valid output sample rate 48000
mpd uses 41000 by default, so you have to add:
audio_output_format "48000:16:2"
to /etc/mpd.conf.
Furthermore the main mixer isn't called PCM, but 'Vol' at /dev/mixer. (Use aumix to figure it out.)
the mpd.conf should look like this:
# OSS Mixer
mixer_type "oss"
mixer_device "/dev/mixer"
mixer_control "Vol"


This usb-powered FM transmitter is an interesting option (not yet tried)

to:

I (malfi) just bought a Creative Sound Blaster MP3+ USB. Sound quality is very good, it has gold plated RCA jacks and doesn't need an external power supply. I can recommand this little device by all means. It is supported by the 'audio' module in OpenSlug. But a small problem I stumbled across is the output sampling rate.

dmesg output:

 usbaudio: valid output sample rate 48000

mpd uses 41000 by default, so you have to add:

 audio_output_format     "48000:16:2"

to /etc/mpd.conf.

Furthermore the main mixer isn't called PCM, but 'Vol' at /dev/mixer. (Use aumix to figure it out.)

The mpd.conf should look like this:

 # OSS Mixer
 mixer_type              "oss"
 mixer_device            "/dev/mixer"
 mixer_control           "Vol"

This USB powered FM transmitter is an interesting option (not yet tried)

Changed lines 107-117 from:

Sound adapters (as opposed to speakers) should draw very little current, so powering the off the slug's USB bus is not a problem. Glen measured 12mA idle, 49mA attached to powered speakers, 80mA with non-powered 2W speakers.

A different issue is noise from the power supply affecting the audio output. This has been seen(heard, even) with a cheap "C-Media" adapter and hard disk attached to the slug. Adding a 47uF capacitor to the power lines of the audio adapter stopped the noise completely. Better quality adapters will likely filters on their power lines built in and not have this problem.

to:

Sound adapters (as opposed to speakers) should draw very little current, so powering the off the slug's USB bus is not a problem. Glen measured 12mA idle, 49mA attached to powered speakers, 80mA with non-powered 2W speakers.

A different issue is noise from the power supply affecting the audio output. This has been seen (heard, even) with a cheap "C-Media" adapter and hard disk attached to the slug. Adding a 47uF capacitor to the power lines of the audio adapter stopped the noise completely. Better quality adapters will likely filters on their power lines built in and not have this problem.

October 25, 2005, at 07:55 PM by neptune -- Corrected and clarified mpg123 vs mpg321
Changed line 24 from:

mpg321 and XiMP3? can be built for the slug, but use floating

to:

mpg123 and XiMP3? can be built for the slug, but use floating

Changed lines 28-29 from:

madplay uses integer math to play MP3s? and works well.

to:

madplay and mpg321 use integer math to play MP3s? and work well.

September 29, 2005, at 06:18 AM by DaveHooper -- Corrected details of usb audio driver for Unslung!
Changed lines 91-94 from:

http://www.qbik.ch/). Unslung users will have to build the "audio.o" kernel module from source. OpenSlug users can install the "kernel-module-audio" package.

to:

http://www.qbik.ch/). OpenSlug users can install the "kernel-module-audio" package. Unslung users can also install the "kernel-module-audio" package, since that's available for unslung too! Unslung users will also need to install "kernel-module-soundcore", and insmod soundcore; insmod audio; to get it to work (e.g. maybe put this in your /opt/etc/init.d/S99mpd script)

August 25, 2005, at 12:25 AM by malfi --
Changed line 106 from:

I (malfi) just bought Creative Sound Blaster MP3+ USB. Sound quality is very good, it has golden RCA jacks and doesn't need a power supply. I can recommand this little device by all means. It is supported by the 'audio' modul in openslug. But small problem I stumbled across is the output sampling rate. dmesg tells:\\

to:

I (malfi) just bought a Creative Sound Blaster MP3+ USB. Sound quality is very good, it has golden RCA jacks and doesn't need a power supply. I can recommand this little device by all means. It is supported by the 'audio' modul in openslug. But a small problem I stumbled across is the output sampling rate. dmesg tells:\\

August 25, 2005, at 12:18 AM by Malfi --
Changed lines 117-118 from:
to:


\\

August 25, 2005, at 12:18 AM by Malfi -- small hints for sound blaster mp3+ usb
Added lines 106-117:

I (malfi) just bought Creative Sound Blaster MP3+ USB. Sound quality is very good, it has golden RCA jacks and doesn't need a power supply. I can recommand this little device by all means. It is supported by the 'audio' modul in openslug. But small problem I stumbled across is the output sampling rate. dmesg tells:
usbaudio: valid output sample rate 48000
mpd uses 41000 by default, so you have to add:
audio_output_format "48000:16:2"
to /etc/mpd.conf.
Furthermore the main mixer isn't called PCM, but 'Vol' at /dev/mixer. (Use aumix to figure it out.)
the mpd.conf should look like this:
# OSS Mixer
mixer_type "oss"
mixer_device "/dev/mixer"
mixer_control "Vol"

August 12, 2005, at 05:06 PM by alecv -- C-Media
Added lines 99-103:

Devices based on the C-Media USB Sound chips:

http://www.cmedia.com.tw/product/CM102.htm
http://www.cmedia.com.tw/product/CM106.htm
http://www.cmedia.com.tw/product/CM108.htm
July 29, 2005, at 10:25 AM by Glen Harris --
Changed lines 40-41 from:

CPU usage on a TurboSlug is less than 2% for MP3? files at all bitrates. OGG is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer.

to:

CPU usage on a TurboSlug peaks at less than 2% for MP3? files at all bitrates. OGG is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer fill.

July 29, 2005, at 10:23 AM by Glen Harris -- MPD load measurements
Added lines 40-41:

CPU usage on a TurboSlug is less than 2% for MP3? files at all bitrates. OGG is similar except for q7 to q10, which briefly peak at 3.8%. Measurements were made with top, and the test samples were played in a loop so as not to measure the initial output buffer.

July 28, 2005, at 08:20 PM by Michael-Luke Jones -- Spelling
Changed line 77 from:

for 25 euro, which is quote cheap (Linux drivers available for remote

to:

for 25 euro, which is quite cheap (Linux drivers available for remote

July 27, 2005, at 09:19 AM by alecv --
Added lines 97-98:

http://www.qualitycables.com/Category.cfm?catid=121&AZX=usb-digital

July 18, 2005, at 09:50 PM by HannesReich --
Changed lines 22-23 from:

Players

to:

Players

Changed lines 30-31 from:

MPD

to:

MPD

July 18, 2005, at 09:17 PM by HannesReich -- added info scraped from mailing list thread
Changed lines 2-4 from:

wants to summarise what's needed to do that, based on continuing experiments and some comments on the mailing list. Work in progress!

to:

tries to summarise what's needed to do that. Lots of this is quoted directly from mailing list posts by Glen Harris, Inge Bjørnvall Arnesen, tman and others.

Changed lines 12-17 from:

Music Storage

Player Software

Performance

to:

Music Storage

Player Software

Performance

Changed lines 22-28 from:

Players

Basic command-line players

mpg321 can be built for the slug, but uses floating point math, so it's too slow anything but low bitrates and/or mono output.

to:

Players

mpg321 and XiMP3? can be built for the slug, but use floating point math, so are too slow anything but low bitrates and/or mono output.

Changed lines 30-31 from:

MPD

to:

MPD

Changed lines 40-41 from:

User Interface

to:

User Interface

Changed lines 44-45 from:

Remote control from a PC

to:

Remote control from a PC

Changed lines 52-56 from:

Hardware interfaces

Infrared Remotes could be used with a serial or usb-attached receiver.

USB Joysticks might be an option with something like this

to:

Hardware interfaces

Infrared Remotes

could be used with a serial or usb-attached receiver.

USB Joysticks

might be an option with something like this

Changed lines 61-66 from:

USB LCD display

A Serial terminal is an easy option.

Sound Hardware

to:

USB LCD display

http://www.cwlinux.com/eng/products/products_cw12232.php

It's a standard USB-serial device and is extremely intelligent. It has a sophisticated on-board firmware which can do scrolling, absolute positioned text and standalone bar graphs(!). It's fully USB powered, unlike the serial version,and pulls 200mA with the backlight on. Backlight off, it should take about 80mA.

Serial terminal

A good oldtime serial terminal is an easy option, but bulky.

XBox? accessories''

In Norway you can get an extensive, xbox compatible remote and receiver for 25 euro, which is quote cheap (Linux drivers available for remote as well as game pad). It is basically USB, but uses a different connector (adapters are available if you don't wanna solder). With the engineers best friend, the glue gun, some soldering, it might even reach "girlfriend approval standard". You may also look at the LCD solutions for Xbox. It is not that the Xbox equipment is that cool, but the volume is high, so the prices are low. Linux drivers are generally available too.

Sound Hardware

Any linux-supported usb sound adapter should work (see http://www.qbik.ch/). Unslung users will have to build the "audio.o" kernel module from source. OpenSlug users can install the "kernel-module-audio" package.

Devices based on this chip http://www.qbik.ch/usb/devices/showdev.php?id=3132 have been used successfully.

This usb-powered FM transmitter is an interesting option (not yet tried) http://www.myfmstation.com/html/linex_usb.html

Power Supply concerns

Sound adapters (as opposed to speakers) should draw very little current, so powering the off the slug's USB bus is not a problem. Glen measured 12mA idle, 49mA attached to powered speakers, 80mA with non-powered 2W speakers.

A different issue is noise from the power supply affecting the audio output. This has been seen(heard, even) with a cheap "C-Media" adapter and hard disk attached to the slug. Adding a 47uF capacitor to the power lines of the audio adapter stopped the noise completely. Better quality adapters will likely filters on their power lines built in and not have this problem.

July 18, 2005, at 06:10 PM by HannesReich -- quick outline
Added lines 1-64:

The slug can be turned into a network-attached audio player. This page wants to summarise what's needed to do that, based on continuing experiments and some comments on the mailing list. Work in progress!

The basic components needed are

  • Music Storage
  • Player Software
  • User Interface
  • Sound Hardware

Music Storage

Player Software

Performance

The slug's CPU is fast enough to decode MP3? and ogg-vorbis in real time, but the lack of floating point hardware means that not all players will give acceptable results.

Players

Basic command-line players

mpg321 can be built for the slug, but uses floating point math, so it's too slow anything but low bitrates and/or mono output.

madplay uses integer math to play MP3s? and works well.

MPD

MPD (http://www.musicpd.org/), is a "backend" player supporting many formats that is controlled by a TCP connection. It includes some playlist management features. See BuildMpd for details on getting it running.

Numerous MPD front-ends exist, and some should be easy to get running on the slug. The control connection can be protected with a password.

User Interface

We want some way to control and see the status of the player.

Remote control from a PC

The easiest option is to SSH to the slug, and run a command-line player or something like mp3blaster, possibly inside screen, so it stays running when you disconnect.

With MPD, any of the available front-ends can be run on a remote PC.

Hardware interfaces

Infrared Remotes could be used with a serial or usb-attached receiver.

USB Joysticks might be an option with something like this http://aaronbock.net/software/mpcstick/

USB LCD display

A Serial terminal is an easy option.

Sound Hardware