fix(voiceqos): return the console's sceVoiceQoSInit argument errors #1407
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1407"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T02:42:06Z.
What
sceVoiceQoSInitused to throw for every argument it rejected, because its error codes were unknown (TechnicalDebt). I measured them on a PS5 (firmware 13.60) by loadinglibSceVoiceQoS.sprxwithdlopenfrom a homebrew payload and calling the real export. The 4 MiB block was filled with0xAAbefore each call, to check whether the call writes to it.sceVoiceQoSEnd()before any init0x804E0901(LIBVOICEQOS_NOT_INIT)0x804E0902(LIBVOICEQOS_ARGUMENT_INVALID)0,1,0x100…0x3FFFF0x804E09020x40001,0x80000,0x100000,0x400000,0xFFFFFFFF0x804E09020,1,0x08000000,0x20000001,0x30000000,0x40000000,0x80000000,-10x804E09020x40000, type0x20000000or0x10000000So the size must be exactly
0x40000, and the block is never touched when the call is refused. This branch returns0x804E0902in all of those cases, instead of throwing.prosper read the same checks from the module (
mem_size != 0x40000, the two app types, the null block), and they match every measured case. It also reads that the init flag is checked first and refused with0x804E0905(LIBVOICEQOS_INITIALIZED). That case cannot be measured, because a valid init never returns in a payload, so this branch takes it from prosper and the TechnicalDebt entry says so. The code names come from the Vita SDK error table, which uses the same0x804E09xxVoiceQoS range.Title: Propagation: Paradise Hotel (PPSA15878) calls
sceVoiceQoSInit(block, 0x40000, 0x20000000)from one direct call site in the game executable, and branches on a nonzero result. The existing entry also names PPSA14632 (0x20000000) and PPSA26344 (0x10000000).Tested
libSceVoiceQoS.sprxthroughdlopen: every case in the table. The probe source and the raw output are in the comment below.libs, full CTest 408/408.guest_voice_qosnow checks every refused case and the untouched block, then a valid init, then a second init.libs, CTest 0 failed of 406 (GPU execution tests skipped, the VM has no GPU).<or== 0instead of!=, dropping the null, type, or init-flag check, moving the init-flag check after the argument check, swapping the error code, not setting the flag) each make aguest_voice_qosvariant fail.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T02:42:14Z.
Probe and raw output. It is a ps5-payload-sdk v0.43 payload (
prospero-clang -O1 -rdynamic) that loadslibSceVoiceQoS.sprxwithdlopen. It was run several times, with the cases that could block placed last each time. The source below is the last version, and the raw output combines the runs. The runs stopped at the valid callssize=0x40000, type=0x20000000andtype=0x10000000, which never returned within 300 s and 60 s.voiceqos_main.c
raw output