Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Kodi - Debian - No passthrough
#16
@Capslock If you update the Flatpak to the latest version (date 2024-04-14) Kodi is able to use PipeWire. To make pass through work you have to configure PipeWire as described in this commit message: https://github.com/xbmc/xbmc/commit/f675...77f429698a
Reply
#17
That also works. Use ‘pwi-cli ls Node’ to find your output node id.
Reply
#18
With the new WirePlumber config syntax it should look something like this:
Code:

monitor.alsa.rules = [
 {
   matches = [
     {
       node.name = "~alsa_output.*"
     }
   ]
   actions = {
     update-props = {
       iec958.codecs = [ "PCM", "DTS", "AC3", "EAC3", "TrueHD", "DTS-HD" ]
     }
   }
 }
]
Place the config in ~/.config/wireplumber/wireplumber.conf.d/51-alsa.conf
Reply
#19
I don't have understand how i need to do... whit previous version never need to touch anythings. @Neo1973 i have received the last build and, on UBUNTU 22.04.4LTS a i have NO AUDIO AT ALL.

On setting the only choose i can select it's PIPEWIRE but i don't remember what it's selected here previously.

If it's need on same PC i can also have the old 20.2 by PPA (now archived) and in this version audio works whitout any issue.

How i need to do for reobtain the audio works ?

*EDIT*
From terminal i have tryed this:
Code:
diabolik@NUC-Ubuntu:~$ pw-cli ls Node
    id 28, type PipeWire:Interface:Node/3
         object.serial = "28"
         factory.id = "10"
         priority.driver = "20000"
         node.name = "Dummy-Driver"
    id 29, type PipeWire:Interface:Node/3
         object.serial = "29"
         factory.id = "10"
         priority.driver = "19000"
         node.name = "Freewheel-Driver"
diabolik@NUC-Ubuntu:~$
But i don't have the folder "wireplumber" on .config in my home. Damn... it's flatpak current 21 broken on ubuntu ?
...only on your "little world" can you lay down the law...
Reply
#20
@DjDiabolik I don't have that folder either so I created one. Works perfectly after.

md -p ~/.config/wireplumber/wireplumber.conf.d
vi ~/.config/wireplumber/wireplumber.conf.d/51-alsa.conf
Reply
#21
For Ubuntu 22.04 this unfortunately doesn't work because 22.04 has PipeWire running but doesn't use it for Audio. Instead it's still PulseAudio that is running the audio. Current Kodi can't handle this situation and uses PipeWire despite it's PulseAudio that is in charge of audio. With the upcoming Kodi 21.1 we therefore decided to default to PulseAudio instead of PipeWire (https://github.com/xbmc/xbmc/pull/25019). This works for users of PulseAudio and PipeWire because PipeWire provides a PulseAudio compatibility layer (pipewire-pulse). PipeWire (audio) users will then have to opt-in to use the native PipeWire interface with --audio-backend=pipewire.

There is also https://github.com/xbmc/xbmc/pull/25043 that has the goal to keep native PipeWire the default for actual PipeWire users but I'm not yet sure if that will be part of the the Kodi 21 Omega release cycle.
Reply
#22
This has been the most concise thread I've found so far on this issue so I thought I'd throw my 2 cents in.  In addition to adding the wireplumber config file, I had to do the following:

pactl set-card-profile 999 output:hdmi-surround

Where 999 is the iec958 output card.  output:hdmi-surround is for 5.1 from hdmi0.  output:hdmi-surround71 would be for a 7.1 setup.  pactl list cards will show you available output profiles.

Then I had to execute the following command:

pactl set-sink-formats 62 'pcm;ac3-iec61937;eac3-iec61937;dts-iec61937;dtshd-iec61937;truehd-iec61937'

Where 62 is my active sink (pactl list sinks).  Remove anything your end device doesn't support, or add aac/mpeg2 codecs as needed.

Now Kodi's UI allows me to enable passthrough on my pipewire output device.  I haven't tested it yet as I've been doing all of this remotely at work via ssh and x11vnc.
Reply
#23
(2024-05-09, 11:29)psycho_driver Wrote: This has been the most concise thread I've found so far on this issue so I thought I'd throw my 2 cents in.  In addition to adding the wireplumber config file, I had to do the following:

pactl set-card-profile 999 output:hdmi-surround

Where 999 is the iec958 output card.  output:hdmi-surround is for 5.1 from hdmi0.  output:hdmi-surround71 would be for a 7.1 setup.  pactl list cards will show you available output profiles.

Then I had to execute the following command:

pactl set-sink-formats 62 'pcm;ac3-iec61937;eac3-iec61937;dts-iec61937;dtshd-iec61937;truehd-iec61937'

Where 62 is my active sink (pactl list sinks).  Remove anything your end device doesn't support, or add aac/mpeg2 codecs as needed.

Now Kodi's UI allows me to enable passthrough on my pipewire output device.  I haven't tested it yet as I've been doing all of this remotely at work via ssh and x11vnc.

I can't find an edit function.  Just wanted to add that I tested passthrough and all of the formats tested worked (I couldn't find a TrueHD stream to test).  DTS didn't work for like 2 minutes and then crackled and popped for 10 seconds or so and then came on and continued working after rewinding to the beginning of the video.  This quite possibly could be a receiver or HDMI cable issue.  The others worked without any problems.
Reply
#24
Thanks Neo1973 for your '--audio-backend=pipewire' comment - I've done this and it has solved one of my audio issues. Since updating Kodi on Raspberry Pi 64 bit OS I was unable to switch audio devices without sound breaking. Neo's comment has fixed this for me. I still have another issue though - I used to be able to select Passthrough but this is no longer available Sad
Reply
#25
(2024-07-09, 20:37)armyofme Wrote: Thanks Neo1973 for your '--audio-backend=pipewire' comment - I've done this and it has solved one of my audio issues. Since updating Kodi on Raspberry Pi 64 bit OS I was unable to switch audio devices without sound breaking. Neo's comment has fixed this for me. I still have another issue though - I used to be able to select Passthrough but this is no longer available Sad

You can try '--audio-backend=alsa'. Maybe this works better for you. I got Passthrough running with this comment.
Reply
#26
(2024-07-09, 22:55)contadino Wrote:
(2024-07-09, 20:37)armyofme Wrote: Thanks Neo1973 for your '--audio-backend=pipewire' comment - I've done this and it has solved one of my audio issues. Since updating Kodi on Raspberry Pi 64 bit OS I was unable to switch audio devices without sound breaking. Neo's comment has fixed this for me. I still have another issue though - I used to be able to select Passthrough but this is no longer available Sad

You can try '--audio-backend=alsa'. Maybe this works better for you. I got Passthrough running with this comment.
Thank you. I will try this tomorrow.
Reply
#27
(2023-10-11, 10:51)wastis Wrote: To avoid that it is started on next login can run
Code:

systemctl --user disable pulseaudio.service
systemctl --user disable pulseaudio.socket

On some systems you might need to mask it in order to prevent it's start. No need to rename binaries.
Code:

systemctl --user mask pulseaudio.service
systemctl --user mask pulseaudio.socket

you can undo all this with unmask, enable or start.

This worked like a champ on Debian 12! Once I followed these steps and rebooted, I was able to select my USB out as Digital Audio, and then in audio settings passthrough was no longer grayed-out, and I could select it! Also worth nothing that under Audio Settings I had to set Output Configuration to "Optimized".
I use the outstanding Tidal2 KODI Add-On to stream music, along with rips of my CD collection.
Check out my CD library if you want:
Growing CD Collection
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi - Debian - No passthrough0