CODEC deinit and wakeup

This commit is contained in:
Evans Jahja 2024-04-27 15:23:36 +09:00
parent 134b08e2e5
commit 6ff3ff09fe
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,7 @@ void oafSleep(void)
clearEvent(g_frameReadyEvent);
CODEC_setVolumeOverride(-128);
CODEC_deinit();
GFX_sleep();
PDN_sleep();
g_isSleeping = SLEEP;
@ -674,6 +675,7 @@ void oafWakeup(void)
GFX_sleepAwake();
LGYCAP_start(LGYCAP_DEV_TOP);
IRQ_enable(IRQ_CDMA_EVENT0);
CODEC_wakeup();
CODEC_setVolumeOverride(127);
MCU_setPowerLedPattern(MCU_PWR_LED_AUTO);
g_isSleeping = RUNNING;