HQPlayer NAA thread

If u have Windows pc try rufus.

1 Like

No Windows in the house, only macOS and Linux. In any case, Etcher worked fine to flash the regular NAA image for x86, as well as both NAA and RopieeeXL for ARM/Pi. I’ll try the old tried-and-true dd shell command later, to make really sure.
Update: Same problem with a brand new flash card, dd copy. Still working with regular, non-ramfs kernel. Memory passed test, as described earlier. Very strange.

1 Like

And I guess same result with ramfs image too?

dd or bmaptool should certainly give you a decent result.

Yes, the failure was with ramfs, flashed with dd. Regular (non-ramfs) continues to work.

Yours has less RAM than mine? It could just run out of RAM…

I think it has 4GB (I’ll have to connect it to my monitor etc to double-check). But in any case it had worked well for years, until it disappeared from my network. It had been running the 502 image for months.

The mystery deepens. Brand new UP Gateway, brand new flash card, NAA image 5.1.3 ramfs flashed using dd on a Linux system (to remove the macOS variable). Same problem, failure to decompress image.

Somehow I’m completely sure that Rufus would help. I can’t really explain why. :sweat_smile:

“dd” will certainly do perfect job. And “bmaptool” for that matter as well (faster, since it can use the helper file).

BIOS version or settings could also have effect on this, for example amount of RAM reserved for the integrated GPU (you can select the lowest possible amount). But if the regular non-ramfs image works, there’s no reason to have battle over this.

2 Likes

Yes, I’ll file it in the “mystery folder” as regular is be working well. Still puzzled why the first UP Gateway suddenly stopped working with ramfs even though it had been running it for months, but it’s a puzzle I can leave unsolved :wink:

1 Like

Since I had to switch to the regular NAA image from ramfs, I’ve had several occasions were my DAC (May KTE) seems to end up in an unexpected state, most recently PCM rather than DSD, even though my HQPlayer 5 Embedded output is always SDM. Clicking the “Apply” button on the HQPlayer configuration page fixes the issue, but somehow configuration parameters get “forgotten” between HQPlayer and NAA sometimes.

1 Like

Thank you for reporting on this. I occasionally have a similar problem with T+A SDV 3100 HV with DietPi NAA. I am using the latest NAA and HQP embedded version.

Yesterday my player stopped and I saw in the config that suddenly the NAA HDMI output from the DietPi (Hardware NanoPi NEO4) was activated. After a restart, the T+A NAA output worked again, but with PCM! As with you, DSD (SDM) was activated in the HQP-Config. This may be a bug.

What does HQPlayer log file say about the incident? Both the ramfs and the regular image have same OS and same networkaudiod software, just the way root file system is handled is different. So it is not any different from this perspective.

Sounds like DSD capability is not detected. Common denominator for both cases I think is same STMicro-based USB interface?

Here’s the segment of the log file where it decided to use PCM:

& 2025/03/03 18:40:55 NAA output discovered network audio: name='naa-5181a32a' version='Signalyst Network Audio Daemon 5.1.3' protocol='5' trigger='1'  @192.168.2.222:43210
  2025/03/03 18:40:55 Control active volume range: -60 - 0 dB
  2025/03/03 18:40:55 Listen discovery on ::
& 2025/03/03 18:40:55 NAA output discovered network audio: name='naa-5181a32a' version='Signalyst Network Audio Daemon 5.1.3' protocol='5' trigger='1'  @192.168.2.222:43210
  2025/03/03 18:40:55 Listen discovery on 0.0.0.0
  2025/03/03 18:40:55 Enable UPnP Renderer functionality for interface: auto
  2025/03/03 18:40:55 Adding interface 'eno1' for UPnP Renderer
  2025/03/03 18:40:55 Adding interface 'wlp0s20f3' for UPnP Renderer
  2025/03/03 18:40:56 NAA output discovered 2 Network Audio Adapters
