mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-16 01:50:38 +00:00
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'.
333 KiB
333 KiB