diff --git a/components/soc/esp32c3/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c3/include/soc/Kconfig.soc_caps.in index 6a715917e9..7242b2f9bf 100644 --- a/components/soc/esp32c3/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c3/include/soc/Kconfig.soc_caps.in @@ -380,12 +380,8 @@ config SOC_I2S_SUPPORTS_PDM default y config SOC_I2S_SUPPORTS_PDM_TX - bool - default y - -config SOC_I2S_SUPPORTS_PDM_CODEC - bool - default y + int + default 2 config SOC_I2S_SUPPORTS_TDM bool diff --git a/components/soc/esp32c3/include/soc/soc_caps.h b/components/soc/esp32c3/include/soc/soc_caps.h index ba86f24ded..d9e9dd4e48 100644 --- a/components/soc/esp32c3/include/soc/soc_caps.h +++ b/components/soc/esp32c3/include/soc/soc_caps.h @@ -185,8 +185,7 @@ #define SOC_I2S_SUPPORTS_XTAL (1) #define SOC_I2S_SUPPORTS_PCM (1) #define SOC_I2S_SUPPORTS_PDM (1) -#define SOC_I2S_SUPPORTS_PDM_TX (1) -#define SOC_I2S_SUPPORTS_PDM_CODEC (1) +#define SOC_I2S_SUPPORTS_PDM_TX (2) #define SOC_I2S_SUPPORTS_TDM (1) /*-------------------------- LEDC CAPS ---------------------------------------*/ diff --git a/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in index 1493ebdc05..84655b99da 100644 --- a/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in @@ -312,12 +312,8 @@ config SOC_I2S_SUPPORTS_PDM default y config SOC_I2S_SUPPORTS_PDM_TX - bool - default y - -config SOC_I2S_SUPPORTS_PDM_CODEC - bool - default y + int + default 2 config SOC_I2S_SUPPORTS_TDM bool diff --git a/components/soc/esp32c6/include/soc/soc_caps.h b/components/soc/esp32c6/include/soc/soc_caps.h index d87ad897c0..f0b7033a0c 100644 --- a/components/soc/esp32c6/include/soc/soc_caps.h +++ b/components/soc/esp32c6/include/soc/soc_caps.h @@ -193,8 +193,7 @@ #define SOC_I2S_SUPPORTS_XTAL (1) #define SOC_I2S_SUPPORTS_PCM (1) #define SOC_I2S_SUPPORTS_PDM (1) -#define SOC_I2S_SUPPORTS_PDM_TX (1) -#define SOC_I2S_SUPPORTS_PDM_CODEC (1) +#define SOC_I2S_SUPPORTS_PDM_TX (2) #define SOC_I2S_SUPPORTS_TDM (1) // TODO: IDF-5328 (Copy from esp32c3, need check) diff --git a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in index 5fc424d9f5..c6be565fc3 100644 --- a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in @@ -356,12 +356,8 @@ config SOC_I2S_SUPPORTS_PDM default y config SOC_I2S_SUPPORTS_PDM_TX - bool - default y - -config SOC_I2S_SUPPORTS_PDM_CODEC - bool - default y + int + default 2 config SOC_I2S_SUPPORTS_TDM bool diff --git a/components/soc/esp32h2/include/soc/soc_caps.h b/components/soc/esp32h2/include/soc/soc_caps.h index 1c7778c6f7..f192b91f43 100644 --- a/components/soc/esp32h2/include/soc/soc_caps.h +++ b/components/soc/esp32h2/include/soc/soc_caps.h @@ -191,8 +191,7 @@ #define SOC_I2S_SUPPORTS_XTAL (1) #define SOC_I2S_SUPPORTS_PCM (1) #define SOC_I2S_SUPPORTS_PDM (1) -#define SOC_I2S_SUPPORTS_PDM_TX (1) -#define SOC_I2S_SUPPORTS_PDM_CODEC (1) +#define SOC_I2S_SUPPORTS_PDM_TX (2) #define SOC_I2S_SUPPORTS_TDM (1) /*-------------------------- LEDC CAPS ---------------------------------------*/ diff --git a/components/soc/esp32s3/include/soc/Kconfig.soc_caps.in b/components/soc/esp32s3/include/soc/Kconfig.soc_caps.in index c08e1b8271..ddde109d7b 100644 --- a/components/soc/esp32s3/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32s3/include/soc/Kconfig.soc_caps.in @@ -444,16 +444,12 @@ config SOC_I2S_SUPPORTS_PDM default y config SOC_I2S_SUPPORTS_PDM_TX - bool - default y + int + default 2 config SOC_I2S_SUPPORTS_PDM_RX - bool - default y - -config SOC_I2S_SUPPORTS_PDM_CODEC - bool - default y + int + default 4 config SOC_I2S_SUPPORTS_TDM bool diff --git a/components/soc/esp32s3/include/soc/soc_caps.h b/components/soc/esp32s3/include/soc/soc_caps.h index 1ac13266cb..cea56503fd 100644 --- a/components/soc/esp32s3/include/soc/soc_caps.h +++ b/components/soc/esp32s3/include/soc/soc_caps.h @@ -186,9 +186,8 @@ #define SOC_I2S_SUPPORTS_XTAL (1) #define SOC_I2S_SUPPORTS_PCM (1) #define SOC_I2S_SUPPORTS_PDM (1) -#define SOC_I2S_SUPPORTS_PDM_TX (1) -#define SOC_I2S_SUPPORTS_PDM_RX (1) -#define SOC_I2S_SUPPORTS_PDM_CODEC (1) +#define SOC_I2S_SUPPORTS_PDM_TX (2) +#define SOC_I2S_SUPPORTS_PDM_RX (4) #define SOC_I2S_SUPPORTS_TDM (1) /*-------------------------- LEDC CAPS ---------------------------------------*/ diff --git a/examples/peripherals/.build-test-rules.yml b/examples/peripherals/.build-test-rules.yml index ed9d3ea6ef..3ca45dd0be 100644 --- a/examples/peripherals/.build-test-rules.yml +++ b/examples/peripherals/.build-test-rules.yml @@ -80,8 +80,8 @@ examples/peripherals/i2s/i2s_codec/i2s_es8311: reason: target esp32c6 is not supported yet examples/peripherals/i2s/i2s_recorder: - disable: - - if: SOC_I2S_SUPPORTS_PDM_RX != 1 + enable: + - if: SOC_I2S_SUPPORTS_PDM_RX > 0 examples/peripherals/lcd/i2c_oled: disable: