mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
test(driver_i2s): p4 and c5 enable multi dut test
This commit is contained in:
@@ -11,9 +11,5 @@ components/esp_driver_i2s/test_apps/i2s_multi_dev:
|
||||
disable:
|
||||
- if: SOC_I2S_SUPPORTED != 1
|
||||
- if: SOC_I2S_HW_VERSION_2 != 1
|
||||
disable_test:
|
||||
- if: IDF_TARGET == "esp32p4"
|
||||
temporary: true
|
||||
reason: lack of runners
|
||||
depends_components:
|
||||
- esp_driver_i2s
|
||||
|
@@ -161,6 +161,9 @@ static void test_i2s_tdm_slave(uint32_t sample_rate, i2s_data_bit_width_t bit_wi
|
||||
if (sample_rate >= 96000) {
|
||||
i2s_tdm_config.clk_cfg.bclk_div = 12;
|
||||
}
|
||||
#if SOC_I2S_SUPPORTS_APLL
|
||||
i2s_tdm_config.clk_cfg.clk_src = I2S_CLK_SRC_APLL;
|
||||
#endif
|
||||
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_tx_handle, &i2s_tdm_config));
|
||||
TEST_ESP_OK(i2s_channel_init_tdm_mode(i2s_tdm_rx_handle, &i2s_tdm_config));
|
||||
|
||||
@@ -237,8 +240,9 @@ TEST_CASE_MULTIPLE_DEVICES("I2S_TDM_full_duplex_test_in_48k_8bits_4slots", "[I2S
|
||||
test_i2s_tdm_master_48k_8bits_4slots, test_i2s_tdm_slave_48k_8bits_4slots);
|
||||
|
||||
/* The I2S source clock can only reach 96Mhz on ESP32H2,
|
||||
and the max clock source APLL on P4 is 125M,
|
||||
which can't satisfy the following configurations in slave mode */
|
||||
#if !CONFIG_IDF_TARGET_ESP32H2
|
||||
#if !CONFIG_IDF_TARGET_ESP32H2 && !CONFIG_IDF_TARGET_ESP32P4
|
||||
static void test_i2s_tdm_master_48k_16bits_8slots(void)
|
||||
{
|
||||
test_i2s_tdm_master(48000, I2S_DATA_BIT_WIDTH_16BIT, I2S_TDM_SLOT0 | I2S_TDM_SLOT1 | I2S_TDM_SLOT2 | I2S_TDM_SLOT3 |
|
||||
@@ -266,7 +270,7 @@ static void test_i2s_tdm_slave_96k_16bits_4slots(void)
|
||||
|
||||
TEST_CASE_MULTIPLE_DEVICES("I2S_TDM_full_duplex_test_in_96k_16bits_4slots", "[I2S_TDM]",
|
||||
test_i2s_tdm_master_96k_16bits_4slots, test_i2s_tdm_slave_96k_16bits_4slots);
|
||||
#endif // !CONFIG_IDF_TARGET_ESP32H2
|
||||
#endif // !CONFIG_IDF_TARGET_ESP32H2 && !CONFIG_IDF_TARGET_ESP32P4
|
||||
|
||||
static void test_i2s_external_clk_src(bool is_master, bool is_external)
|
||||
{
|
||||
|
@@ -7,6 +7,7 @@ import pytest
|
||||
@pytest.mark.esp32c3
|
||||
@pytest.mark.esp32c6
|
||||
@pytest.mark.esp32h2
|
||||
@pytest.mark.esp32p4
|
||||
@pytest.mark.generic_multi_device
|
||||
@pytest.mark.parametrize('count', [
|
||||
2,
|
||||
|
@@ -22,23 +22,7 @@ extern "C" {
|
||||
#define SLAVE_WS_IO 22
|
||||
#define DATA_IN_IO 19
|
||||
#define DATA_OUT_IO 18
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
#define MASTER_MCK_IO 0
|
||||
#define MASTER_BCK_IO 4
|
||||
#define MASTER_WS_IO 5
|
||||
#define SLAVE_BCK_IO 14
|
||||
#define SLAVE_WS_IO 15
|
||||
#define DATA_IN_IO 19
|
||||
#define DATA_OUT_IO 18
|
||||
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||
#define MASTER_MCK_IO 0
|
||||
#define MASTER_BCK_IO 4
|
||||
#define MASTER_WS_IO 5
|
||||
#define SLAVE_BCK_IO 14
|
||||
#define SLAVE_WS_IO 15
|
||||
#define DATA_IN_IO 19
|
||||
#define DATA_OUT_IO 18
|
||||
#elif CONFIG_IDF_TARGET_ESP32S3
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
|
||||
#define MASTER_MCK_IO 0
|
||||
#define MASTER_BCK_IO 4
|
||||
#define MASTER_WS_IO 5
|
||||
@@ -50,8 +34,8 @@ extern "C" {
|
||||
#define MASTER_MCK_IO 51
|
||||
#define MASTER_BCK_IO 45
|
||||
#define MASTER_WS_IO 46
|
||||
#define SLAVE_BCK_IO 22
|
||||
#define SLAVE_WS_IO 23
|
||||
#define SLAVE_BCK_IO 49
|
||||
#define SLAVE_WS_IO 50
|
||||
#define DATA_IN_IO 47
|
||||
#define DATA_OUT_IO 48
|
||||
#else
|
||||
|
Reference in New Issue
Block a user