Dead silent dedicated Linux music server for USB DAC's.

0 Members and 1 Guest are viewing this topic. Read 266526 times.

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #100 on: 24 Sep 2010, 07:09 pm »
Hi ebag4,

Does Ubuntu see your USB DAC in the sound configuration applet?
Yes it does, however when I pick it and run test a window pops up and says:

audiotestsrc wave=sine freq=512 ! audioconvert !
audioresample ! grconfaudiosink profile=music:
Could not open audio device for playback

I have never had an issue getting it to play in Windows.  I was thinking I had an issue in my MPD configuration files but after looking at this more closely I am thinking the issue may lie elsewhere.

Best,
Ed

edit:when I run asoundconf list I do not see my DAC, only the on-board sound and the word default
« Last Edit: 24 Sep 2010, 08:31 pm by ebag4 »

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #101 on: 24 Sep 2010, 10:21 pm »
Yes it does, however when I pick it and run test a window pops up and says:

audiotestsrc wave=sine freq=512 ! audioconvert !
audioresample ! grconfaudiosink profile=music:
Could not open audio device for playback

I have never had an issue getting it to play in Windows.  I was thinking I had an issue in my MPD configuration files but after looking at this more closely I am thinking the issue may lie elsewhere.

Best,
Ed

edit:when I run asoundconf list I do not see my DAC, only the on-board sound and the word default

Can you paste you mpd.conf file here? Do you have alsa-utils installed? If so, what do you see when you type 'aplay -l" with your USB DAC plugged in? Is the DAC 16 bit or 24 bit? Also, what version of mpd are you (type mpd --version) running?

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #102 on: 24 Sep 2010, 11:30 pm »
Can you paste you mpd.conf file here? Do you have alsa-utils installed? If so, what do you see when you type 'aplay -l" with your USB DAC plugged in? Is the DAC 16 bit or 24 bit? Also, what version of mpd are you (type mpd --version) running?

Thanks Nick, I appreciate any insight you can offer.  My Havana is a 16 bit DAC but it has never had a problem playing 24 bit files.

EDIT: I decided to let Ubuntu do an upgrade that it was nagging about.  MPD and Sonata still work as they were before, however when I go to the Sound preferences panel the whole setup has changed.  I no longer see my DAC there, now all that is there is a internal audio choice and a Turtle Beach card that is not even installed.

EDIT 2: Ubuntu is seeing my USB DAC as the Turtle Beach unit but it doesn't call it a USB DAC.

Best,
Ed

Here is what aplay -l shows:
root@linux:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB Sound Device        ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@linux:~#

and this is my mpd.conf:

# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.

######################## REQUIRED PATHS ########################
# You can put symlinks in here, if you like. Make sure that
# the user that mpd runs as (see the 'user' config parameter)
# can read the files in this directory.
music_directory      "/home/ed/Music/nmt"
playlist_directory   "/var/lib/mpd/playlists"
db_file         "/var/lib/mpd/tag_cache"
log_file      "/var/log/mpd/mpd.log"
error_file      "/var/log/mpd/errors.log"
################################################################


######################## OPTIONAL PATHS ########################
#
# If you wish to use mpd --kill to stop MPD, then you must
# specify a file here in which to store MPD's process ID.
#
pid_file      "/var/run/mpd/pid"
#
# If specified, MPD will save its current state (playlist,
# current song, playing/paused, etc.) at exit.  This will be
# used to restore the session the next time it is run.
#
state_file      "/var/lib/mpd/state"
#
################################################################


######################## DAEMON OPTIONS ########################
#
# If started as root, MPD will drop root privileges and run as
# this user instead.  Otherwise, MPD will run as the user it was
# started by.  If left unspecified, MPD will not drop root
# privileges at all (not recommended).
#
user                            "mpd"
#
# The address and port to listen on.
#
bind_to_address                 "any"
port                            "6601"
#
# If the address is a path, then a UNIX domain socket will be
# created instead of listening on a TCP port.
#
#bind_to_address                 "/var/run/mpd/sock"
#
# Controls the amount of information that is logged.  Can be
# "default", "secure", or "verbose".
#
#log_level                       "default"
#
################################################################


########################### ZEROCONF ###########################
#
# If yes, service information will be published with Zeroconf.
#
#zeroconf_enabled                "yes"
#
# The service name to publish.  This name should be unique on
# your local network.
#
#zeroconf_name                   "Music Player"
#
################################################################