+ 2025/03/03 18:40:56 NAA output connect to 192.168.2.222:43210 [ipv4]
  2025/03/03 18:40:56 NAA output rate set unknown or empty, setting virtual rate
  2025/03/03 18:40:56 NAA output set sampling rate: 44100 (44100)
  2025/03/03 18:40:56 NAA output network format: 44100/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 48000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 88200/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 96000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 176400/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 192000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 352800/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 384000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 705600/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 768000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 1411200/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 1536000/32/2 [pcm]
  2025/03/03 18:40:56 NAA output network format: 2822400/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 3072000/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 5644800/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 6144000/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 11289600/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 12288000/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 22579200/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 24576000/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 45158400/1/2 [dsd]
  2025/03/03 18:40:56 NAA output network format: 49152000/1/2 [dsd]
+ 2025/03/03 18:41:08 Control connection from 100.78.205.26:52222
+ 2025/03/03 18:41:08 Control started from 100.78.205.26:52222
& 2025/03/03 18:41:08 Stop...
& 2025/03/03 18:41:09 Playlist clear
& 2025/03/03 18:41:09 Playlist add URI: http://100.78.205.26:30000/1ab30a67d3ae4f36b68e9624c9643817/stream.raw
& 2025/03/03 18:41:09 Play (-1/0)
  2025/03/03 18:41:09 Offload: resampler=disabled convolution=disabled
+ 2025/03/03 18:41:09 Playback engine running
  2025/03/03 18:41:09 SDM conversion parameters (8, 12)
  2025/03/03 18:41:09 DSD 6 dB gain enabled
  2025/03/03 18:41:09 NAA output set sampling rate: 384000 (384000)
  2025/03/03 18:41:09 Automatic output rate: 384000
  2025/03/03 18:41:09 Engine reinit, rate or blocksize change triggered
  2025/03/03 18:41:09 Rate: 44100, block size: 2352, frame size: 588
  2025/03/03 18:41:09 Block size: 2352 (sample: 2)
  2025/03/03 18:41:09 Analysis initialized
  2025/03/03 18:41:09 Playback engine ratio: 8.70748
  2025/03/03 18:41:09 Filter: long Gaussian poly sinc
  2025/03/03 18:41:09 Dither: triangular probability density function for 32-bit
  2025/03/03 18:41:09 [0] Correction file not found, downloading...
  2025/03/03 18:41:12 DAC correction 'Holo Audio Spring 3 / May' 0/0/2 @384000
  2025/03/03 18:41:12 DAC correction post-process active
  2025/03/03 18:41:12 Initializing processing for matrix pipeline 0
  2025/03/03 18:41:12 Matrix pipeline 0: 0 -> 0 0/1
  2025/03/03 18:41:12 Initializing processing for matrix pipeline 1
  2025/03/03 18:41:12 Matrix pipeline 1: 1 -> 1 0/1
  2025/03/03 18:41:12 Matrix processing enabled
  2025/03/03 18:41:12 Set volume: -3 +
  2025/03/03 18:41:12 Offload: resampler=enabled convolution=disabled
  2025/03/03 18:41:12 Initialization complete, starting audio engine
  2025/03/03 18:41:12 Teams: 1
  2025/03/03 18:41:12 Places: 1
  2025/03/03 18:41:12 Parallel threads: 8
  2025/03/03 18:41:12 Nested parallelism: 4
  2025/03/03 18:41:12 Parallel pipelines: 4
  2025/03/03 18:41:12 Set volume: -3 +
+ 2025/03/03 18:41:12 NAA output network engine starting...
  2025/03/03 18:41:12 NAA output network format: 384000/32/2 [pcm]
  2025/03/03 18:41:12 NAA output network PCM streaming
  2025/03/03 18:41:12 NAA output sampling rate: 384000 (384000)
  2025/03/03 18:41:12 NAA output channels: 2 (2)
+ 2025/03/03 18:41:12 NAA output network engine started at: 384000

Here’s where it got back to normal (my standard settings)

