Posts by altx

    Hi,

    I want to thank everyone here for their efforts and to share what ultimately worked for me.
    SBC: pi 4, 4gb ram
    OS: Linux LibreELEC 5.10.110
    SteamLink version: steamlink-rpi3-1.2.0.241.tar.gz
    Audio: HDMI PCM stereo

    Followed OP's directions:

    This worked well except that I had no audio output at all the following modifications were required:

    Quote

    Audio didn't work. I figured it was because I was testing with a linux host but it didn't work in windows either.

    To fix add this to your config.txt

    Code

    Code
    mount -o remount,rw /flash
    nano /flash/config.txt
    ### add this then reboot
    dtparam=audio=on

    Then use this new steamlink.sh that does the udev stuff automatically and loads pulseaudio before steamlink

    Which led me to getting garbled sound on the analogue audio jack only, adding the following lines in the steamlink.sh file:

    Code
    # start pulseaudio
    echo 'starting pulseaudio'
    pulseaudio -k 2>/dev/null
    cat /etc/pulse/default.pa | sed 's/^\(load-module module-udev-detect\|load-module module-detect\)/\1 tsched=0/' > /storage/steamlink/pulse_default.pa
    pulseaudio -D -n -F "$TOP/pulse_default.pa"
    # The next line is used for setting the audio output device. To obtain a list of posible values
    # run 'pulseaudio -d', then 'pactl list sinks' which will list all availible output devices, use 
    # the name: field of the desired output as the argument for the following command. 
    pactl set-default-sink alsa_output.1.hdmi-stereo

    And that's it, works perfectly!