mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-16 01:50:38 +00:00
06bb2bb268e512511ed5eb646fcaac82b26159a2
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'.
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
Languages
Diff
100%