Posts: 20
Threads: 6
Joined: Dec 2023
Reputation:
1
At the moment the HDMI stream stops whenever no tracks are playing. This causes my AV receiver to go into "no signal mode" which causes some clunky protection relay to switch off and a delay before next track is heard.
Is there some way to pad gaps with silence to keep the HDMI stream alive?
I could imagine an ALSA or Camilla module that injects silence when it has no input. Is there such a thing?
(I am hoping to fix the CamillaDSP and HDMI output format at 88.2kHz/24bit - so format switching shouldn't ever occur)
- Digital source, room EQ & 3-way x-over to HDMI (6 channels):
- Pi-4B 1.5 4GB, RaspiOS 11.8 Bullseye 64-bit, moOde 8.3.7 2023-12-07
- HDMI demux, DACs & Power Amps:
- Onkyo TX-SR875 or TX-NR905 in pure/direct mode
- Speakers:
- Linn Kaber Aktiv (currently tri-amped passive)
Posts: 14,030
Threads: 320
Joined: Mar 2018
Reputation:
571
MPD doesn't support keeping the audio channel open (or playing "silence") when nothing is playing.
My only experience with "Pure Direct" mode is on my Yamaha AVR. It turns off some parts of the AVR like the display screen, HDMI video etc but there are no issues whatsoever with audio in this mode. moOde plays glitch free.
Maybe there are some settings on the Onkyo that control the odd HDMI "no signal" behavior.
You can set resampling in MPD or if you want MPD plus Airplay, Spotify Connect and Bluetooth to be resampled then it can be set in CamillaDSP.
Posts: 20
Threads: 6
Joined: Dec 2023
Reputation:
1
This problem occurs in any receiver mode (though only the pure/direct are of interest to me). Others have reported this problem/wish elsewhere (I cant remember where). I can find no setting for HDMI "no signal" behaviour - and I am not sure the receiver could meaningfully second-guess what is going to come next when the signal drops.
I think the solution would be below the MPD level. Like a plugin (term used loosely) in the ALSA framework that is always connected to the hdmi. For example something like plughw, but that keeps the output device fed/open even if nothing is coming in (generic solution), or add this feature to CamillaDSP output (less generic)? (NB I dont yet understand the ALSA architecture - Its on my big todo list!)
- Digital source, room EQ & 3-way x-over to HDMI (6 channels):
- Pi-4B 1.5 4GB, RaspiOS 11.8 Bullseye 64-bit, moOde 8.3.7 2023-12-07
- HDMI demux, DACs & Power Amps:
- Onkyo TX-SR875 or TX-NR905 in pure/direct mode
- Speakers:
- Linn Kaber Aktiv (currently tri-amped passive)
Posts: 6,222
Threads: 185
Joined: Apr 2018
Reputation:
251
It might be better to find out what signal is needed on HDMI to keep your AVR awake and then ask how to enable it via ALSA and the HDMI driver. (I have no idea, btw).
I like the idea of injecting silence. Reminds me of my idea to package and sell compressed vacuum back when I was a student.
Regards,
Kent
Posts: 20
Threads: 6
Joined: Dec 2023
Reputation:
1
Could this configuration work without conflicting with moOde + camillaDSP automatic reconfiguration behaviour?
* Put an ALSA mixer (dmix) in front of the HDMI hw device.
* Play /dev/null into the mixer (launch this after alsa is ready - where?)
* Output camillaDSP to mixer
I am not yet clear how/where to actually configure this, but if the idea is sound I'll work that out next.
(I am very happy if this requires fixing the output channels, rate & format!)
- Digital source, room EQ & 3-way x-over to HDMI (6 channels):
- Pi-4B 1.5 4GB, RaspiOS 11.8 Bullseye 64-bit, moOde 8.3.7 2023-12-07
- HDMI demux, DACs & Power Amps:
- Onkyo TX-SR875 or TX-NR905 in pure/direct mode
- Speakers:
- Linn Kaber Aktiv (currently tri-amped passive)
Posts: 20
Threads: 6
Joined: Dec 2023
Reputation:
1
01-06-2024, 09:50 PM
(This post was last modified: 01-06-2024, 09:51 PM by oomzay.)
Help! I am that stage where the more I read about moOde & ALSA configuration the less I understand!
What I want to configure seems simple enough:
spotify -> camillaDSP -> mixer -> hw:HDMI
but how do I achieve that? Moode has ALSA Output "Default" and "Direct" options, Camilla has its own playback device setting but I can't see any alsa/asound.conf files in /etc or ~.
- Digital source, room EQ & 3-way x-over to HDMI (6 channels):
- Pi-4B 1.5 4GB, RaspiOS 11.8 Bullseye 64-bit, moOde 8.3.7 2023-12-07
- HDMI demux, DACs & Power Amps:
- Onkyo TX-SR875 or TX-NR905 in pure/direct mode
- Speakers:
- Linn Kaber Aktiv (currently tri-amped passive)
Posts: 14,030
Threads: 320
Joined: Mar 2018
Reputation:
571
Keeping the audio output open (or playing "silence") has to be done by the player i.e. MPD and it doesn't support that.
IIRC there is/was an issue posted in the MPD repo to provide this capability but I don't know its status.