Skip to content

Commit f7d963e

Browse files
authored
Enable I2S for C3 builds (#2691)
***NO_CI***
1 parent 486d253 commit f7d963e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

CMake/xtensa-esp32c3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"API_System.Device.Dac": "OFF",
2828
"API_System.Device.Gpio": "ON",
2929
"API_System.Device.I2c": "ON",
30-
"API_System.Device.I2s": "OFF",
30+
"API_System.Device.I2s": "ON",
3131
"API_System.Device.Spi": "ON",
3232
"API_System.Device.Pwm": "ON",
3333
"API_System.Device.Wifi": "ON",

targets/ESP32/_nanoCLR/System.Device.I2s/sys_dev_i2s_native_System_Device_I2s_I2sDevice.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,6 @@ HRESULT SetI2sConfig(i2s_port_t bus, CLR_RT_HeapBlock *config)
319319
#endif
320320
}
321321

322-
// apply low-level workaround for bug in some ESP-IDF versions that swap
323-
// the left and right channels
324-
// https://github.com/espressif/esp-idf/issues/6625
325-
#if CONFIG_IDF_TARGET_ESP32S3
326-
REG_SET_BIT(I2S_TX_CONF_REG(bus), I2S_TX_MSB_SHIFT);
327-
REG_SET_BIT(I2S_TX_CONF_REG(bus), I2S_RX_MSB_SHIFT);
328-
#else
329-
REG_SET_BIT(I2S_CONF_REG(bus), I2S_TX_MSB_RIGHT);
330-
REG_SET_BIT(I2S_CONF_REG(bus), I2S_RX_MSB_RIGHT);
331-
#endif
332-
333322
#if (ESP_IDF_VERSION_MAJOR == 4) && (ESP_IDF_VERSION_MINOR >= 4)
334323
pin_config.mck_io_num = I2S_PIN_NO_CHANGE;
335324
#endif

0 commit comments

Comments
 (0)