Issues with ALIX / Voyage MPD

Natural Sound

New member
I finally got around to hooking up my Bottlehead DAC and I'm having problems with the DAC detecting the correct sample rate. Please keep in mind that my system has been working flawlessly for a couple of years with all sample rates using a Micromega MyDAC.

It should also be noted that I've tried several boot up and USB connection sequences. MPD likes to see the DAC as being present during boot up or its not happy.

Here are the details.
44.1 and 88.2 and 176 files play fine
96 files show 88.2 and sound slow
192 files show as 176 and sound slow

Hardware PC Engines ALIX, USB Cable, supplied Supra. Also tried two other cables and Bottlehead DAC.
Software: Voyage Linux MPD Version: 0.9.5 (latest version)

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: BHDACV1 [XMOS Bottlehead DAC BHDACV1], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

mpd.conf
audio_output {
        type            "alsa"
        name            "Bottlehead DAC"
        device          "hw:0,0"        #optional
#      format          "44100:16:2"    optional
#      mixer_device    "default"        optional
#      mixer_control  "PCM"            optional
#      mixer_index    "0"              optional
dsd_usb        "yes"
}

NOTE: I tried to # out dsd_usb        "yes" then restarting MPD and it didn't make any difference.

Here is an example of a 96 bitstream that the Bottlehead DAC sees as 88.2.

# cat /proc/asound/card0/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 96000 (96000/1)
period_size: 12000
buffer_size: 48000

Here is an example of a 192 bitstream that the Bottlehead DAC sees as 176.

# cat /proc/asound/card0/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 192000 (192000/1)
period_size: 24000
buffer_size: 96000

If there are any Linux guru's out there that can help I'd appreciate it.
 
Could you please post the contents of the stream0 file while playing a 48 family file. It will most likely be at:
/proc/asound/card0/stream0

this is assuming the BH DAC is card0.

On MY system at
/proc/asound
is a BHDACV1  directory, this takes you right there.

Is there any way you can test this over S/PDIF (optical or coax)? I would like to determine if it is a USB interface issue or not.

If you are using mpd could you try shutting down mpd and trying directly with aplay?

If you have a wave file that has a 48 family sample rate you can play it direct with:

aplay -D hw:0,0 <wave_file_name>

(this is assuming card0)

You can also try:
aplay -D plughw:0,0 <wave_file_name>

Thanks,

John S.
 
I am having a similar problem with my Mac mini.  I have a 192 flac file which the DAC is showing as 176 and plays wrong.
The weird thing is that the first time I played the file it played correct and then I switched to a file with a different sample rate and when I came back to the 193 file it was showing a 176.  I am using hte supra cabke and Jriver for mac as the the media player.  I restarted the computer and still get the 192 file playing at 176

Debra
 
I noticed this one or twice when I was first using the DAC. Now I can't repeat it and I'm switching between  352, 176, 48, 44. I've done probably 20 combinations with these. This is on a mac with amarra.

-Dave
 
Just want to assure you folks that we are on this. I will be working on reproducing the issue in the lab today.
 
When I got in to the office we reproduced a facsimile of the issues reported here on my Mac Mini. What we did was take a DAC that had been running properly on all sample rates for an hour or two on USB. I powered it down and disconnected the USB cable. Then I switched the selector to SPDIF. Then I powered it back up and plugged in the USB cable. The Mini was left on, with Amarra  running (not playing music, just open) the whole time.

With the DAC still switched to SPDIF, the DAC display read 44.1. When I switched it to USB it read 352k. Audio MIDI settings on the Mac showed 384k. Playing any 48K multiple sample rate would only run at a multiple of 44.1K -  i.e., 96K ran at 88.2k, 192K at 176K, 48K at 44.1K, etc.

Solution:

So I unplugged the USB cable from the DAC, powered it down.
Shut down the Mac.
Made sure DAC was set to USB.
Connected USB cable to DAC.
Powered DAC up.
Booted up Mac.

DAC shows 384K, or whatever the last Audio MIDI setting was, and functions properly.

Please try this exact undo/redo sequence and let us know if it resolves the issue. I'm afraid I don't have a Linux box here, but I'm sure John is working to reproduce the issue on a Linux box.
 
Guys,

You don't get this kind of service if you buy a DAC from Wadia, Music Fidelity, Sim Audio, Elgar, Manley (sorry Eveanna), PS Audio or any of the other guys.

There is a reason to be here and this is it!
 
Just to add a few notes about the reboot procedure:

The DAC was displaying 44.1 when powered up while the computer was off, and during the first phase of the computer's booting. When the Mac was about 3/4 way through loading the kernel, the display switched to 384. This computer is set up to automatically boot into the sole user account. As the account loaded (i.e. Finder was showing, but not yet interactive) the sample rate displayed changed to 48, which is where Dan had left Audio MIDI Setup before the shutdown. As stated before, from here on out the DAC behaved normally.
 
