docs(libSceCamera): record the indexes sceCameraIsAttached answered on firmware 11.60 #24428
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24428"
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 xXPBSXx on 2026-11-20T16:22:23Z.
What
The entry for
sceCameraIsAttachedindocs/dev/debt/libSceCamera.md(line 26) says that no camera is ever attached: index 0 returns 0 and every other index returnsSCE_CAMERA_ERROR_PARAM(0x802E0000), as shadPS4 does without a configured camera. A probe on a PS5 with firmware 11.60, from a payload process, openedlibSceCamera.sprxtwice (both attempts loaded; lines 3 and 4 of the raw output) and calledsceCameraIsAttachedwithoutsceCameraOpenorsceCameraInit, once per index, in two runs: index 0 returned 0 (case b.1, line 8), index 1 returned 0 (case b.2, line 9), index 2 returned0x802e0000(case b.3, line 11) and index -1 returned0x802e0000(case b.4, line 13), the last two each after the console's own messagesceCameraDeviceIsAttached invalid index:<n>(lines 10 and 12). So index 1 differs from the entry. The entry now says that, and that other indexes are unmeasured. Only this one entry changes, as a new fragment indocs/dev/debt/changes/; no code does, because the console result for index 1 without a camera setup does not say what a title with a configured camera would see.AnyPS5 returns
0x802E0000for every index other than 0 (core/libs/prx/libSceCamera/Export.cpplines 25 to 27), so index 1 differs, read from the source and not run.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005, line 1 of each raw output), from a homebrew payload process, on 2026-11-20 at 12:33 UTC and at 13:03 UTC (the console's own clock in thePROBElines reads 14:15:53Z and 14:45:50Z, 1 h 42 min ahead of the runner's clock, within a second). A title process may differ. Both runs have theirENDline (line 14). The controlsceKernelGetCurrentCpuinlibkernel.sprxresolved (line 5) and the negative control did not (line 6); all ten names looked up resolved (line 7, the flags1111111111).sceCameraOpen)sceCameraIsAttached(0)sceCameraIsAttached(1)0x802E0000(line 26)sceCameraIsAttached(2)0x802e0000, messageinvalid index:2(lines 10, 11)0x802E0000sceCameraIsAttached(-1)0x802e0000, messageinvalid index:-1(lines 12, 13)0x802E0000The line numbers of
Export.cppare those ofmainat7fa48cd1c6. The entry is 911 characters without the list marker, below the length limit. The fragment is one commit (headed0bff7d7a02onmainat0a025bd3c6) that adds only the fragment file; on the head merged intomainat7fa48cd1c6, I rantools/check_conventions.py --base upstream/main(no finding, 0 errors) anddebt_fold --check(exit code 0). This is a documentation change, so no test was added or run. Not tested: Linux, macOS, the CI runner, a title process, an opened or configured camera, other indexes, and firmware other than 11.60.Overlap: counted on 2026-11-20 from the 2130 open pull requests (file lists from the GitHub API, the 12 with 100 or more files read in full through the files API; the patches of the 1256 pull requests that change a file under
docs/dev/debt/or a file oflibSceRegMgr,libSceCameraorlibSceLibreSslwere searched for the names of this entry, the fragment names and the sibling names, at 15:13 to 15:36 UTC) againstmainat7fa48cd1c6. This pull request adds one file,docs/dev/debt/changes/docs-libscecamera-isattached-index.md, and no code; no open pull request has a file of that name. No open pull request changes the entry of this pull request indocs/dev/debt/libSceCamera.md, and no patch of the open pull requests changes a line that namessceCameraIsAttached. #19486 (feat(libSceNKWebKit): implement WKContextGetGeolocationManager and WKGeolocationManager functions) shows lines of the Camera sources in its patch, but its head is identical tomaininConfig.cpp,Attributes.cppandlibSceCamera.md, so it changes none of them; #22362 (feat(sysmodule): answer IsCameraPreloaded and forward UnloadModuleByNameInternal) is about another module. A merge of this head intomainat7fa48cd1c6was checked withgit merge-treeand is clean. This pull request does not depend on any of them (Depends on: none).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)