23 KiB
libSceAvSetting technical debt
Recovered behavior
sceAvControlIsColorimetryHdr(NID3jnRsjnzIjI) maps colorimetry values 9 through 20 to a 0/1 table; value 18 and values outside that range return false.sceAvControlIsDeepColorSupportedByMonitorInfo(NIDfnqFpsRrsg4) checks masks0x0aat offsets0x74and0x75, then mask0x03at offset0x352.sceAvControlIsHdrSupportedByMonitorInfo(NID5wP7bivaX7c) requires mask0x04at offset0x358and mask0x30at offset0x78.sceAvControlIsModeGen1Vr(NIDC81K5tny9CE) returns bit 1 of the 32-bit field at offset0x30.sceAvControlIsModeSystemDefault(NIDrVK3QqurCkg) returns true when bit 0 of the 32-bit field at offset0x30is clear.
These behaviors are recovered from static disassembly of the firmware 13.60 libSceAvSetting.sprx using Ghidra 12.1.4. The opaque monitor-info and video-mode layouts are represented by byte offsets because no project structure definition was found. These implementations have not been verified on a console.
Unknown function info
-
sceAvControlChangeOutputLayout, sceAvControlChangeOutputMode, sceAvControlChangeOutputModeForDiag, sceAvControlChangeProcessAttribute, sceAvControlChangeScanInMode - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlGetCurrentOutputMode, sceAvControlGetCurrentOutputModeWithSync - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlInit, sceAvControlIsAudioOutModeSupportedByMonitorInfo, sceAvControlIsDeviceConnected - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlIsSuspendedProcessOutputModeAvailable, sceAvControlIsVideoOutModeSupportedByMonitorInfo - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlSetColorEffect, sceAvControlSetDefaultAudioOutMode - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlSetDefaultVideoOutMode - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlSetHdrMetadata, sceAvControlSetVideoOutSource, sceAvSettingAddCallbacks - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingAddCallbacksForLnc, sceAvSettingAddCallbacksForSocialScreen - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlInit2 throws on every call. Its name and NID
Jhcj4HDIw04are confirmed in the pinned PS5 13.60 inventory; signature and behavior remain unknown. The parameterlessintdeclaration is an import placeholder, not a verified prototype or working implementation. -
sceAvSettingChangeOutputMode, sceAvSettingChangeOutputMode2, sceAvSettingChangeOutputMode3, sceAvSettingChangeOutputModeForDiag - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingCallbackFuncsInit, sceAvSettingCallbackFuncsInit_, sceAvSettingCallbackFuncsInitForLnc, sceAvSettingCallbackFuncsInitForLnc_ - the layout of the callback block after its size field is unknown. They follow firmware 13.42's libSceAvSetting.sprx, read from its disassembly and run natively on x86-64 (not a console): each takes one pointer and returns nothing; a null pointer is ignored; otherwise
sceAvSettingCallbackFuncsInitandsceAvSettingCallbackFuncsInit_clear bytes 0 to 31 and store 0x20 as a 32-bit value at byte 0, andsceAvSettingCallbackFuncsInitForLncandsceAvSettingCallbackFuncsInitForLnc_clear bytes 0 to 15 and store 0x10 there. Later bytes are left unchanged. None of them needssceAvSettingInit. -
sceAvSettingChangeProcessAttribute, sceAvSettingCheckCallback, sceAvSettingDebugAddCallbacks, sceAvSettingDebugClearDiagCommand - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingDebugSetDiagState, sceAvSettingDebugSetHdmiMonitorInfo, sceAvSettingDriverChangeConnectionStatus, sceAvSettingDriverUpdateStatus - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingGetCurrentDeviceInfo_, sceAvSettingGetCurrentHdmiDeviceId, sceAvSettingGetCurrentOutputMode2_, sceAvSettingGetCurrentOutputMode_ - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingGetDetailedHdcpStatus, sceAvSettingGetDeviceInfo, sceAvSettingGetHdcpStatus, sceAvSettingGetHdmiConnectDisconnectNum, sceAvSettingGetHdmiKsvList - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingGetHdmiMonitorInfo, sceAvSettingGetHdmiRawEdid, sceAvSettingGetMorpheusPuStatus, sceAvSettingGetNativeHdmiMonitorInfo, sceAvSettingGetRawHdmiMonitorInfo - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingInit, sceAvSettingIsSupportedAudioOutModeByHdmiMonitorInfo, sceAvSettingIsSupportedHdcpVersionByHdmiMonitorInfo, sceAvSettingIsSupportedVideoOutModeByHdmiMonitorInfo, sceAvSettingIsSuspendedProcessOutputModeAvailable - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingIsSuspendedProcessOutputModeAvailable2, sceAvSettingIsVrSupportedByHdmiMonitorInfo2, sceAvSettingNotifyResponseForSocialScreen, sceAvSettingNotifyUmdEvent - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingRemoveCallbacks, sceAvSettingRemoveProcessOutputMode - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingSetHdcpMode - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingSetHdmiGamutMetadata_ - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvSettingSetVideoOutputColorEffect, sceAvSettingSimulateProcessOutputModeArbitration_, sceAvSettingWaitCallback - names and NIDs match the PS5 3.20 inventory; signatures and behavior are unverified. No-parameter declarations resolve imports and throw through
NotImplemented_nid_no_patchwhen called. -
sceAvControlGetPuTypeByMonitorInfo (libSceAvSetting) - unknown signature
-
sceAvControlIsVideoOutModeSupportedByMonitorInfoWithOptions (libSceAvSetting) - unknown signature
-
sceAvControlSetLayoutModeForDiag (libSceAvSetting) - unknown signature
-
sceAvControlSetMonitorFakeMode (libSceAvSetting) - unknown signature
-
sceAvControlGetCurrentOutputSysMode (libSceAvSetting) - unknown signature
-
sceAvControlGetNativeHdmiMonitorInfo (libSceAvSetting) - unknown signature
Additional callable exports
- Additional callable exports - 18 entries present in both version-labelled images are import-resolution declarations only. None is listed in the pinned public 3.20 catalogue for this library. Neither label independently authenticates retail firmware provenance. Parameter lists, return types and behavior are unverified; parameterless
intdeclarations are placeholders, not verified ABI contracts. Every entry throws throughNotImplemented_nid_no_patch. Unidentified names use literal NID aliases. No runtime functionality is implemented. Data exports require separate layout and ownership analysis. Identified candidate names match their NIDs in the public symbol database or supplemental catalog.
| Name | NID |
|---|---|
Unknown |
+QkxEV+rZws |
Unknown |
0BKuKlQG8zE |
Unknown |
0mMgouCMXQ4 |
Unknown |
0vwiTglFTz4 |
Unknown |
A143jTEYkNw |
Unknown |
DtJ45BO7LtY |
Unknown |
GYAho0we28c |
Unknown |
JlZQqZOsTMQ |
Unknown |
MNZaRdvvdU4 |
Unknown |
bM9VthphLmg |
Unknown |
cANt7oF1VsA |
Unknown |
cK+dKi9GYYA |
Unknown |
mp2s52Yr4pc |
Unknown |
nWFSNYt07Cw |
Unknown |
nhvN5B5bvyc |
Unknown |
osJaW+pc9kw |
Unknown |
s-Egk+i6sAY |
Unknown |
tIR02KtiDXw |
Unknown function info (continued)
-
sceAvControlRemoveProcessOutputMode (libSceAvSetting) - unknown signature
-
sceAvControlUpdateDriverStatus (libSceAvSetting) - unknown signature
-
sceAvControlNotifyUmdEvent (libSceAvSetting) - unknown signature
-
sceAvControlAddCallbacksForLnc (libSceAvSetting) - unknown signature
-
sceAvControlAddCallbacksForResourceArbitrator (libSceAvSetting) - unknown signature
-
sceAvControlRemoveCallbacks (libSceAvSetting) - unknown signature
-
sceAvControlCheckCallback (libSceAvSetting) - unknown signature
-
sceAvControlWaitCallback (libSceAvSetting) - unknown signature
-
sceAvControlSetColorMode (libSceAvSetting) - unknown signature
-
sceAvControlCheckMonitorInfoCapability (libSceAvSetting) - unknown signature
-
sceAvControlCheckVideoOutMode (libSceAvSetting) - unknown signature
-
sceAvControlSetCheckoutputMode (libSceAvSetting) - unknown signature
-
sceAvControlSetSystemVideoMode (libSceAvSetting) - unknown signature
-
sceAvControlDebugAddCallbacks (libSceAvSetting) - unknown signature
-
sceAvSettingSetDisplayBlackLevel, sceAvSettingTerm - on firmware 13.42 both return
0x802A00FFand do nothing else, measured in an emulator twice with null, small and all-ones arguments (BunnyFl on #9449); they return that code here. Signatures and behavior on other firmware are unverified. -
Unknown NIDs
Iv3zoMND6xUandkvYuLJa0CyU(libSceAvSetting) - names, parameter types and the meaning of the results are unknown; only the 32-bit return is claimed. In firmware 13.42'slibSceAvSetting.sprx(SHA-2560328842b052c8741c970f603292ae97caac93865363abd225e2d887ab3eb0c37), read from disassembly and not run on a console,Iv3zoMND6xU(0x8d50) returns0x802A00FFwithout reading an argument, andkvYuLJa0CyU(0x7630) returns bit 8 of the 32-bit field at offset0x30of its first argument, the fieldsceAvControlIsModeGen1VrandsceAvControlIsModeSystemDefaultread. That body has no null check, so a null or unreadable pointer faults on the console; here it throws.
Functional
- sceAvControlGetCurrentDeviceId, sceAvControlGetDetailHdcpStatus, sceAvControlGetDeviceInfo, sceAvControlGetHdcpStatus and sceAvControlGetKsvList (libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at
0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Before it they check the output pointer (null:0x802A0001for GetCurrentDeviceId and GetKsvList,0x802A0002otherwise) and the selector of GetCurrentDeviceId and GetDetailHdcpStatus (1 to 3) and of GetHdcpStatus (1). Arguments after the last one checked are not declared; names are not from a header. - sceAvControlGetMonitorInfo, sceAvControlGetNativeMonitorInfo, sceAvControlGetPuStatus, sceAvControlGetPuType, sceAvControlGetRawEdid and sceAvControlGetRawMonitorInfo (libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at
0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Before it they check the output pointer (null:0x802A0001for GetMonitorInfo and GetNativeMonitorInfo,0x802A0002otherwise), after the first argument of GetRawEdid and GetRawMonitorInfo (not0x7000:0x802A0007). Arguments after the last one checked are not declared; names are not from a header. - sceAvControlSet2dVrMode, sceAvControlSetAudioMuteForShutdown, sceAvControlSetAvOutputMode, sceAvControlSetDispclk and sceAvControlSetDitherModeForDiag (libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at
0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Before it they check their mode or flag argument against the range the module accepts (0x802A0002); SetAvOutputMode also requires a null second argument, and SetDispclk checks nothing. Arguments after the last one checked are not declared; names are not from a header. - sceAvControlSetGamutMetadata, sceAvControlSetHdcpEncryption, sceAvControlSetHdcpStatus, sceAvControlSetHdmiGamutMetadata and sceAvControlSimulateProcessOutputModeArbitration (libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at
0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Before it SetGamutMetadata and SetHdcpEncryption check their first argument (not0x7000:0x802A0007), and SetHdcpEncryption and SetHdcpStatus their flags (0x802A0002); the other two check nothing. Arguments after the last one checked are not declared; names are not from a header. - sceAvSettingControlHdcpEncryption, sceAvSettingDebugSetProcessAttribute, sceAvSettingEnterAudioMuteForShutdown, sceAvSettingNotifyAudioOutMode, sceAvSettingNotifyVideoOutMode, sceAvSettingSet2dVrMode, sceAvSettingSetAvOutputMode, sceAvSettingSetDispclk and sceAvSettingSetHdcpStatus (libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at
0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Each forwards to an sceAvControl method and checks the same arguments (0x802A0002). Arguments after the last one checked are not declared; names are not from a header. - the NID-bound exports
7kywfNahIbw,Dxe4ybR-NaM,JUxonNYB9xk,V-IcK9eokeE,bXmd6MGBaNI,ftQASJeHi6M,m1Wi0Yp38v0andxVRs9kzSP7I(libSceAvSetting) - only the answer before initialization is implemented, from firmware 13.42 read in disassembly, not measured on a console: the state word at0x1e10of the object at0x20420is set to 2 only bysceAvControlInit,sceAvControlInit2andsceAvSettingInit, which still throw here, so these return0x802A001A; the module's "AvCtrl is not initialized" debug print is not reproduced. Before it they check their arguments the same way;JUxonNYB9xkandftQASJeHi6Malso read a 32-bit value through a pointer, and an unreadable one throws. Arguments after the last one checked are not declared; names are not from a header. - sceAvSettingSetAudioOutModeAny_, sceAvSettingSetAudioOutModeInvalid_, sceAvSettingSetVideoOutModeAny_, sceAvSettingSetVideoOutModeInvalid_ and sceAvSettingSetVideoOutSource - the wrappers at
0x2d90,0x2dc0,0x2df0and0x2e20in the 11.00 system modulelibSceAvSetting.sprx(SHA-25697be2b6d5e4c95edb4d4b6e560866e4558970370297d3a5196037866309e8a38) fill the caller buffer with0xff(Any_) or 0 (Invalid_) for the requested byte count and then store the count as the first 32-bit value; a null pointer is ignored. The source setter at0x17b0writes its second argument to the caller's 32-bit slot. A negative mode size would make the console memset a huge range, so the host throws for it. The meaning of the buffers and the rest of the IPMI-backed AV client are unmeasured.