feat(libSceAudioIn): return 0x80260100 for unavailable vmic service #28901

Open
MertCtn wants to merge 1 commit from upstream-pr/28901 into main
MertCtn commented 2026-12-04 14:49:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MertCtn on 2026-12-04T14:49:14Z.


What

[DRAFT] Return 0x80260100 for unavailable vmic service in libSceAudioIn.

The 4.03 module runs init, opens /vmicDdShmAin and /vmicDdEvfAin, returns 0x80260100 when either is unavailable, and only then validates len and freq. Mirror that order on the host: probe both objects through the host kernel, return 0x80260100 when unavailable, and keep the service tail throwing.

Tested

Windows 11, MSYS2 UCRT64 GCC 16.2.0. Full guest_audio_in* selection passes; check_conventions.py reports 0 errors; pr_overlap.py --names for the export finds no open PR with the same changes.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5648637290 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28901). Originally posted by [MertCtn](https://github.com/MertCtn) on 2026-12-04T14:49:14Z. --- ### What [DRAFT] Return 0x80260100 for unavailable vmic service in libSceAudioIn. The 4.03 module runs init, opens /vmicDdShmAin and /vmicDdEvfAin, returns 0x80260100 when either is unavailable, and only then validates len and freq. Mirror that order on the host: probe both objects through the host kernel, return 0x80260100 when unavailable, and keep the service tail throwing. ### Tested Windows 11, MSYS2 UCRT64 GCC 16.2.0. Full `guest_audio_in*` selection passes; `check_conventions.py` reports 0 errors; `pr_overlap.py --names` for the export finds no open PR with the same changes. ### 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 and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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 - [ ] Depends on: none - [ ] Fixes: none - [ ] Unblocks: none - [ ] GPUs tested: n/a - [ ] AI-assisted: yes
MarcZX10 commented 2026-12-04 15:15:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T15:15:57Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head e1f1bcb6b92e55b76f2d2b49e774867d375f2192 with the pinned repo_read.py reader and the prepared diff. No tests or build checks were run.

Results

Check Result Note
Changed behavior inspection passed Initialization and service probes precede parameter validation.
Tests not run No execution or compilation.

Negative control

Not run; no tests were executed.

Findings

Blocking

None.

Non-blocking

  • The changed tests cover the unavailable-service path, but do not exercise when both service objects are available, including the subsequent size and frequency validation and throwing service tail. Consider adding coverage for that path. This is optional. Changed test and implementation.

Sources

Not verified

Read all five files listed in manifest.json from the prepared bundle; the implementation, CMake file, and GuestAudioIn.cpp were inspected selectively, while the VMIC bounds test and debt note were read in full. files.json lists no excluded files. Tests, service-present behavior, and physical-console behavior were not verified. The Windows 11 test results in the PR description are author-reported, not run during this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6191456815 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/28901#pullrequestreview-6191456815). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T15:15:57Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `e1f1bcb6b92e55b76f2d2b49e774867d375f2192` with the pinned `repo_read.py` reader and the prepared diff. No tests or build checks were run. ## Results | Check | Result | Note | |---|---|---| | Changed behavior inspection | passed | Initialization and service probes precede parameter validation. | | Tests | not run | No execution or compilation. | ## Negative control Not run; no tests were executed. ## Findings ### Blocking None. ### Non-blocking - The changed tests cover the unavailable-service path, but do not exercise when both service objects are available, including the subsequent size and frequency validation and throwing service tail. Consider adding coverage for that path. This is optional. [Changed test](https://github.com/boykopovar/AnyPS5/blob/e1f1bcb6b92e55b76f2d2b49e774867d375f2192/core/libs/tests/GuestAudioInVmicMicLevelBounds.cpp#L113) and [implementation](https://github.com/boykopovar/AnyPS5/blob/e1f1bcb6b92e55b76f2d2b49e774867d375f2192/core/libs/prx/libSceAudioIn/Export.cpp#L236). ## Sources - [VMIC availability probe and validation order](https://github.com/boykopovar/AnyPS5/blob/e1f1bcb6b92e55b76f2d2b49e774867d375f2192/core/libs/prx/libSceAudioIn/Export.cpp#L236) - [Changed VMIC test expectations](https://github.com/boykopovar/AnyPS5/blob/e1f1bcb6b92e55b76f2d2b49e774867d375f2192/core/libs/tests/GuestAudioInVmicMicLevelBounds.cpp#L110) ## Not verified Read all five files listed in `manifest.json` from the prepared bundle; the implementation, CMake file, and `GuestAudioIn.cpp` were inspected selectively, while the VMIC bounds test and debt note were read in full. `files.json` lists no excluded files. Tests, service-present behavior, and physical-console behavior were not verified. The Windows 11 test results in the PR description are author-reported, not run during this review. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/28901:upstream-pr/28901'
git switch 'upstream-pr/28901'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/28901'
git switch 'upstream-pr/28901'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/28901'
git switch 'upstream-pr/28901'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/28901'
git switch 'main'
git merge --squash 'upstream-pr/28901'
git switch 'main'
git merge --ff-only 'upstream-pr/28901'
git switch 'main'
git merge 'upstream-pr/28901'
git push origin 'main'
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!28901
No description provided.