AA Signature Suite for Linux

We developed AA Signature Network Renderer and Media Server for Linux x86-64, by audiophile for audiophiles worldwide. Download for trial is available now.

Our Motivation

We love JPLAY for iOS so much, but we cannot find UPnP renderers and UPnP media servers for Linux which meet our high standard of faithful audio reproduction. We decided to develop these on our own for purists.

Abstract

AA Signature Renderer and Media Server are written in C and C++. The renderer is event-driven with no polling. Its real-time priority thread is pinned to a dedicated core. No ALSA library; renderer talks to the DAC directly. Both are light-weight and compact. The renderer and server are set up through the JPLAY configuration page.

How The Renderer Is Different?

  • What bit-depth to use when playing music, either always use the max or a fixed bit-depth supported by DAC or automatically select based on the source.
  • DAC capability probing done once during first-time DAC connection and setup.
  • Hot plugging and unplugging of USB DAC supported. User preferences saved and recalled during hot plug.
  • When DAC is offline or requires first time setup, the renderer adds [No DAC] or [Setup DAC] to its name.
  • Huge buffers supporting large files playback.
  • Target latency can be set.
  • OpenHome can be enabled or disabled. This works with local files when using BubbleDS or BubbleUPnP controller in OpenHome mode, i.e. controller can be offline while renderer continues playing as the complete playlist is sent during first song playback.

What’s Special About The Media Server?

  • Use file:// instead of http:// for local files, supported by JPLAY controller. This means local files are treated as local files. Works only when Server and Renderer running on the same machine.
  • We developed workaround for other UPnP controllers so that renderer can detect if local files are to be played. Works only when Server and Renderer running on the same machine.
  • For WAV files with correct folder structure (Artist / Album / nn – Track Name.wav) but without ID3 tags, the server will derive and create the tags (optional feature). For example, when similar CDs were ripped using EAC and CUERipper and placed into \EAC\Artist\Album\nn Track.wav and \CUE\Artist\Album\nn Track.wav.

AA Signature Suite for Linux
How your music reaches the DAC

You choose music on a tablet or phone. The media server finds it, and the renderer plays it, both on one Audio PC running AA Signature Suite for Linux, which is wired to your network (no Wi-Fi) and connected to your DAC by USB. The whole system runs from memory. For music stored on the Audio PC, the renderer reads each file straight from the drive, and the media server tells it where the file is. Inside the renderer, the part that talks to your tablet and the part that plays the audio are kept apart, so network activity never runs alongside the audio.

← Swipe the diagram sideways to see all of it →Pinch to zoom in on the diagram

Wired LANinternet streaming, both ways

UPnP over the networkthe controller app: Wi-Fi to the router, then wired LAN to the Audio PC

Inside the rendererfront end to engine, and through the engine

Local playbackthe renderer gets the file’s path and reads the file from the drive itself

To the USB DACALSA in mmap mode, then AA’s USB audio driver

Cores and priorities

Both programs read your CPU at every start and work out the same layout. They count physical cores: the two threads of a hyper-threaded core are one core. Performance cores are Intel’s P-cores, AMD’s full-size cores beside compact ones, or every core on a CPU with one kind; efficiency cores are the rest. The core numbers in the diagram are a 4-core music PC. Pinning is on by default, can be switched off on each setup page, and needs at least 4 physical cores. The priorities always apply.

Core 0Linux

Kept for Linux, its drivers and the network, on every CPU. Nothing of ours is placed here.

The last performance coreOutput thread, alone

Real-time priority while the DAC is playing. With “Keep a CPU core for audio only” (OS Tuning, on by default), Linux keeps everything else off this core, interrupts included. Core 3 on a 4-core PC.

The performance core before itAudio engine

Stream reader and decoder at normal priority, working well ahead of the DAC. Core 2 on a 4-core PC.

The efficiency coresRenderer front end and media server

Lower priority than the audio; library scans the lowest. With 4 or more efficiency cores, each gets half of them; with fewer, they share. Without efficiency cores: core 1, and the server on core 2 with 6 or more cores. Low-power cores are left to Linux.

