feat(libSceAudioIn): open ports through the Ex calls and accept the two setters #8914
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8914"
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 hypermoist on 2026-10-21T05:50:51Z.
What
Four
libSceAudioInexports thatd4387fbaf7added as throwing stubs now behave as in the decrypted PS5 12.00libSceAudioIn.sprx:sceAudioInOpenEx(+DY07NwJb0s, 0x810)sceAudioInOpenalso uses (0x4C0). It passes its 4th argument as the routine's 4th, whichsceAudioInOpensets to 0, and the remaininglen, freq, paramunchanged. That argument is used in only one place: the routine passes it tosceMbusAddHandleByUserIdwhen registering the handle.sceAudioInOpen(user, type, index, len, freq, param); the extra argument is ignored, since there is no Mbus registration here.sceAudioInHqOpenEx(CTh72m+IYbU, 0x8D0)sceAudioInHqOpen(0x880), it skips thefreq == 48000,len == 128andparam == 2checks, so only the routine's own checks apply.sceAudioInOpenEx. Forwarding to upstream'ssceAudioInHqOpenwould add those checks, so a 256-sample 16 kHz port opens here as it does on the console.sceAudioInSetCompressorPreGain(vyh-T6sMqnw, 0x2D40)xor eax, eax; retsceAudioInSetNoiseGateThreshold(6jUfpgzO2J0, 0x2EB0)xor eax, eax; retThe two
Exsignatures are read from how the module moves their arguments, so theirunknown signaturedebt lines are removed. The two setters read no argument on the console, so their parameter lists stay unknown; their debt lines now say they return 0, as the console does.The bodies are written from this observed behaviour; nothing from the module is copied. I do not know of a title that imports these four; this replaces throws with the console's answers.
Not included:
sceAudioInDeviceOpenExand theDevice*Openfamily, which use a separate device-open routine upstream does not implement.Tested
Linux (CachyOS, GCC, Release): full build. All 546
guest_*, kernel and Ampr tests pass.guest_audio_in(both itscaptureandno_devicemodes) now checks:sceAudioInOpenExandsceAudioInHqOpenEx;sceAudioInHqOpenExaccepts 256 samples at 16 kHz, whichsceAudioInHqOpenrejects;Forwarding
sceAudioInHqOpenExtosceAudioInHqOpeninstead makes both modes fail.tools/check_conventions.pyis clean. No open PR touches these names or NIDs, and a three-way merge against every open PR touching these files (including #8889 on the debt file) adds no conflicts.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T05:51:38Z.
Progress report (
7ce3b1d→50985e2)📈 System libraries: 53.27% (+0.05%, +4 implemented functions)
✅ 4 implemented
sceAudioInHqOpenExsceAudioInOpenExsceAudioInSetCompressorPreGainsceAudioInSetNoiseGateThreshold⚪ 2 behaviourally empty (constant return or throw)
sceAudioInSetCompressorPreGainsceAudioInSetNoiseGateThresholdImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T05:55:24Z.
Review: APPROVED
The
OpenExsignatures and forwarding behavior are tied to the stated PS5 12.00 disassembly evidence, and theHqOpenExpath correctly avoids the stricter 128/48 kHz checks insceAudioInHqOpen. The regression covers that distinction, including 256 samples at 16 kHz, and exercises the setters. I reviewed the diff and the reported full Linux build / 546-test run; I did not independently run the audio test in this environment. No blocker found.