I am using an Intel NUC linked to a Marantz audio-video-receiver via HDMI, which is then linked to my TV via HDMI also. I am running Kodi in order to use this setup as a media player.
On Ubuntu 16.04 and 18.04 I had Pulseaudio disabled in order enable audio passthough from the NUC to the AVR, so that the AVR would be aware that I was feeding it a certain kind of audio signal, DTS say.
I was using the setup described here https://kodi.wiki/view/PulseAudio/HOW-TO:_Disable_PulseAudio_and_use_ALSA_(without_removing_PulseAudio)_for_Ubuntu Short summary: I had /etc/pulse/client.conf adjusted in order to include
autospawn = no
After upgrading Ubuntu to 20.04 this option seems to no longer work, audio passthrough is disabled and the passthrough option is not available in Kodi's settings.
I also tried to run
KODI_AE_SINK=ALSA kodi
but this didn't work either. While the passthrough option re-appeared with this command line option, the feature still doesn't work and/or the video playback sound is just static or crackling (depending on the choice of settings).
So, my question is this: Is there any way to get Pulseaudio and ALSA to interplay as they did in the previous versions? I'm hoping to avoid having to downgrade to 18.04 in order to be able to use the audio passthrough feature again.
I can't answer your question exactly but I have a similar setup but running Pulseaudio with audio passthrough (DD & DTS) working fine on Kodi 18.6, I did not have to adjust or disable Pulseaudio. This is with 19.10 though as I have not yet upgraded my Kodi server to 20.04
But you could perhaps try this way on 20.04? My settings anyway in case they are of any help:
I installed Pulsaudio volume control GUI then within that:
Configuration Tab: I Chose profile "Digital Stereo (HDMI) Output" NOT any of the surround options.
Output Devices Tab: Click on Advanced and select all the encoding options your receiver supports.
Then in Kodi:
Settings - Player - Videos: Ensure "Sync playback to display" is DISABLED.
Settings - System - Audio:
Audio output device: "Default, Default Output Device (PULSEAUDIO)"
Number of channels: "5.1" (in my case)
Output configuration: "Best match"
Allow passthrough: Enabled And the relevant "capable reciever" settings enabled too.
Oliver, like you when I was using Ubuntu 18.04 I had two profiles. One which had Pulse disabled and one that did not using autospawn=no
That no longer works on 20.04 as far as I can tell but here is what does.
I created two scripts for turning Pulse OFF and ON [OFF so passthrough works in KODI]
first script named "pulseoff.sh"
second script named "pulseon.sh"
Scripts are on my Desktop so I opened my Desktop folder in Tilex and ran these commands to make them executable
Now I just double click on the one I want to use and it asks me if I want to run it. You can toggle off and on at your hearts desire.