Sunday, August 19, 2018

Mytek Brooklyn and Manhattan - DSD with Ubuntu



This article is about getting Mytek DAC's to decode DSD with Ubuntu, but you'll probably learn a little even if that's not your distro or not your DACs.  Further down we also talk about integrating Squeezelite and the Logitech Media Server.

Prerequisites

For those of you more technically inclined, here is what you need to get DSD direct working with Mytek DACs and Ubuntu:

  • Linux Kernel 4.18.3 - For sure 4.4x. and 4.15.x do not work. This probably means you must be at Ubuntu 18. 
  • Logitech Media Server 7.9.x
  • LMS plugin DSDPlay 1.0
  • Squeezelite 1.9 compiled with DSD option. 
Currently Ralph's squeezelite download does NOT include this, and the Ubuntu distro (maddeningly) only supports DoP.  They do not work.

DSD vs. DoP

There are two common ways to send DSD data to an external DAC. One is a wrapper around the DSD data, so it looks like PCM, but it's interpreted as DSD. That is DoP. The problem with this approach is that the total amount of data sent over the wire (USB or S/PDIF) is quite high. So much so that it will saturate USB 2.0 at DSD 128. If that's all you need, then you can skip this article. DoP works in Ubuntu 16LTS with Squeezelite 1.8 and Logitech Media Server 7.9.x. So I imagine if you have other music player software that is DSD aware it will work the same way. 


Linux and DSD Direct

If yo want to playback quad DSD you have to go direct via USB. The ability to do this in Linux overall has been stupid-hard unless you were running some special builds like for the Rasperry Pi and perhaps others who have newer kernel builds or special patches applied by the distro. It's not only stupid-hard it's very device specific. Despite the protocol being practically the same for all DSD DAC's with USB, support for each device was up to the kernel builders. 

The root of the problem is what code decides whether the DAC supports a particular format. You would think this would be a simple handshaking thing, like this:

ALSA: Yo, are you a DAC?
Mytek: Yep
ALSA: Cool. Do you do quad DSD?
Mytek: Sure do!
Super. Here you go..."

However at least in Linux this is pretty stupid. The detection of whether or not the device is DSD compatible is not on the DAC but baked into the ALSA / USB drivers and these in turn are built into the kernel, so the conversation is more like this:

ALSA: Yo, what's your name?
DAC: Mytek Manhattan
ALSA So, no DSD support.
DAC: Wait a moment!
ALSA: Nope, not on my list. So DoP for you!  
If you wanted to add or modify the settings for a particular DAC you have to patch the kernel, which also makes keeping up with the latest security fixes stupid hard. There's no nifty "DSD_DAC_list.conf" file you can edit and update. At least not yet. Further, it is certainly possible that a new DAC won't be in the device list, and you'll have to wait for the kernel and distro maintainers to update their code. << sigh >>

But for now, all Mytek DACs should be working.


DSD Direct with Ubuntu

Arrival of Linux 4.18.3

After upgrading my Ubuntu 16LTS to 18LTS I was left with Linux kernel 4.15.x which did not work. After trying a couple of intermediate kernel builds, it was finally 4.18.3 which finally worked without patching. You may find an earlier version that works as well, but 4.18.3 is what worked for me. Fortunately upgrading your kernel above the distro default is now fairly easy and painless. You can read more here:

https://linuxhint.com/upgrade-kernel-ubuntu-1804/

I am not sure if you must have 18LTS for these instructions to work, so if you are curious and can get kernel 4.18.3 working on an earlier Ubuntu version that may be worthwhile.

If you are using a DSD DAC besides a Mytek, it is possible it was already in the driver list, in which case an earlier kernel will work, or that it hasn't been added yet.

Are you done?

If you are not going to use LMS or squeezelite then you are done with the information above. However if LMS is your music server of choice, what follows will help.

Logitech Media Server Settings

I'm using 7.9.1. There are a couple of things to pay attention to:

  1. Enable DSDPlayer (1.0) in the plugins. 
  2. Make sure you have disabled synchronized playback! LMS won't synch with different playback formats. So if you have a Squeezebox it will go down to a mutually compatible PCM format. 

Install Squeezelite 

There are three known sources for squeezelite binaries, but two have issues.

Ubuntu distro : Not up to 1.9 yet. Only has DoP support.
Ralph's binaries : It IS up to 1.9, but not compiled with DSD settings.
My repo : At 1.9, has all the settings of the Ubuntu Repo which includes DSD.

I suggest you install SL from the repo first, and then replace the binary. Detailed instructions are here:

http://inatinear.blogspot.com/2016/08/ubuntu-mytek-brooklyn-dsd-setup-guide.html

Once that is working and playing music then if it is not at 1.9 already you have two choices. Get the binary I built from Sourceforge or build it from Ralph's repo.

Get Squeezelite 1.9 

In case building files and spending an hour looking for missing dependencies is not your thing, I have put up a Sourceforge file repo with a compiled copy of Squeezelite 1.9 all ready for you.