& 2025/03/04 06:54:29 NAA output discovered network audio: name='naa-5181a32a' version='Signalyst Network Audio Daemon 5.1.3' protocol='5' trigger='1'  @192.168.2.222:43210
& 2025/03/04 06:54:29 NAA output discovered network audio: name='naa-5181a32a' version='Signalyst Network Audio Daemon 5.1.3' protocol='5' trigger='1'  @192.168.2.222:43210
  2025/03/04 06:54:29 SDM conversion parameters (8, 12)
  2025/03/04 06:54:29 DSD 6 dB gain enabled
  2025/03/04 06:54:29 Initializing processing for matrix pipeline 0
  2025/03/04 06:54:29 Matrix pipeline 0: 0 -> 0 0/1
  2025/03/04 06:54:29 Initializing processing for matrix pipeline 1
  2025/03/04 06:54:29 Matrix pipeline 1: 1 -> 1 0/1
  2025/03/04 06:54:29 Matrix processing enabled
& 2025/03/04 06:54:29 Set transport (240): 
  2025/03/04 06:54:29 SDM conversion parameters (8, 12)
  2025/03/04 06:54:29 DSD 6 dB gain enabled
  2025/03/04 06:54:29 Set filter: 37 / 40
  2025/03/04 06:54:29 Set dither: 5
  2025/03/04 06:54:29 Set oversampling: 40 / 43
  2025/03/04 06:54:29 Set modulator: 33
  2025/03/04 06:54:29 Audio engine is normal
  2025/03/04 06:54:29 IntegratorM: FIR2
  2025/03/04 06:54:29 Audio engine SDM mode enabled
  2025/03/04 06:54:29 Requested output rate: 11289600
  2025/03/04 06:54:29 NAA output rate set unknown or empty, setting virtual rate
  2025/03/04 06:54:29 NAA output set sampling rate: 11289600 (11289600)
  2025/03/04 06:54:29 Automatic output rate switching enabled
& 2025/03/04 06:54:29 Convolution disabled
+ 2025/03/04 06:54:29 Server starting...
  2025/03/04 06:54:29 Control active volume range: -60 - 0 dB
  2025/03/04 06:54:29 Listen discovery on ::
  2025/03/04 06:54:29 Listen discovery on 0.0.0.0
  2025/03/04 06:54:29 Enable UPnP Renderer functionality for interface: auto
  2025/03/04 06:54:29 Adding interface 'eno1' for UPnP Renderer
  2025/03/04 06:54:29 Adding interface 'wlp0s20f3' for UPnP Renderer
+ 2025/03/04 06:54:29 Engine running
  2025/03/04 06:54:30 NAA output discovered 2 Network Audio Adapters
+ 2025/03/04 06:54:30 NAA output connect to 192.168.2.222:43210 [ipv4]
  2025/03/04 06:54:30 NAA output network format: 44100/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 48000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 88200/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 96000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 176400/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 192000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 352800/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 384000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 705600/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 768000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 1411200/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 1536000/32/2 [pcm]
  2025/03/04 06:54:30 NAA output network format: 2822400/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 3072000/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 5644800/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 6144000/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 11289600/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 12288000/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 22579200/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 24576000/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 45158400/1/2 [dsd]
  2025/03/04 06:54:30 NAA output network format: 49152000/1/2 [dsd]
+ 2025/03/04 19:25:54 Control connection from 100.78.205.26:50038
+ 2025/03/04 19:25:54 Control started from 100.78.205.26:50038
& 2025/03/04 19:25:54 Stop...
& 2025/03/04 19:25:55 Playlist clear
& 2025/03/04 19:25:55 Playlist add URI: http://100.78.205.26:30000/e8e53dacba524575877b5c26d9454c07/stream.raw
& 2025/03/04 19:25:55 Play (-1/0)
  2025/03/04 19:25:55 Offload: resampler=disabled convolution=disabled
