feat(libSceAjmi): export missing firmware audio batch interfaces #6299

Closed
fogydes wants to merge 1 commit from upstream-pr/6299 into main
fogydes commented 2026-10-15 10:05:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-15T10:05:25Z.


What

Replaces the APS5_DUMMY_FUN placeholder in core/libs/prx/libSceAjmi/Export.cpp with 15 verified PlayStation 5 firmware internal Audio Jack Management (AJM) batch processing and decoding interfaces, and documents technical debt in docs/dev/debt/libSceAjmi.md:

  • sceAjmiBatchInitialize (XX3Kr-nBf7E)
  • sceAjmiBatchJobClearContext (UXCcm+K48BY)
  • sceAjmiBatchJobControl (5QWiwQn65H4)
  • sceAjmiBatchJobDecode (oKhR9F8CnNo)
  • sceAjmiBatchJobDecodeSingle (68qjHhmN3ew)
  • sceAjmiBatchJobEncode (8nMrFIF9qVc)
  • sceAjmiBatchJobGetCodecInfo (yZPDNv5SV-o)
  • sceAjmiBatchJobGetGaplessDecode (kuOIl3PPiu4)
  • sceAjmiBatchJobGetInfo (KKxuyAtYfTc)
  • sceAjmiBatchJobInitialize (iZU2JKcq1YA)
  • sceAjmiBatchJobRun (rTjFhtBvvHw)
  • sceAjmiBatchJobRunSplit (JvDkpuV2ZIk)
  • sceAjmiBatchJobSetGaplessDecode (z476OcEI2C0)
  • sceAjmiBatchStart (u9Ty3Xpabgs)
  • sceAjmiBatchWait (JJ9g04D344Q)

All stubs throw NotImplemented_nid_no_patch(__func__) so callers encounter explicit unimplemented exceptions rather than silent state desynchronization.

Tested

  • Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs), Ninja.
  • Conventions check: python tools/check_conventions.py --base origin/main passed cleanly with 0 violations.
  • Whitespace check: git diff --check reported 0 issues.
  • Relinker test suite: ctest --test-dir build-relinker ran with 166/166 passed (100%).
  • NID verification: all 15 export NIDs verified to match SHA-1 NID hashing rules via tools/nid_names.py compute_nid.
  • Not tested: physical PS5 AJM hardware DSP execution.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4871556687 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6299). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-15T10:05:25Z. --- ### What Replaces the `APS5_DUMMY_FUN` placeholder in `core/libs/prx/libSceAjmi/Export.cpp` with 15 verified PlayStation 5 firmware internal Audio Jack Management (AJM) batch processing and decoding interfaces, and documents technical debt in `docs/dev/debt/libSceAjmi.md`: - `sceAjmiBatchInitialize` (`XX3Kr-nBf7E`) - `sceAjmiBatchJobClearContext` (`UXCcm+K48BY`) - `sceAjmiBatchJobControl` (`5QWiwQn65H4`) - `sceAjmiBatchJobDecode` (`oKhR9F8CnNo`) - `sceAjmiBatchJobDecodeSingle` (`68qjHhmN3ew`) - `sceAjmiBatchJobEncode` (`8nMrFIF9qVc`) - `sceAjmiBatchJobGetCodecInfo` (`yZPDNv5SV-o`) - `sceAjmiBatchJobGetGaplessDecode` (`kuOIl3PPiu4`) - `sceAjmiBatchJobGetInfo` (`KKxuyAtYfTc`) - `sceAjmiBatchJobInitialize` (`iZU2JKcq1YA`) - `sceAjmiBatchJobRun` (`rTjFhtBvvHw`) - `sceAjmiBatchJobRunSplit` (`JvDkpuV2ZIk`) - `sceAjmiBatchJobSetGaplessDecode` (`z476OcEI2C0`) - `sceAjmiBatchStart` (`u9Ty3Xpabgs`) - `sceAjmiBatchWait` (`JJ9g04D344Q`) All stubs throw `NotImplemented_nid_no_patch(__func__)` so callers encounter explicit unimplemented exceptions rather than silent state desynchronization. ### Tested - Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs), Ninja. - Conventions check: `python tools/check_conventions.py --base origin/main` passed cleanly with 0 violations. - Whitespace check: `git diff --check` reported 0 issues. - Relinker test suite: `ctest --test-dir build-relinker` ran with 166/166 passed (100%). - NID verification: all 15 export NIDs verified to match SHA-1 NID hashing rules via `tools/nid_names.py compute_nid`. - Not tested: physical PS5 AJM hardware DSP execution. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 10:06:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T10:06:11Z.