For the sake of completeness I should also add that I used Amarra 2.4.3 for this test. I had been using the latest version and it works great, except for the fact that I had to reboot Amarra every time I switched to a different DAC as I checked them out. 2.4.3 seems to be able to handle hot switching the DACs - something that nobody but me is gonna be doing.
 
OK, more data -

We were able to reproduce the issue on another DAC. We did exactly the same sequence to refresh it. This time it did not take.

So we left the Mac booted up, and powered down and disconnected the DAC. We waited 12 minutes, then powered up the DAC and connected the cable. Problem solved, the display went right to 384 as expected.

This would tend to indicate that there is something either in the DAC or the Mac that needs a little time to reset.
 
I really want to find out if anybody has this issue with S/PDIF (optical or coax).

Also it might be related to temperature inside the DAC case. Does it only happen when the DAC has been running for several hours?

Does it happen right after power up, or does the DAC work fine for awhile, then when you change rates it gets it wrong?

I cannot make this happen on mine,
some differences are: I don't have a Mac but I do have windows and several linuxes. My Dac is not in the official case, it is screwed into a piece of plywood, thus might be running cooler than when in a case.

The sequence of numbers on the display is normal. If the DAC is on before the computer it will show 44.1. During the boot of the computer when DAC first connects to the OS it gets set to its maximum rate, then when boot is finished and applications start up it will show the rate of the application.

When the selector switch is set to S/PDIF the USB receiver is still active and can connect to your computer, the switch is basically switching between the output of the two receivers.



Thanks,

John S.

 
Since we have been encountering this issue during the burn-in cycle, they have generally been warmed up. We may have seen it on a cooled unit, but I am not sure either way.

When the DAC was glitching on USB, we plugged TOSLINK in from a BluRay player (TOSLINK is dead on that computer) and were able to get 44.1 and 48 to display properly. We did not try the coax but we can if that would be useful. When switched back to USB, only the 44.1 derived rates were working.

The problem will manifest immediately when the issue is present. It seems that once it is running OK, it stays fine, but this has not been extensively tested.

Also, during our last test, when we did a full shutdown/start-up but it didn't resolve the issue, the display showed 352 when the OS loaded.
 
For me it seemed like it happened in the first 24 hours of being powered up. Perhaps, even the
first 6 hours. Since then I've left it powered up continuously for 3 days and have not seen the issue.

Thanks,
Dave
 
The sample rate input switch glitch seems to happen right at startup on USB for us here. We have not seen it happen with SPDIF or TOSLINK. We have seen an SPDIF connection quit a couple times - not a sample rate glitch, but a no play situation. We aren't sure if that is source related or not, and it seems that it is easily reset with a disconnect/reconnect of the power to the DAC. We have not seen any odd behavior with TOSLINK.

We are letting one DAC cool down now, to see if we can reproduce the glitch on a cold DAC.
 
John,
I'm using the SPDIF (optical), with an older CD player.
CD player OFF->ON, DAC OFF->ON: 44.1
or
DAC OFF->ON, CD Player OFF->ON: 44.1

CD player ON->OFF, DAC ON: 44.1 or 192, 192 most of the time
CD Player ON, DAC ON->OFF->ON: 44.1
CD player OFF->ON, DAC ON: 44.1

I'm glad to run any other test. I do have win7 and a couple different flavors of Linux. I haven't tried a USB connection yet.

Craig

 
Just to clarify, the issue is not directly related what the display reads at startup. That's going to depend upon what it's connected to (or not connected to). The issue is that the 48K based sample rates are not available via USB at times, and that seems to require a reboot of the DAC.

We have been able to reproduce the glitch on both warm and cold DACs fed by a MAC mini. The consistent sequence for creating the glitch is switch input to SPDIF, power up DAC, plug in USB cable, then switch to USB input. The consistent sequence for fixing it is power down DAC, wait at least two minutes. Be sure input set to USB first, USB cable plugged in, power up DAC.
 
I have been unable to duplicate this issue on my Linux box.

Yesterday I had the power go out for about 4 hours. I abandoned ship so when it came back up, everything booted up on its own and I did not play anything. Tonight, after reading this thread, I looked and the DAC read 384.

I played a 96k file and all correct. I switched back and forth between 96, 44.1, 88.2 and 192k files, sometimes to the same file sometimes to another file of the same sample rate. some are wav, some are FLAC.

I get the correct sample rate displayed in every case...John   
 
The "switched to SPDIF, plugged into USB" glitch is reproducible on Windows, and solved the same way, power down, cable into USB, switch input to USB, wait for a minute or two and power up.
 
Back
Top