Skip to content

Commit

Permalink
Fix format and trailing-whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SalamCytron committed Jan 9, 2024
1 parent dd796db commit a9e73f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/raspberrypi/audio_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ STATIC size_t audio_dma_convert_samples(audio_dma_t *dma, uint8_t *input, uint32
mp_raise_RuntimeError(MP_ERROR_TEXT("Audio conversion not implemented"));
}
if (dma->swap_channel){
// Loop for swapping left and right channels
// Loop for swapping left and right channels
for (uint32_t i = 0; i < out_i; i += 2) {
uint16_t temp = ((uint16_t *)output)[i];
((uint16_t *)output)[i] = ((uint16_t *)output)[i + 1];
Expand Down
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/audiopwmio/PWMAudioOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void common_hal_audiopwmio_pwmaudioout_play(audiopwmio_pwmaudioout_obj_t *self,
BITS_PER_SAMPLE,
(uint32_t)tx_register, // output register: PWM cc register
0x3b + pacing_timer, // data request line
self->swap_channel);
self->swap_channel);

if (result == AUDIO_DMA_DMA_BUSY) {
common_hal_audiopwmio_pwmaudioout_stop(self);
Expand Down

0 comments on commit a9e73f4

Please sign in to comment.