CPUOutput threadEngineFront endServer
Pentium Silver J5040 (4 cores)3211
Ryzen 7 5700X (8 cores, no efficiency cores)7612
Core i5-13400 (6 P + 4 E)546–78–9
Core i7-12700 (8 P + 4 E)768–910–11
Core Ultra 7 356H (4 P + 8 E + 4 low-power)324–78–11
Ryzen AI 9 HX 370 (4 Zen 5 + 8 Zen 5c)324–78–11

The System tab shows which core the audio uses on your own PC. On a CPU with only one or two performance cores, the output thread or the engine takes the best other free core, never core 0.

The media server

It scans your music folders, reads each track’s tags and cover art, and lets the UPnP Controller browse and search the library. Every file is served exactly as it is on disk; nothing is converted. Your music drive is only ever read, never written to.

For music on the same PC, the renderer plays the file straight from the drive, with no network in between. JPLAY for iOS can be given file links directly (an option on the server). With any other control app, the renderer recognises a link to its own PC and asks the server for the file’s path, which the server tells only to its own PC. If that ever fails, the track simply plays over the network as usual.

The renderer’s two halves

The UPnP front end handles everything your control app asks for: what to play, the playlist, volume and what is playing now. The audio engine is a separate process that only fetches, decodes and plays. A busy control app or a setup page left open never runs alongside the audio.

The audio path

  1. The stream reader fetches the track into the stream buffer, well ahead of playback: straight from the drive for music on this PC, or over the wired LAN for internet streams. On a slow connection it waits until enough has arrived, and pauses rather than stutter if the stream falls behind.
  2. The decoder turns it into audio samples in the output buffer. Only if needed, it resamples to a rate the DAC can play, and only if you switch it on, it applies the room EQ (PCM only). With neither, the audio stays bit-perfect.
  3. The output thread writes each period of audio straight into the buffer of ALSA, the Linux sound system, in mmap mode: no sound server, no mixer, no copy in between. It has the DAC to itself.
  4. AA’s own build of the Linux USB audio driver sends it to the DAC in larger USB transfers, with far fewer interrupts than the standard driver.
  5. DSD goes to the DAC as native DSD or DoP, whichever the DAC declares, or is converted to PCM for a DAC without DSD.
  6. The next track is decoded before the current one ends, for gapless playback. If your DAC needs a moment to switch sample rates, a resync delay can be set for it on the setup page.

AA Signature Suite for Linux

The Audio PC starts from a USB stick or its own SSD and then runs entirely from memory, on a Linux tuned for audio: interrupts are handled directly, as on Windows, and nothing else runs that a music server does not need.

Started from a USB stick, the system shuts the stick down once it is idle, so nothing on the USB controller talks to it while music plays. It is switched on again only to save your settings or install an update.

With automatic updates: new versions install by themselves while no music plays. Your settings and licence are kept.

Describes AA Signature Suite for Linux 0.1.31.3: AA Signature Network Renderer 0.6.6.22 and AA Signature Media Server 0.4.3.6.

AA Signature Suite for Linux – making the computer calmer

AA Signature Suite for Linux : Making the Computer Calmer

While music plays, every interrupt and every thread switch is activity inside the computer next to your DAC. We measured both after every change to the Linux version, kept what helped, dropped what didn’t, and compared each step with the Windows version on the same computer and the same DAC.

Interrupts per second, all sources
554–568
Windows: 1,624 – about 3 times fewer
Thread switches per second
46–63
Windows: 376 – 6 to 8 times fewer
USB interrupts on the audio core
0
the render thread has its own CPU core
Underruns, 16/44.1 to DSD256
0
every period on time (100 ms)

How we measure

The test computer is our AAMS Extreme music server: an Intel Pentium Silver J5040 (4 cores) with turbo and deep CPU sleep switched off in the BIOS, all Mundorf MLytic smoothing capacitors, active rectifiers and a fully linear power supply. It plays to a Holo Audio May DAC over USB (asynchronous, high speed) through an AA Audio Signature Extreme USB cable. The amplifier is off. For each track we play 5 seconds, then count for 15 seconds:

  • Interrupts – each time a CPU core is stopped to serve something: mainly the USB controller, also the processor’s own timer and the network adapter. Counted from all sources, as Windows counts them, from the kernel’s own counters.
  • Thread switches – each time a CPU core changes from one task to another, for the whole computer.
  • Timing – the Renderer’s own report for every session: periods delivered, late periods, the longest gap and underruns.

