Hasanuddin Abu Bakar 06bb2bb268 linux: fix HDMI audio on monitors with missing EDID audio modes (#18)
Some monitors do not advertise audio modes in their EDID CEA block,
causing audio_info.mode_count to be zero. When this happens, the
channel counting loop never executes and sceHdmiSetAudioConfig is
called with channels=0, which silently disables audio output on the
PS5 HDMI bridge.

Add a stereo (2ch) fallback when no audio modes are found so that
sceHdmiSetAudioConfig always receives a valid channel count.

Also fix a loop variable reuse bug where the inner audio channel
counting loop shared the iterator 'i' with the outer
for_each_oldnew_crtc_in_state loop. Rename the inner iterator to 'j'.
2026-06-22 17:54:33 +02:00
2026-06-19 17:17:46 +02:00
2026-05-24 15:36:49 +02:00

ps5-linux-patches

Compilation

git clone https://github.com/ps5-linux/ps5-linux-patches
git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
cd linux
git checkout "tags/v$(grep -m1 "^# Linux/" ../ps5-linux-patches/.config | awk '{print $3}')"
git apply ../ps5-linux-patches/linux.patch
cp ../ps5-linux-patches/.config .config
make -j$(nproc)

Installation

In the same linux folder after compilation, do:

sudo make modules_install
sudo make install

TODO

  • amdgpu smu driver to show correct gpu frequency and temperature
  • xhci driver adjustment for 0x104d:0x9108 to enable bluetooth
  • hdmi converter improvments: hdr, rgb range, 120hz

Bugs

  • screen save does not work properly
  • hdmi audio output does not work on some monitors
  • hdmi 1440p and 2160p video output does not work on some monitors
Description
No description provided
Readme 460 KiB
Languages
Diff 100%