Skip to content

Commit 9e7b393

Browse files
committed
Run pre-commit
1 parent b9804a6 commit 9e7b393

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

locale/circuitpython.pot

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ msgstr ""
792792
msgid "Cannot pull on input-only pin."
793793
msgstr ""
794794

795-
#: shared-bindings/audiobusio/PDMIn.c
795+
#: shared-bindings/audiobusio/I2S.c shared-bindings/audiobusio/PDMIn.c
796796
msgid "Cannot record to a file"
797797
msgstr ""
798798

@@ -907,7 +907,7 @@ msgstr ""
907907
msgid "Deep sleep pins must use a rising edge with pulldown"
908908
msgstr ""
909909

910-
#: shared-bindings/audiobusio/PDMIn.c
910+
#: shared-bindings/audiobusio/I2S.c shared-bindings/audiobusio/PDMIn.c
911911
msgid "Destination capacity is smaller than destination_length."
912912
msgstr ""
913913

@@ -3032,7 +3032,7 @@ msgstr ""
30323032
msgid "default is not a function"
30333033
msgstr ""
30343034

3035-
#: shared-bindings/audiobusio/PDMIn.c
3035+
#: shared-bindings/audiobusio/I2S.c shared-bindings/audiobusio/PDMIn.c
30363036
msgid ""
30373037
"destination buffer must be a bytearray or array of type 'B' for bit_depth = 8"
30383038
msgstr ""
@@ -3041,6 +3041,10 @@ msgstr ""
30413041
msgid "destination buffer must be an array of type 'H' for bit_depth = 16"
30423042
msgstr ""
30433043

3044+
#: shared-bindings/audiobusio/I2S.c
3045+
msgid "destination buffer must be an array of type 'h' for bit_depth = 16"
3046+
msgstr ""
3047+
30443048
#: py/objdict.c
30453049
msgid "dict update sequence has wrong length"
30463050
msgstr ""

ports/raspberrypi/audio_dma.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ audio_dma_result audio_dma_setup(
315315
#if MICROPY_MALLOC_USES_ALLOCATED_SIZE
316316
dma->input_buffer_length[0], // Old size
317317
#endif
318-
max_buffer_length);
318+
max_buffer_length);
319319
#endif
320320
dma->input_buffer_length[0] = max_buffer_length;
321-
321+
322322
if (dma->input_buffer[0] == NULL) {
323323
return AUDIO_DMA_MEMORY_ERROR;
324324
}
@@ -331,10 +331,10 @@ audio_dma_result audio_dma_setup(
331331
#if MICROPY_MALLOC_USES_ALLOCATED_SIZE
332332
dma->input_buffer_length[1], // Old size
333333
#endif
334-
max_buffer_length);
334+
max_buffer_length);
335335
#endif
336336
dma->input_buffer_length[1] = max_buffer_length;
337-
337+
338338
if (dma->input_buffer[1] == NULL) {
339339
return AUDIO_DMA_MEMORY_ERROR;
340340
}
@@ -399,7 +399,7 @@ audio_dma_result audio_dma_setup(
399399
// contains the audiodma structure.
400400
MP_STATE_PORT(recording_audio)[dma->input_channel[0]] = dma;
401401
MP_STATE_PORT(recording_audio)[dma->input_channel[1]] = dma;
402-
402+
403403
// Special case the DMA for a single buffer.
404404
if (single_buffer) {
405405
dma_channel_config c = dma_channel_get_default_config(dma->input_channel[1]);
@@ -431,9 +431,9 @@ audio_dma_result audio_dma_setup(
431431
// contains the audiodma structure.
432432
MP_STATE_PORT(playing_audio)[dma->output_channel[0]] = dma;
433433
MP_STATE_PORT(playing_audio)[dma->output_channel[1]] = dma;
434-
434+
435435
dma->paused = false;
436-
436+
437437
// Load the first two blocks up front.
438438
audio_dma_load_next_block(dma, 0);
439439
if (dma->dma_result != AUDIO_DMA_OK) {
@@ -694,22 +694,22 @@ void audio_dma_unpause_mask(uint32_t channel_mask) {
694694
void audio_dma_init(audio_dma_t *dma) {
695695
dma->output_buffer[0] = NULL;
696696
dma->output_buffer[1] = NULL;
697-
697+
698698
dma->output_buffer_length[0] = 0;
699699
dma->output_buffer_length[1] = 0;
700-
700+
701701
dma->output_channel[0] = NUM_DMA_CHANNELS;
702702
dma->output_channel[1] = NUM_DMA_CHANNELS;
703703

704704
dma->input_buffer[0] = NULL;
705705
dma->input_buffer[1] = NULL;
706-
706+
707707
dma->input_buffer_length[0] = 0;
708708
dma->input_buffer_length[1] = 0;
709709

710710
dma->input_channel[0] = NUM_DMA_CHANNELS;
711711
dma->input_channel[1] = NUM_DMA_CHANNELS;
712-
712+
713713
dma->playing_in_progress = false;
714714
dma->recording_in_progress = false;
715715
dma->paused = false;
@@ -739,7 +739,7 @@ void audio_dma_deinit(audio_dma_t *dma) {
739739
#endif
740740
dma->output_buffer[1] = NULL;
741741
dma->output_buffer_length[1] = 0;
742-
742+
743743
#ifdef PICO_RP2350
744744
port_free(dma->input_buffer[0]);
745745
#else

ports/raspberrypi/common-hal/audiobusio/I2S.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ audioio_get_buffer_result_t audiobusio_i2s_get_buffer(audiobusio_i2s_obj_t *self
356356
*buffer = (uint8_t *)self->buffer[self->last_buf_idx];
357357
*buffer_length = self->buffer_size;
358358

359-
// I2S always returns more data unless an error occured (see audiocore/__init__.h)
359+
// I2S always returns more data unless an error occurred (see audiocore/__init__.h)
360360
return GET_BUFFER_MORE_DATA;
361361
}
362362

0 commit comments

Comments
 (0)