From 07050f2e6fbefd06d2e53e7c93a28baf7be8ab96 Mon Sep 17 00:00:00 2001 From: Dimitrios Kouzis-Loukas Date: Sat, 11 Nov 2023 05:47:21 -0500 Subject: [PATCH] Consistency improvement on I2S mclk support for Espressif port #8570 --- ports/espressif/common-hal/audiobusio/I2SOut.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/espressif/common-hal/audiobusio/I2SOut.c b/ports/espressif/common-hal/audiobusio/I2SOut.c index 02474d2fb2..59e8604fb7 100644 --- a/ports/espressif/common-hal/audiobusio/I2SOut.c +++ b/ports/espressif/common-hal/audiobusio/I2SOut.c @@ -69,6 +69,9 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t *self, self->data = data; claim_pin(bit_clock); claim_pin(word_select); + if (main_clock) { + claim_pin(main_clock); + } claim_pin(data); }