Raspberry Pi 4b audio

  • After a new install of libreelec I cannot get proper audio via hdmi. I tried all the options for audio in the settings but nothing.

    I then added:

    Code
    hdmi_drive=2
    hdmi_force_hotplug=1

    to the config.txt and one hdmi port just gives me the rainbow pattern, the second port does show me kodi and the audio works BUT every couple of seconds the screen blanks out. So I removed hdmi_force_hotplug=1 and now the first hdmi port works with no display blanking but no audio. I'm not sure wtf is causing this, any insight would be appreciated