Squeezelite 1.9 with DSD

Just copy my version to /usr/bin after you have installed SL 1.8 (as above), restart SL and you should be all set. 

Build Squeezelite 1.9 

Of course, you can always build SL from Ralph's sources, but I'm going to assume if you are building you are a masochist, or know what you are doing or both, so I'll leave you with only the essential details.

You can find the repo here:

https://github.com/ralph-irving/squeezelite


Once you can build without error, create your own makefile (Makefile.custom for instance) with these contents:


OPTS = -DRESAMPLE -DDSD -DVISEXPORT -DIR -DGPIO -DLINKALL

include Makefile
This will build SL with the same options as the Ubuntu repo currently is using, which appear pretty comprehensive. Then run "make -f Makefile.custom"


Check Squeezelite

If all goes well you have installed, built or stolen SL version at least 1.9 and "squeezelite -?" will say two important things. First, at the top:


Squeezelite v1.9.0-1112, Copyright 2012-2015 Adrian Smith ...

The "1.9.x" at the start is the important part. At the bottom we want to see the -D option appear along with this line:


Build options: LINUX ALSA EVENTFD RESAMPLE VISEXPORT IR GPIO DSD LINKALL

Of course, "DSD" is what we are looking for, the other options just match the distro defaults.


Reconfigure Squeezelite

Next, modify your /etc/default/squeezelite file to include the -D :


SB_EXTRA_ARGS="-D 100:u32be -f /tmp/squeezelite.log -d all=info" 
Note this option is a little different than squeezelite 1.8, which had no data format settings for -D. With SL 1.9 we may specify the data format but it may not be needed. I happen to know from looking at the source that Mytek uses U32BE (big-endian). If you are using another DSD DAC, you may want to experiment with this part left out if you aren't sure.

The -f and -d options to log to a file is optional, but highly recommended while debugging. If all works correctly you should see something like this in the squeezelite log:

dsd_decode:821 DSD64 stream, format: DSD_U32_BE
without any error messages, or "DoP" messages.

Sunday, December 24, 2017

SNR-1 : A Two Way High End DIY Monitor



Merry Christmas fellow music lovers. For Christmas, 2017 I give you all the complete designs for a high-end two way mid to large monitor. Alternatively, the cabinet can be done as a floor stander.

The design uses a Mundorf AMT in the tweeter and a ScanSpeak cut-paper 6.5" mid-woofer. I was inspired somewhat by the Klan Ton NADA but wanted to reduce the vertical dispersion to better fit my small apartment ceiling. I was also inspired by the recordings of Halie Loren, who despite having shoestring resources produced excellent recordings.

The concept and electronics are all mine, but the cabinetry is by Taylor Speakers.  My picture does not do the quality of the maple finish justice.

I would call this a full-range speaker, but it is not boomy at all. Ideally you'll want it about 1-2' from the rear wall for the best bass performance. The dispersion is also very wide, so space from the sidewalls is also going to be necessary for the transparency of the unit to come through. Some may find it a little too lean. I think of this as an ideal jazz/classica/movie speaker but not a rock'n'roll speaker at all.

Build cost is around $3k. $1k for the cabinetry, $1k for the drivers, and the crossover can vary a great deal depending on what you use for caps and coils.

I have been sitting on this design for a while, wondering if I should make it a commercial project or not. I have finally decided not to, the financials and work involved are just not worth it. So instead I'm sharing it with the world in the hops that others may enjoy the benefits of the design.

For simplicity and communication I have started a thread with the technical data you will need at DIYAudio. Feel free to comment and ask questions on the thread.

The Crossover

You should refer to the link above for the files, and to discuss building, but here is a picture of the schematic (as measured) and a picture of the prototype:

Saturday, September 9, 2017

Fix / Upgrade or Refresh an Old Speaker or Subwoofer

Subwoofer Upgrade


The Dayton Audio SPA250DSP plate amplifier. This is essentially all of the guts of a subwoofer except for the actual driver.

Of course, you can use this amplifier in a new subwoofer, but for just under $200 it makes for a great solution to an old subwoofer!

The biggest hindrance to most mid-fi subs is not really the motors so much as the lack of good EQ capabilities, and good crossovers.

This little unit can take your old sub and do crazy good things with it. I highly recommend it!


Speaker Conversion

A possible mod is to convert full-range speakers to a speaker + subwoofer.

There are a number of manufacturers like Vandersteen, Thiel, etc. take the approach of using a built-in subwoofer amp in their full range speakers. The big advantage is a beefy bass amp and being able to carefully tailor the bass response of each speaker.

Typically you run your amps "full range" so there is no crossover in the critical mid-bass/mid/treble region. If you are spending big dough in your preamp and DAC that's probably how you want to go.

On the other hand, if you are more about high value, high performance, th SPA250DSP includes a line-level crossover, making it ideal for using low power amps for the mid/treble. 

