Posts by elmismo

    IT WOOOOOOORKED!!! :):):):*:cool:8):love::thumbup:

    edit: partially ;(

    N.B. I understand that most of the things I made (explained bellow) are totally wrong, but please don't judge me - I am total noob in this. I am just listing the things I made so it can help someone who understands the matter see what is wrong and how I can fix it.

    After the last comments I tinkered with it again today.

    What I did:

    1. Created 90-alsa-restore.rules in /storage/.config/udev.rules.d with

    , but nothing changed... (except that in alsamixer everything is back to default) and then I started tinkering randomly.

    2. Using this wiki and pulseaudio -D in order to be able to make changes (it does not work otherwise)

    Code
    pacmd "set-default-source ....

    i was able to set the default device and output, then I created in /storage/.config/udev.rules.d 91-pulseaudio-custom.rules with

    Code
    SUBSYSTEM!="sound", GOTO="pulseaudio_end"
    ACTION!="change", GOTO="pulseaudio_end"
    KERNEL!="card*", GOTO="pulseaudio_end"
    
    SUBSYSTEMS=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x0059", ENV{PULSE_PROFILE_SET}="custom-profile.conf"
    
    LABEL="pulseaudio_end"

    and in  ~/.config/pulse-daemon.conf.d/custom-profile.conf  added

    Until this point nothing worked for the final goal (DD/DTS passthrough).

    Then I tried one last time with autostart.sh in  /storage/.config/ with

    Bash
    #!/bin/sh
    pulseaudio -D
    pulseaudio --system
    pactl load-module module-udev-detect
    pactl load-module module-alsa-sink device=dmix
    pactl load-module module-alsa-source device=dsnoop
    pactl load-module module-combine-sink sink_name=combined
    pactl load-module module-allow-passthrough

    (here I am pretty sure it is totally wrong, but... read on)

    After reboot in Kodi there was audio device "PULSE Simultaneous biult-in audio output", which I choose, but the passthrough device was still NVidia IEC958 S/PDIF. Then I checked in guisettings.xml in /storage/.kodi/userdata and there the audio device was PULSE:combined and the passthrough one was ALSA:iec958...
    After this I created advancedsettings.xml in /storage/.kodi/userdata with passthrough device PULSE:combined

    Rebooted, changed the settings in alsamixer again (s/pdif unmute, s/pdif volume 0)

    and... VOILA!!!
    Started a DTS (and after that DTS-HD) movie and the AVR lit for DD/DTS digital signal... :):):):)

    Edit:

    P.S. During the writing of this resume of the things I have done I checked to see if the signal is true passthrough... and it is NOT. I am able to change the volume in Kodi, but at least the AVR reads DD/DTS signal. When I switch off the passthrough, the AVR is back to PCM signal... Really strange!

    The audio stream now is:

    FL;FR;FC;LFE;SL;SR; ff-ac3 ; 32 bits; 48.000 Hz or FL;FR;FC;LFE;SL;SR; ff-dca; 32 bits; 48.000 Hz and the AVR lit for DD/DTS signal.

    and before todays' changes when the passthrough was active without sound was raw;raw;rawraw;raw;raw; pt-dts; 8 bits; 48.000Hz and the AVR showed pcm (pro logic).


    Perhaps new Log will help you understand what is wrong and what I made, or...?

    :):):) HAPPY NEW YEAR TO ALL!!! :):):)

    I'm afraid as long you do not find a physical connection and kodi configuration to output hearable sound via the S/PDIF interface (like TV(AC3) from Audio quickstart guide - Official Kodi Wiki) there is no passthrough support.

    Thanks! I understand that this should be the passthrough device, but... I have tried all the possible options in every Wiki (Kodi and Libre) and every (quickstart) guide to make this to work again. This is why I am writing here asking for help!

    The physical connection "proprietary NVidia spdif cable" that chewitt mentioned will not work at all for my implementation - it is audio-in connection from the motherboard to the video card that is supposed to help send audio through the dvi connection of the card using dvi-hdmi adapter. I do not want to use such connection.

    I am using:

    dvi for video to the TV

    S/pdif (digital coaxial) cable for audio to the AVR

    I think this is exactly the problem in the configuration - if this setting (NVIDIA CK804 - IEC958 S/PDIF) is selected, the system is trying to send audio through the dvi output of the card and not through the digital audio output of the motherboard... (or maybe I am totally wrong) /shrug

    The last change that I made prior to the temporary success (DD/DTS worked) was:

    In advancedsettings.xml I changed the passthrough device from iec958:CARD=CK804,DEV=0 to iec958:CARD=CK804,DEV=1. I found this "solution" in a forum thread. Maybe this will ring some bells on why and how it worked...

    Optical Audio Output for Nforce 4 (IEC958) sound card | AVS Forum

    Alsa Opensrc Org - Independent ALSA and linux audio support site

    Here there are some interesting ideas... which may work. Thanks for this!!! :)

    ...but I really don't know where to put asound.conf or ~/.asoundrc ?( > /etc/ is read only... I tried in /storage/.config/, but nothing changed...;(

    Since you get some sound now, have you tried turning off the passthrough option in Kodi and testing to see if something DD or DTS plays audio? I'm presuming it will now.

    Yes, I have sound with the passthrough disabled - the receiver shows pro logic II (pcm), not DD/DTS.

    Post the motherboard manufacturer's full model number, including CPU, graphics card, etc..

    Motherboard: EP-MF4 Ultra 3 (almost no information available as there is no more official website of the manufacturer)

    CPU: AMD Athlon 64 X2 4200+
    Video Card: NVidia GeForce GTX 260

    Will try to use the Optical output to see if any difference. Thanks for the detailed info!


    N.B. The DD/DTS passthrough worked at some point, hence the hardware supports it and the system is capable of! I need help in configuring the software to use the right components.

    Code
    m_deviceName      : @
    2020-12-21 18:08:07.153 T:140019641022208  NOTICE:         m_displayName     : Default (NVidia CK804 NVidia CK804)

    When this device is enabled and in alsamixer the spdif volume is set to 0, there is sound.

    The default passthrough device is set to Nvidia CK804 - IEC958 S/PDIF and I cannot change it in Kodi settings (no other options) - this will not work like this...(reasons: previous posts). I think it should default to the same "@", or somehow the onboard audio to be selected as a passthrough device.

    Help! 😭

    Based on your previous post about the nvidia proprietary spdif connector (thanks for this! 🙂), I have new idea:

    The passthrough device should not be Nvidia at all as LE/Kodi will try to pass the audio through the card and the card doesn't support it - dvi (and I don't want it).

    Previously I have used this PC with the analog surround connection and it works by default.

    Can you help me for:

    how to set up Alsa and/or Pulseaudio to use the digital (spdif) output on the motherboard (and not the card)?

    Thanks in advance! 🙂

    Wow... Is this my Christmas miracle?! 🙂 Comments and help... Yeey!!! (I almost gave up)

    Merry Christmas to you all!!! 🌲☃️

    chewitt , thank you for your time trying to figure it out!

    I am not using this proprietary NVidia connector (i do not have it). Probably this is why I am not getting any sound when NVidia SPDIF is selected in Kodi settings. Should I try to find/make one or to continue trying to bypass it and make the motherboard surround card take the audio?

    There is, let's say, some white noise starting with the LibreELEC splash screen and when I lower the spdif volume in Alsamixer there are crackles in 100-80-60... until in volume 0 when sound from the source comes on. Probably your suspicion that there is another signal there is right...

    I save the settings for Alsamixer using

    alsactl store -f /storage/.config/sound.conf

    I think I found a possible solution in different forums - configuring Pulseaudio for default sink, source, loaded modules and mapping the audio output. Unfortunately everything is made in the "read only / unwritable" section of LibreELEC /etc/pulse... default.pa, default.conf, or in /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf, where I am not sure the system is using it.

    It will be of great help if you can tell me how to edit the "locked" files that I need or how to change them externally and "recompile" the iso (not sure if i am using the right terms, but hope you understand what I mean).

    In the logs and the outputs of "pacmd list cards", "pactl list sinks", I can see the right path for the audio and that is capable (digital audio, spdif, formats...) but I cannot make the system to use it... Help!!! 😭

    pactl set-sink-formats # "pcm, ac3-iec61937; dts-iec61937; eac3-iec61937 makes no change (it is not stored and not listed later...

    Also, should I use Pulseaudio as system or as daemon...

    pulseaudio --system

    or

     pulseaudio -D - this works only for couple of seconds.

    ...and should I make it in autostart.sh?

    Wow... So many questions... 😭 But I am willing to learn and to make it work! 😁

    JonasStax , thanks for the advice! This is one of my next options - to use Windows or Ubuntu, but I really want to make it work with LibreELEC (and I am pretty sure i will be able to do so with some more help configuring it right.

    mglae , in Alsamixer I have 3 options for spdif "mute" or "on"; volume bar; output pcm/analog in/iec958 in. Only when I select "on", "volume 0" and "pcm" - there is sound (no passthrough).

    When passthrough is selected in Kodi the "mute/on" and "volume" options are not active - I can't change them (and also, the white noise from above disappears - no sound at all).

    Hope all the above gives you an idea on where the problem might be and how we can fight it! 🙂

    Thank you very much for your kind advice and for the time spent on my problem. 🙂

    If i enable NVidia CK804 - IEC958 S/PDIF as you suggest, then I have no sound at all no matter what I do.

    When I choose the Default NVidia CK804 and install Multimedia tools and then ssh to alsamixer, I am able to lower the spdif section to 0 (the default value is maximum) and then there is sound (no passthrough of course 😭).

    I think the problem is somewhere in the ALSA choosing the wrong output - analog instead of digital. The sound card have 6 ch analog surround as well as spdif digital output.

    Any advice on how to set the default output in ALSA will be much appreciated. ❤️

    P.S. Today I tinkered the Pulseaudio way and I found possible solution... Unfortunately all the etc/pulse/ part is read only and I cannot change anything...😭

    Also, tried combined sinks in Pulseaudio - again with no success... 😡

    Hello, Gods! :angel: Thanks for creating the best multimedia tool known to man! :heart:

    I will start with a difficult for me /shrug and probably dumb for many of you question and will be happy if I find someone here that can help me (or went on the difficult path to success :cool: )...

    Installation: Libreelec Generic 9.2.6 on old PC (AMD Athlon 64x2, NVidia GeForce GTX 260)

    Connections:

    PC>dvi cable>TV (for video)

    PC>s/pdif (digital coaxial cable)>AVR (for audio).

    The problem: no audio at all / later evolved in no DTS/DD passthrough audio.

    Attempts to resolve the issue:

    no audio at all

    1. All the settings in Kodi in all the possible configurations - without success

    2. Installed Multimedia tools and ssh in alsamixer. When I lowered the volume to 0 in the s/pdif section, the audio started, but no passtrough…

    no DTS/DD passthrough audio

    3. PulseAudio configuration – tried to set it to use ALSA, tried "dmix" and "dspoon", tried to load modules and also tried to turn it off completely - partial success – passtrough audio, but again without DTS/DD

    4. <advancedsettings.xml> - added settings for audio output: dts/dd passtrough audio and device passthrough.

    Here strange thing happened - everything started – I heard DD audio and the receiver lit up for DD signal... After restart - it does not work again... ;(;(;(

    5. I repeated all the previous steps (probably because of some sequence of things I pushed) - again without success. :cry:

    Later made a fresh install from USB to clean the mess I made with tinkering with the settings. Again I cannot replicate the success. ||

    Over the past 3 weeks (||yes, 3 weeks, every single day I am fighting with this||) I have researched all possible topics and forums, but I do not find a solution... This is my last hope that I will find here a “hacker”:evil: who fought through this and is willing to help me :*:blush:.

    I am not posting log file as I am currently using banned addons… but if the problem does not have a common solution, I will reset everything and post a log from clean installation

    I understand "the banned addons" policy and respect it! This is why i wrote that i will post a log from clean install.

    Here it is:

    Log

    Now I am back to point 1 - no sound at all...

    Please feel free to ask for any additional info as I do not know what will be of help to put in here…

    In case anyone has an idea and wants to help, please give me every advice that you have. (desperate)

    Thank you in advance!:)