Audio services: Difference between revisions
No edit summary |
|||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 684: | Line 684: | ||
|- | |- | ||
| 42 || [15.0.0+] SetNativeVolumeForDebug | | 42 || [15.0.0+] SetNativeVolumeForDebug | ||
|- | |||
| 5000 || [19.0.0+] | |||
|- | |- | ||
| 10000 || [13.0.0+] NotifyAudioOutputTargetForPlayReport | | 10000 || [13.0.0+] NotifyAudioOutputTargetForPlayReport | ||
| Line 705: | Line 707: | ||
| 10106 || [14.0.0+] GetDefaultAudioOutputTargetForPlayReport | | 10106 || [14.0.0+] GetDefaultAudioOutputTargetForPlayReport | ||
|- | |- | ||
| 50000 || [15.0.0+] | | 50000 || [15.0.0-18.1.0] SetAnalogInputBoostGainForPrototyping | ||
|- | |||
| 50001 || [19.0.0+] OverrideDefaultTargetForDebug | |||
|- | |||
| 50003 || [19.0.0+] SetForceOverrideExternalDeviceNameForDebug | |||
|- | |||
| 50004 || [19.0.0+] ClearForceOverrideExternalDeviceNameForDebug | |||
|} | |} | ||
| Line 715: | Line 723: | ||
== UpdateHeadphoneSettings == | == UpdateHeadphoneSettings == | ||
Takes one input bool. No output. | Takes one input bool. No output. | ||
NS calls this with the result of IParentalControlService::IsRestrictionEnabled | NS calls this with the result of [[Parental_Control_services#IParentalControlService|IParentalControlService::IsRestrictionEnabled]]. | ||
== GetSystemInformationForDebug == | == GetSystemInformationForDebug == | ||
| Line 721: | Line 729: | ||
[15.0.0+] Now takes a type-0x16 output buffer. | [15.0.0+] Now takes a type-0x16 output buffer. | ||
[18.0.0+] Originally the output buffer was a binary structure, now it's just a string. | |||
= codecctl = | = codecctl = | ||
| Line 976: | Line 986: | ||
| 9 || SetAudioOutputProcessRecordVolume | | 9 || SetAudioOutputProcessRecordVolume | ||
|- | |- | ||
| 10 || [18.0.0+] | | 10 || [18.0.0+] GetAppletStateSummaries | ||
|} | |} | ||
| Line 1,418: | Line 1,428: | ||
| u8 array of channel mappings | | u8 array of channel mappings | ||
|} | |} | ||
= Notes = | |||
Once nnMain finishes running, it calls a func which handles ADSP Aborts. This waits on an event, calls a func, then Aborts with Result 0xC0899. | |||
That func just calls another func, which: | |||
* Calls various AGIC funcs for this IRQ, etc. | |||
* Copies data from devicemem+0x608C (the 0x7000-byte devicemem "shared memory segment") to a stack struct. | |||
* A funcptr is called if set with the above struct, then this returns. | |||
That funcptr, besides other func-calls, will log an [[Error_Report_services|erpt]] using the input struct when set with the "AdspException*" fields. | |||
This is triggered by AGIC IRQ adsp_wdresetreq, "ADSP Watchdog Timer Reset Request". The ADSP updates the watchdog from a thread, so normally the watchdog only expires when the ADSP configures it to trigger immediately. | |||
When handling an assert/exception, the ADSP: | |||
* Logs exception info in text form into devicemem. | |||
* Logs the binary form of the exception into devicemem (offset above). | |||
* Eventually configures the watchdog to trigger immediately, prints "HALT: spinning forever...\n", then enters a loop using instruction "wfe". | |||
[[Category:Services]] | [[Category:Services]] | ||