########################## PERMISSIONS #########################
#
# MPD can require that users specify a password before using it.
# You may specify one ore more here, along with what users who
# log in with that password are allowed to do.
#
#password                        "password@read,add,control,admin"
#
# Specifies what permissions a user who has not logged in with a
# password has.  By default, all users have full access to MPD
# if no password is specified above, or no access if one or
# more passwords are specified.
#
#default_permissions             "read,add,control,admin"
#
################################################################


########################## AUDIO OUTPUT ########################
#
# MPD supports many audio output types, as well as playing
# through multiple audio outputs at the same time.  You can
# specify one or more here.  If you don't specify any, MPD will
# automatically scan for a usable audio output.
#
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
# for examples of other audio outputs.
#
# An example of an ALSA output:
#
audio_output {
         type                    "alsa"
         name                    "HAVANA"
         device                  "hw:0,0"     # optional
#        format                  "44100:16:2" # optional
#}
#
# An example of an OSS output:
#
#audio_output {
#        type                    "oss"
#        name                    "My OSS Device"
#        device                  "/dev/dsp"   # optional
#        format                  "44100:16:2" # optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#        type                    "shout"
#        encoding                "ogg"                   # optional
#        name                    "My Shout Stream"
#        host                    "localhost"
#        port                    "8000"
#        mount                   "/mpd.ogg"
#        password                "hackme"
#        quality                 "5.0"
#        bitrate                 "128"
#        format                  "44100:16:1"
#        user                    "source"                # optional
#        description             "My Stream Description" # optional
#        genre                   "jazz"                  # optional
#        public                  "no"                    # optional
#        timeout                 "2"                     # optional
#}
#
# An example of a null output (for no audio output):
#
#audio_output {
#        type                    "null"
#        name                    "My Null Output"
#}
#
# Force all decoded audio to be converted to this format before
# being passed to the audio outputs.
#
#audio_output_format             "44100:16:2"
#
# If MPD has been compiled with libsamplerate support, this
# specifies the sample rate converter to use.  Possible
# values can be found in the mpd.conf man page or the
# libsamplerate documentation.
#
#samplerate_converter            "Fastest Sinc Interpolator"
#
################################################################


############################# MIXER ############################
#
# MPD needs to know what mixer settings to change when you
# adjust the volume.  If you don't specify one here, MPD will
# pick one based on which ones it was compiled with support for.
#
# An example for controlling an ALSA mixer:
#
mixer_type                      "alsa"
mixer_device                    "default"
mixer_control                   "PCM"
#
# An example for controlling an OSS mixer:
#
#mixer_type                      "oss"
#mixer_device                    "/dev/mixer"
#mixer_control                   "PCM"
#
# If you want MPD to adjust the volume of audio sent to the
# audio outputs, you can tell it to use the software mixer:
#
#mixer_type                      "software"
#
################################################################


######################### NORMALIZATION ########################
#
# Specifies the type of ReplayGain to use.  Can be "album" or
# "track".  ReplayGain will not be used if not specified.  See
# <http://www.replaygain.org> for more details.
#
#replaygain                      "album"
#
# Sets the pre-amp used for files that have ReplayGain tags.
#
#replaygain_preamp               "0"
#
# Enable on the fly volume normalization.  This will cause the
# volume of all songs played to be adjusted so that they sound
# as though they are of equal loudness.
#
#volume_normalization            "no"
#
################################################################


########################### BUFFERING ##########################
#
# The size of the buffer containing decoded audio.  You probably
# shouldn't change this.
#
#audio_buffer_size               "2048"
#
# How much of the buffer to fill before beginning to play.
# Increase this if you hear skipping when changing songs.
#
#buffer_before_play              "10%"
#
# Similar options for the HTTP stream buffer.  If you hear
# skipping while playing HTTP streams, you may wish to increase
# these.
#
#http_buffer_size                "128"
#http_prebuffer_size             "25%"
#
################################################################


########################### HTTP PROXY #########################
#
# Specifies the HTTP proxy to use for playing HTTP streams.
#
#http_proxy_host                 "proxy.isp.com"
#http_proxy_port                 "8080"
#http_proxy_user                 "user"
#http_proxy_password             "password"
#
################################################################


############################# LIMITS ###########################
#
# These are various limits to prevent MPD from using too many
# resources.  You should only change them if they start
# restricting your usage of MPD.
#
#connection_timeout              "60"
#max_connections                 "5"
#max_playlist_length             "16384"
#max_command_list_size           "2048"
#max_output_buffer_size          "8192"
#
################################################################


###################### CHARACTER ENCODINGS #####################
#
# If file or directory names do not display correctly, then you
# may need to change this.  In most cases it should be either
# "ISO-8859-1" or "UTF-8".  You must recreate your database
# after changing this (use mpd --create-db).
#
filesystem_charset              "UTF-8"
#
# The encoding that ID3v1 tags should be converted from.
#
id3v1_encoding                  "UTF-8"
#
################################################################


######################### OTHER OPTIONS ########################
#
# Try disabling this if you have MP3s which appear to end
# abruptly.  If this solves the problem, it is highly
# recommended that you fix your MP3s with vbrfix (available from
# <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point you can re-enable support for gapless MP3 playback.
#
#gapless_mp3_playback             "yes"
#
# Enable this if you wish to use your MPD created playlists in
# other music players.
#
#save_absolute_paths_in_playlists "no"
#
# A list of tag types that MPD will scan for and make available
# to clients.
#
metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
#
################################################################

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #103 on: 25 Sep 2010, 02:37 am »
Thanks Nick, I appreciate any insight you can offer.  My Havana is a 16 bit DAC but it has never had a problem playing 24 bit files.

If your DAC has a 16 bit chip then ALSA is down-sampling 24 bit files on the fly to 16 bit before they get sent to the DAC.


Here is what aplay -l shows:
root@linux:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: default [USB Sound Device        ], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@linux:~#


Your USB DAC, as per aplay -l above,  is card 1, device 0. And you need to tell MPD that. Below in your mpd.conf you have hw:X,Y where both are set to zero, i.e., card 0, device 0. Change it to what is listed in aplay -l, i.e., hw:1,0, also known as card 1, device 0.

After you do this or make any change to mpd.conf you must restart mpd via /etd/init.d/mpd restart.

Let me know of that helps.


and this is my mpd.conf:

# An example of an ALSA output:
#
audio_output {
         type                    "alsa"
         name                    "HAVANA"
         device                  "hw:0,0"     # optional
#        format                  "44100:16:2" # optional
#}
#
##################
« Last Edit: 6 Oct 2010, 08:27 pm by nyc_paramedic »

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #104 on: 25 Sep 2010, 02:52 am »
Nick, you ROCK!  Thanks for the explanation and the fix, much appreciated.  Applied your fix and it is now cranking out tunes via USB.

Best,
Ed

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #105 on: 25 Sep 2010, 04:03 am »
Nick, you ROCK!  Thanks for the explanation and the fix, much appreciated.  Applied your fix and it is now cranking out tunes via USB.

Keep one thing in mind for the future: If you do upgrade to a true 24bit USB DAC and you're using a version of mpd that is *prior* to 0.16, you have to change the "hw" part in hw:X,Y to plughw:X,Y

mpd versions 0.15 and older do not support 24 bit packed samples, so using plughw will "pad" your 24 bit files with zeroes, if I remember correctly. 'Tis not the same as re-sampling.

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #106 on: 8 Oct 2010, 03:14 pm »
I am about to dive in.  My Alix, power supply (ultimately I plan to use my Optima Battery), case and CF card should be here today.  I will probably be hitting you up for troubleshooting Nick.  I just received my Tranquility DAC last week so I am anxious to hear the pairing.

Best,
Ed

jrebman

  • Full Member
  • Posts: 2778
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #107 on: 8 Oct 2010, 03:30 pm »
 I just received my Tranquility DAC last week so I am
anxious to hear the pairing...

Ed, I'm also looking forward to your impressions on this pairing.

Good luck,

Jim

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #108 on: 8 Oct 2010, 06:02 pm »
... Nick.  I just received my Tranquility DAC last week so I am anxious to hear the pairing.

No problem.

TRADERXFAN

  • Full Member
  • Posts: 1060
  • Trillions will vanish... it's a debt blackhole.
    • GALLERY
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #109 on: 8 Oct 2010, 06:22 pm »
As an update: I have had some trouble getting NFS working. So hope to have that fixed soon, next week...

I tried to use nfs from mac mini with osx as server, to the alix as client, but gave up. So I wiped the apple mini and installed debian. That seems to work, but editing my mpd.conf file is not cooperating.

-Tony

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #110 on: 8 Oct 2010, 06:26 pm »
As an update: I have had some trouble getting NFS working. So hope to have that fixed soon, next week...

I tried to use nfs from mac mini with osx as server, to the alix as client, but gave up. So I wiped the apple mini and installed debian. That seems to work, but editing my mpd.conf file is not cooperating.

What trouble are you having with mpd.conf?

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #111 on: 8 Oct 2010, 06:58 pm »
Received my Alix, this thing is tiny!

Unfortunately the Voyage Linux site is not responding.  Nick if you or Jim or Tony could email the Voyage file I need I would appreciate it.  I do have a Voyage linux 6.5 iso file but I don't know if I can use that or not.  I seem to be getting off to a great start!  :lol:

Best,
Ed

TRADERXFAN

  • Full Member
  • Posts: 1060
  • Trillions will vanish... it's a debt blackhole.
    • GALLERY
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #112 on: 8 Oct 2010, 07:00 pm »
What trouble are you having with mpd.conf?

Well, the file was blank. I used vi to edit. I followed the script on the blog of what it should say. I typed in all of the the non "#" areas that I needed, but it won't write to the file. Tried several times, after making sure the cf was mountrw. I checked that I was able to do other things on the card. Now my plan is to make a new file, write the info to it, then make it the mpd.conf file. Hopefully that does it. If not, going ot try and remove the mpd and then do a new install of it.

-Tony

TRADERXFAN

  • Full Member
  • Posts: 1060
  • Trillions will vanish... it's a debt blackhole.
    • GALLERY
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #113 on: 8 Oct 2010, 07:03 pm »
Received my Alix, this thing is tiny!

Unfortunately the Voyage Linux site is not responding.  Nick if you or Jim or Tony could email the Voyage file I need I would appreciate it.  I do have a Voyage linux 6.5 iso file but I don't know if I can use that or not.  I seem to be getting off to a great start!  :lol:

Best,
Ed

Are you following the instructions from the blog?
http://cheap-silent-usb-linux-music-server.blogspot.com/

I printed it out.
then I took a red pen and numbered the steps, starting from the bottom, but you should follow what Nick says. I had to alter what I did a bit from that blog.
-Tony

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #114 on: 8 Oct 2010, 07:07 pm »
Hi Tony,
I tried the link from that blog as well as a gogle search, they both sent me to the same place.  Unfortunately the site is not responding.

Best,
Ed

TRADERXFAN

  • Full Member
  • Posts: 1060
  • Trillions will vanish... it's a debt blackhole.
    • GALLERY
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #115 on: 8 Oct 2010, 07:19 pm »
PM'd you my email. Email me and i will send you the blog info and nick's advice on what to do a little different.

-Tony

jrebman

  • Full Member
  • Posts: 2778
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #116 on: 8 Oct 2010, 07:20 pm »
Ed, sorry, I don't have it.

-- Jim

ebag4

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #117 on: 8 Oct 2010, 07:55 pm »
Tony, I received your email, thanks.

Jim, no worries, thanks anyway.

Nick, can I use the instructions from the blog if I am using Ubuntu instead of Debian?  I was able to get the CF card formatted!! WOOHOO! :lol:

BTW, Nick, if you have access to the Voyager tar file and can email it to me please let me know, I wil send you my email address.  The Voyager HK site may be back up later but I am unable to bring it up right now.

Best,
Ed

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #118 on: 8 Oct 2010, 09:17 pm »
Tony, I received your email, thanks.

Jim, no worries, thanks anyway.

Nick, can I use the instructions from the blog if I am using Ubuntu instead of Debian?  I was able to get the CF card formatted!! WOOHOO! :lol:

BTW, Nick, if you have access to the Voyager tar file and can email it to me please let me know, I wil send you my email address.  The Voyager HK site may be back up later but I am unable to bring it up right now.

The Voyage site is down as the maintainer is moving to a different server.

The instructions are not really valid for Ubuntu without midification. It's vey specific to Voyage Linux. The Voyage Linux README and/or install script will take care of formatting the CF card for you.

I'm at work now, but I'll see if I have the .tar file when get home tonight --around midnight.

TRADERXFAN

  • Full Member
  • Posts: 1060
  • Trillions will vanish... it's a debt blackhole.
    • GALLERY
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #119 on: 8 Oct 2010, 09:20 pm »
Once you are ssh'd into the Alix, the formatting directions should all be the same. The configuration of the desktop computer are the parts that are likely to change... [although I am no help with any of that]