mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 23:54:24 -04:00
exo/mariko fatal: stop sound output on fatal error
This commit is contained in:
parent
5382011b0d
commit
2bc6dec126
4 changed files with 102 additions and 13 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <exosphere.hpp>
|
||||
#include "fatal_sdmmc.hpp"
|
||||
#include "fatal_save_context.hpp"
|
||||
#include "fatal_sound.hpp"
|
||||
#include "fatal_display.hpp"
|
||||
|
||||
namespace ams::secmon::fatal {
|
||||
|
@ -60,10 +61,17 @@ namespace ams::secmon::fatal {
|
|||
AMS_SECMON_LOG("Failed to save fatal error context: %08x\n", result.GetValue());
|
||||
}
|
||||
|
||||
/* Ensure that i2c-5 is usable for communicating with the pmic. */
|
||||
/* Ensure that i2c-1/i2c-5 are usable for communicating with the audio device/pmic. */
|
||||
clkrst::EnableI2c1Clock();
|
||||
clkrst::EnableI2c5Clock();
|
||||
i2c::Initialize(i2c::Port_1);
|
||||
i2c::Initialize(i2c::Port_5);
|
||||
|
||||
/* Shut down audio. */
|
||||
{
|
||||
StopSound();
|
||||
}
|
||||
|
||||
/* Display the fatal error. */
|
||||
{
|
||||
AMS_SECMON_LOG("Showing Display, LCD Vendor = %04x\n", GetLcdVendor());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue