Skip to content

Commit 566f8be

Browse files
authored
Merge pull request #5984 from DavePutz/issue_5967
Correcting order of sideset parameters in function call
2 parents eeb10f0 + 8c10148 commit 566f8be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t *self,
127127
0, 0, // in pulls
128128
NULL, 0, 0, 0x1f, // set pins
129129
bit_clock, 2, 0, 0x1f, // sideset pins
130+
false, // No sideset enable
130131
NULL, // jump pin
131132
0, // wait gpio pins
132133
true, // exclusive pin use
133134
false, 32, false, // shift out left to start with MSB
134135
false, // Wait for txstall
135136
false, 32, false, // in settings
136-
false, // Not user-interruptible.
137-
false); // No sideset enable
137+
false); // Not user-interruptible.
138138

139139
self->playing = false;
140140
audio_dma_init(&self->dma);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
7171
0, 0, // in pulls
7272
NULL, 0, 0, 0x1f, // set pins
7373
clock_pin, 1, 0, 0x1f, // sideset pins
74+
false, // No sideset enable
7475
NULL, // jump pin
7576
0, // wait gpio pins
7677
true, // exclusive pin use
7778
false, 32, false, // out settings
7879
false, // Wait for txstall
7980
false, 32, true, // in settings
80-
false, // Not user-interruptible.
81-
false); // No sideset enable
81+
false); // Not user-interruptible.
8282

8383
uint32_t actual_frequency = common_hal_rp2pio_statemachine_get_frequency(&self->state_machine);
8484
if (actual_frequency < MIN_MIC_CLOCK) {

0 commit comments

Comments
 (0)