Today’s Linux measurement ran on the AA Signature Suite for Linux 0.1.33.1: Arch Linux kernel 7.3.5, with our improved USB audio driver.

For the Windows reference, the same AAMS Extreme runs Windows 10 IoT Enterprise LTSC 21H2 (build 19044), with the AA Signature Suite for Windows installed. The measurements were taken there with the same Holo May DAC, USB cable and the DAC maker’s USB audio driver, with no user signed in. A 100 ms target latency was used.

The starting point was measured the same way: the same AAMS Extreme, DAC and cable, a 100 ms target latency, the same counting method, and the same three tracks – 16/44.1 FLAC, 24/192 FLAC and DSD64. The charts show the 16/44.1 track.

From where we started to today

We started where most Linux audio systems start: a real-time kernel, the usual advice for audio on Linux and the base of most Linux audiophile software – ours already set to a 100 Hz timer (we did not measure the default 1000 Hz timer). It played reliably, but the computer was far from calm – over 2,100 interrupts and over 4,000 thread switches every second.

From there we changed one thing at a time and measured every change the same way. What helped – in the numbers and in listening – stayed; what didn’t was dropped. Today the same computer makes about a quarter of the interrupts and about one percent of the thread switches it started with.

Interrupts per second, 16/44.1

Every bar counts interrupts from all sources, as Windows does. The USB controller is most of them: 539 of today’s 568.

Thread switches per second, 16/44.1

Today’s results, every format

AA Signature Suite for Linux 0.1.33.1, Holo Audio May, target latency 100 ms, 15 seconds per track.

TrackSent to the DACInterrupts/s, all sourcesof which USBThread switches/sUSB interrupts on the audio coreUnderruns · late periods
FLAC 16/44.1PCM 44.1 kHz5685394600 · 0
FLAC 24/96PCM 96 kHz5545264700 · 0
FLAC 24/192PCM 192 kHz5655265600 · 0
WAV DXDPCM 352.8 kHz5545264900 · 0
DSD64native DSD5595206300 · 0
DSD128native DSD5575265000 · 0
DSD256native DSD5685265400 · 0
Windows, 16/44.1PCM 44.1 kHz1,624–376––

Also measured today: the longest gap between periods was 100.1 ms for a 100 ms period; the CPU time of the audio thread rounds to 0%; the USB interrupts are all served on one core, away from the audio core; with nothing playing the computer makes 43 thread switches a second.

What the numbers mean – and what they don’t

Fewer interrupts and thread switches mean a calmer computer while music plays: less work done, fewer cores woken, steadier timing. They don’t measure sound. Every change was also judged by listening, and kept only when it sounded better.

We make music servers, power supplies and USB cables. When hardware changes alone stopped bringing improvements, we turned to the software. Every change is measured on our own AAMS Extreme and listened to on our own system before release – our customers are never the test bench.

None of these changes touch the music data: the DAC receives the same samples and still clocks them out on its own clock. DSD is sent as native DSD at every rate.

Our changes to the Linux USB audio driver are open source under the GPL: github.com/AVM-Anwar/aa-sig-suite-linux-gpl.

Free Trial

and then install the suite for 14-day free trial.

Price

Perpetual License
with 1-year Maintenance
USD99
1-year Maintenance RenewalUSD20
1-year Maintenance Renewal
after expiry
USD30
(no backdating charges)

After 1-year maintenance ends, software will continue to fully function but without any software updates.

Buy Software

Still under Beta testing.

For EU and UK customers, please wait until we select payment gateway to collect digital sales tax. This also applies to many other countries with zero threshold for cross-border online software purchase.

Current online sales are limited to countries with no tax on foreign software sellers and countries where our annual software sales by country and by country/states have not crossed the threshold. Click “Buy”, select your country, and let this website decides whether you can purchase the software or not.