Saturday, August 26, 2017

The Natural Reference One




Cabinetry by Lee Taylor of Taylor Speakers.

Tweeter by Mundorf, Woofer by ScanSpeak. Crossover caps uses the latest Clarity CMR, Mills and Jantzen copper foil inductors.




Sunday, August 13, 2017

Introducing the LM-1S

If you are looking for the simplest possible speaker project that is affordable, uses a traditional box, and provides very good sound for the money this may very well be it. Your total cost should be around $195 for the pair, assuming you have all the tools.

The S here stands for simple. The LM-1S uses the same size cabinet as the LM-1 but foregoes the multi-way / multiple driver design in favor of a single full-range driver. As a result we loose the absolute fidelity to the top three octaves the LM-1 has, but we cut the cost in half. Perhaps the S should stand for Surround instead, as these speakers would make ideal companions to a home theater system with the LM-1/LM-1C at the front. 

Compared to the LM-1, the LM-1S is MUCH cheaper, has only 1 driver and no crossover components at all.

The Italian made 4" FaitalPRO 4FE35 has good frequency extension up to 20 kHz and really quite decent off-axis response.

The treble response seems to be a bit peaky on-axis, but this can be adjusted by turning the speakers away from the listener. Compared to boutique full-range speakers, this little gem is really pretty awesome. With the large diameter cone acting as woofer and tweeter you may even find this speaker is unusually clear at a distance compared to more traditional speakers with normal 3/4" to 1" tweeters.

Ported vs. Sealed Cabinet

Visually, the cabinet is a little large for the driver, but that's how we get the 65 Hz cut off. 7L is actually a compromise volume, with WinISD suggesting twice that.

If you use a sealed cabinet, you could use a micro-cabinet of around 3.5L and get down to about 100 Hz.  If you absolutely know you'll use a subwoofer that's a great way to go, especially with a desktop system.

Specifications:

  • Sensitivity 91 dB / 1m
  • Frequency : 65 - 20 kHz 
  • Minimum impedance: Approximately 8 Ohms.
The sensitivity is unusually high because there is no crossover. We pretty much get the full sensitivity of the woofer. 

Shopping List


Here is a list of materials you'll need:
I specify the Denovo knock-down flat-pack cabinets ($50/pr) because they are much cheaper than the furniture grade Dayton cherry cabinets ($190/pr) but either will work similarly. If you want something very nice looking and don't feel like doing the finish work yourself the Dayton cabinets are worth the extra.


Tools and Supplies:
  • Router
  • Hole cutting jig to cut approximately 3 9/16" hole for driver
  • Drill and bits
  • Wood glue
  • Clamps
  • Soldering iron and solder
  • Wire cutter / wire stripper

If you use the port you'll get an f3 of around 65 Hz, 100 Hz otherwise. Remember not to put the port directly behind the woofer! Not only could it be a tight fit, but you want to minimize high frequencies from exiting. If you never plan to put a tweeter into this speaker, then you could certainly place the port in the front underneath the driver, making this speaker easier to place in tight situations.

I also recommend the use of the 3/4" multi-layer Sonic Barrier products on the internal side walls to reduce cabinet resonances. Build your LM-1S first, and if you think voices are sounding a little "boomy" then I highly suggest adding Sonic Barrier.

Fill the cabinet loosely with Acousta-Stuf before final assembly, making sure to keep the area at around the end of the port clear.

Placement

With no equalization circuit of any kind these speakers will be best with close surface reinforcement. A desktop, bookshelf or entertainment center will work great. Hiding them in a bookshelf would also make them ideal for hidden surround placement. 

If you are using them as part of a HT setup the room calibration circuits will compensate for either stand or shelf use. Just make sure to set them to "small" with a crossover of 80Hz or higher so you don't overload them.

Saturday, August 12, 2017

FaitaPRO 5FE120 vs. Peerless 830991

Bass 


I ran the 5" FaitalPRO 5FE120 vs. the Peerless 5.25" 830991 through WinISD for the smallest Dayton cabinet, 0.25 ft^3 / 7L.

What I was really looking for was evidence of significantly better bass response, but truth is these two drivers are pretty equivalent. In the 7L cabinet, with a port the FaitalPRO has a slightly better f3: 53 Hz vs. 65 Hz, but the -10 dB Points are the same.

In ideal cabinets, the 830991 requires a 13L box, vs. 8L for the FaitalPR0, f3 nearly identical.

At least on paper, the FaitalPRO edges the Peerless just for needing a smaller cabinet to reach ideal responses. But the differences are truly small.

Treble


The really big differences between these two drivers are in the top end. The FaitalPRO is remarkably smooth for 2-3kHz more than the Peerless, making it easier to match with a broader range of tweeters. While the LM-1 required a 2kHz crossover, with this little gem we should be able to get up to 3-4kHz. Many less expensive tweeters are going to be very comfortable crossing over here.