+ 2025/03/04 19:25:55 Playback engine running
  2025/03/04 19:25:55 IntegratorM: FIR2
  2025/03/04 19:25:55 Engine reinit, rate or blocksize change triggered
  2025/03/04 19:25:55 Rate: 96000, block size: 7680, frame size: 1280
  2025/03/04 19:25:55 Block size: 7680 (sample: 3)
  2025/03/04 19:25:55 Analysis initialized
  2025/03/04 19:25:55 Oversampling: linear phase apodizing Gaussian poly sinc for HiRes
  2025/03/04 19:25:55 Modulator: adaptive seventh order 1-bit ec fast
  2025/03/04 19:25:55 Integrator: FIR2
  2025/03/04 19:25:55 Playback engine ratio: 117.6
  2025/03/04 19:25:55 DAC correction 'Holo Audio Spring 3 / May' 0/0/2 @11289600
  2025/03/04 19:25:55 DAC correction post-process active
  2025/03/04 19:25:55 Initializing processing for matrix pipeline 0
  2025/03/04 19:25:55 Matrix pipeline 0: 0 -> 0 0/1
  2025/03/04 19:25:55 Initializing processing for matrix pipeline 1
  2025/03/04 19:25:55 Matrix pipeline 1: 1 -> 1 0/1
  2025/03/04 19:25:55 Matrix processing enabled
  2025/03/04 19:25:55 Set volume: -3 +
  2025/03/04 19:25:55 Offload: resampler=enabled convolution=disabled
  2025/03/04 19:25:55 Initialization complete, starting audio engine
  2025/03/04 19:25:55 Teams: 1
  2025/03/04 19:25:55 Places: 1
  2025/03/04 19:25:55 Parallel threads: 8
  2025/03/04 19:25:55 Nested parallelism: 4
  2025/03/04 19:25:55 Parallel pipelines: 4
  2025/03/04 19:25:55 Set volume: -3 +
+ 2025/03/04 19:25:55 NAA output network engine starting...
  2025/03/04 19:25:55 NAA output network format: 11289600/1/2 [sdm]
  2025/03/04 19:25:55 NAA output network SDM streaming
  2025/03/04 19:25:55 NAA output sampling rate: 11289600 (11289600)
  2025/03/04 19:25:55 NAA output channels: 2 (2)
+ 2025/03/04 19:25:55 NAA output network engine started at: 11289600
1 Like

So first it started with output default set to PCM. And then later was changed to output SDM.

But I wonder what is going on for example at 06:54:29 because HQPlayer server restarts. So there was some configuration change or similar?

That’s when “applied” the current configuration to “force” HQPlayer to SDM. My configuration has always been with SDM, but as you saw from the logs, something switched to PCM. I had never seen this before.

You can possibly follow the log from HQPlayer startup to the point where output ends up being set to PCM.

Did you try to just switch HQPlayer to SDM output instead of this kind of full restart?

It’s quite confusing, PCM and SDM sections are interspersed beyond my ability to parse them. This could be because there were several server reboots (Ubuntu updates) and NAA endpoint (dis)connections as I debugged my other issue with NAA.

Yes, but it did not seem to take, which is why I tried the full restart after saving the configuration.

Saving configuration triggers full restart. But it normal cases configuration is not touched, instead all runtime setting changes are done from the control application. So I mean changing the mode like it is intended from the control application like HQPlayer Client, HQPDcontrol or JPlay. Or from the web interface front page. Unfortunately Roon has never implemented such control capabilities.

If you go to /config page and click Apply, then NAA and Roon will get disconnected, web server torn down and then whole thing restarts. This is something I would expect to happen only once per month or something like that, rather rarely. In such case, you need to wait for a while before you start playback, so that connection with NAA has been re-established. This is asynchronous process going on in the background and can take about 10 - 15 seconds. Otherwise for example support for DSD is missing, since HQPlayer has no idea about capabilities of the output device.

I suspect this may be the issue in your case.