Skip to content

Commit 6136c33

Browse files
committed
espressif: Use Philips data format for i2s
it's the standard i2s format, and what's needed for max98357 breakout.
1 parent 6237a14 commit 6136c33

File tree

1 file changed

+1
-1
lines changed
  • ports/espressif/common-hal/audiobusio

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void common_hal_audiobusio_i2sout_construct(audiobusio_i2sout_obj_t *self,
5353

5454
i2s_std_config_t i2s_config = {
5555
.clk_cfg = I2S_STD_CLK_DEFAULT_CONFIG(48000),
56-
.slot_cfg = I2S_STD_MSB_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_STEREO),
56+
.slot_cfg = I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_STEREO),
5757
.gpio_cfg = {
5858
.mclk = main_clock != NULL ? main_clock->number : I2S_GPIO_UNUSED,
5959
.bclk = bit_clock->number,

0 commit comments

Comments
 (0)