Progress report (a08de68 → 667fc9e)

📉 System libraries: 88.35% (-0.36%, +15 declared functions)

🆕 15 declared as stubs
Library Name
libSceAjmi sceAjmiBatchInitialize
libSceAjmi sceAjmiBatchJobClearContext
libSceAjmi sceAjmiBatchJobControl
libSceAjmi sceAjmiBatchJobDecode
libSceAjmi sceAjmiBatchJobDecodeSingle
libSceAjmi sceAjmiBatchJobEncode
libSceAjmi sceAjmiBatchJobGetCodecInfo
libSceAjmi sceAjmiBatchJobGetGaplessDecode
libSceAjmi sceAjmiBatchJobGetInfo
libSceAjmi sceAjmiBatchJobInitialize
libSceAjmi sceAjmiBatchJobRun
libSceAjmi sceAjmiBatchJobRunSplit
libSceAjmi sceAjmiBatchJobSetGaplessDecode
libSceAjmi sceAjmiBatchStart
libSceAjmi sceAjmiBatchWait
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6189564040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6299#issuecomment-6189564040). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T10:06:11Z. --- <!-- progress-report --> ### Progress report (a08de68 → 667fc9e) 📉 **System libraries**: 88.35% (-0.36%, +15 declared functions) <details> <summary>🆕 15 declared as stubs</summary> | Library | Name | | - | - | | libSceAjmi | `sceAjmiBatchInitialize` | | libSceAjmi | `sceAjmiBatchJobClearContext` | | libSceAjmi | `sceAjmiBatchJobControl` | | libSceAjmi | `sceAjmiBatchJobDecode` | | libSceAjmi | `sceAjmiBatchJobDecodeSingle` | | libSceAjmi | `sceAjmiBatchJobEncode` | | libSceAjmi | `sceAjmiBatchJobGetCodecInfo` | | libSceAjmi | `sceAjmiBatchJobGetGaplessDecode` | | libSceAjmi | `sceAjmiBatchJobGetInfo` | | libSceAjmi | `sceAjmiBatchJobInitialize` | | libSceAjmi | `sceAjmiBatchJobRun` | | libSceAjmi | `sceAjmiBatchJobRunSplit` | | libSceAjmi | `sceAjmiBatchJobSetGaplessDecode` | | libSceAjmi | `sceAjmiBatchStart` | | libSceAjmi | `sceAjmiBatchWait` | </details>
adriadam10 commented 2026-10-18 19:51:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-18T19:51:06Z.


Closing this, for these reasons:

  • libSceAjmi is APS5_DUMMY_FUN on purpose: per the duplicate-export rule (#228), the AJM exports live in libSceAjm.native, which already implements the sceAjmBatch* family (Initialize, JobRun, JobRunSplit, JobDecodeSingle, JobGetGaplessDecode, ...). Re-adding the same set under libSceAjmi goes against that.
  • The 15 functions have no signature, no parameters and no behaviour: they only throw, exactly what a missing export already does. The only visible effect is +15 "declared functions" in the progress report.
  • The PR body gives no title, issue or measurement that needs these symbols, and the checks listed under "Tested" don't exercise them.

Welcome to reopen with a concrete title or issue that imports sceAjmi*, plus signatures from a reference (KytyPS5/shadPS4/prosper) and a test.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254385760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6299#issuecomment-6254385760). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-18T19:51:06Z. --- Closing this, for these reasons: - `libSceAjmi` is `APS5_DUMMY_FUN` on purpose: per the duplicate-export rule (#228), the AJM exports live in `libSceAjm.native`, which already implements the `sceAjmBatch*` family (`Initialize`, `JobRun`, `JobRunSplit`, `JobDecodeSingle`, `JobGetGaplessDecode`, ...). Re-adding the same set under `libSceAjmi` goes against that. - The 15 functions have no signature, no parameters and no behaviour: they only throw, exactly what a missing export already does. The only visible effect is +15 "declared functions" in the progress report. - The PR body gives no title, issue or measurement that needs these symbols, and the checks listed under "Tested" don't exercise them. Welcome to reopen with a concrete title or issue that imports `sceAjmi*`, plus signatures from a reference (KytyPS5/shadPS4/prosper) and a test.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6299
No description provided.