File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -400,10 +400,10 @@ uint32_t audio_dma_pause_all(void) {
400
400
return result ;
401
401
}
402
402
403
- void audio_dma_unpause_cookie (uint32_t cookie ) {
403
+ void audio_dma_unpause_mask (uint32_t mask ) {
404
404
for (size_t channel = 0 ; channel < NUM_DMA_CHANNELS ; channel ++ ) {
405
405
audio_dma_t * dma = MP_STATE_PORT (playing_audio )[channel ];
406
- if (dma != NULL && (cookie & (1 << channel ))) {
406
+ if (dma != NULL && (mask & (1 << channel ))) {
407
407
audio_dma_resume (dma );
408
408
}
409
409
}
Original file line number Diff line number Diff line change @@ -90,6 +90,6 @@ void audio_dma_resume(audio_dma_t *dma);
90
90
bool audio_dma_get_paused (audio_dma_t * dma );
91
91
92
92
uint32_t audio_dma_pause_all (void );
93
- void audio_dma_unpause_cookie (uint32_t cookie );
93
+ void audio_dma_unpause_mask (uint32_t mask );
94
94
95
95
#endif // MICROPY_INCLUDED_RASPBERRYPI_AUDIO_DMA_OUT_H
Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ void port_internal_flash_flush(void) {
99
99
// Make sure we don't have an interrupt while we do flash operations.
100
100
common_hal_mcu_disable_interrupts ();
101
101
// and audio DMA must be paused as well
102
- uint32_t cookie = audio_dma_pause_all ();
102
+ uint32_t mask = audio_dma_pause_all ();
103
103
flash_range_erase (CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba , SECTOR_SIZE );
104
104
flash_range_program (CIRCUITPY_CIRCUITPY_DRIVE_START_ADDR + _cache_lba , _cache , SECTOR_SIZE );
105
105
_cache_lba = NO_CACHE ;
106
- audio_dma_unpause_cookie ( cookie );
106
+ audio_dma_unpause_mask ( mask );
107
107
common_hal_mcu_enable_interrupts ();
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments