feat(libSceAudioOut): return 0 from sceAudioOutSetMainOutput like the firmware stub #8652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8652"
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 nikowolf123 on 2026-10-20T20:04:39Z.
What
sceAudioOutSetMainOutput(NIDKI9cl22to7E) now returns 0 and does nothing, for any arguments. Until now it threwsceAudioOutSetMainOutput not implemented. It has no error path and writes no output.The source is the symbol survey of firmware 12.70's
libSceAudioOut.sprxin PS5-Audio-Passthrough-Research,docs/FINDINGS.mdL25, which lists this export as "yes, but it is a stub:xor eax,eax; ret". That body reads no argument register, writes no memory, calls nothing and returns 0. The row is unchanged at the repository's latest commit (c3be9c2, L25), anddocs/dev/debt/libSceAudioOut.mdalready cites the same document forsceAudioOutExOpen,sceAudioOutExConfigureOutput,sceAudioOutExCloseandsceAudioOutSysGetHdmiMonitorInfo.compute_nid("sceAudioOutSetMainOutput")intools/nid_names.pygivesKI9cl22to7E, the NID in that row.src/Unimplemented.cpp, and the function is defined insrc/AudioOut.cppaftersceAudioOutSysOpen. It stays declared without parameters: the export reads none, so whatever a caller passes is ignored.docs/dev/debt/libSceAudioOut.mdunder a new Silent stubs section, which replaces the function's "unknown signature" line under Unknown function info.tools/check_conventions.pyrequires that listing for an export whose body is a constant return: on a probe commit without the entry it reports[silent-stub] ... sceAudioOutSetMainOutput.sceAudioOutMasteringTerm) and #9032 (forsceAudioOut2LoTerminate) also add a### Silent stubssection at the top ofdocs/dev/debt/libSceAudioOut.md. Whichever of them merges later conflicts there and needs a rebase that keeps all entries under one heading. As of 2026-10-21, no other open pull request's diff mentionssceAudioOutSetMainOutputorKI9cl22to7E.Tested
Linux: WSL2 Ubuntu 26.04, GCC 15.2.0 (Ubuntu 15.2.0-16ubuntu1), Release. I built the
libSceAudioOutandaudio_out_sys_teststargets and ranctest -R '^audio_out_sys$' --output-on-failure --timeout 120:main434e965d4, and again atd16be88e3onmain2c4b116da:audio_out_syspasses (1/1).main, where the function still throws "not implemented":audio_out_sysfails withfailed: sceAudioOutSetMainOutput does not throwandfailed: sceAudioOutSetMainOutput returns 0, and no other check fails.tools/check_conventions.py --base origin/mainpasses, also with--titleand--body.tools/progress.py --module libSceAudioOutonmain2c4b116da: done goes from 59 to 60 and todo from 86 to 85; the only newly done function issceAudioOutSetMainOutput.Windows: not built. No title was run.
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
Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-21T07:35:15Z.
Windows run of 18088be5c0 merged onto
mainb77bd58806(8e72e4cb0a, clean), the build the description lists as not done. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release,BUILD_TESTING=ON.Built
libSceAudioOutandaudio_out_sys_testswith no errors or warnings;ctest --repeat until-fail:2onaudio_out_sys: passes on both repeats. Not run: the negative control againstmain's library, a title.Imported from boykopovar/AnyPS5. Originally posted by xdCloudy on 2026-10-22T02:16:14Z.
@nikowolf123 — Marc's review on #9541 found shared AudioOut implementation/debt paths, though the exports are distinct. #9027's author agreed that #9027 should land before #9541. Would you also agree to land #8652 before #9541? I'll keep #9541 in draft until the order is settled.
Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T15:35:03Z.
Review: COMMENTED
Checked against main
b607bfdc8band PS5-Audio-Passthrough-Research FINDINGS.md at cf3c921 and c3be9c2:libSceAudioOut.sprx(not the payload-SDK stub mentioned separately) and readsxor eax,eax; ret. KI9cl22to7E matches the name, and main still throws for it (Unimplemented.cpp:130), so returning 0 matches the firmware body rather than being a made-up success.git merge-treeagainst main shows two conflicts:AudioOut.cpp: main changed the next function tosceAudioOutSetMixLevelPadSpk(int handle, std::uint32_t mixLevel)(AudioOut.cpp:654), so please keep that signature when resolving.docs/dev/debt/libSceAudioOut.md: #8525 and #9032 have landed their### Silent stubsentries, as your description anticipated, so this entry can go into that existing section.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.