|
| 1 | +# |
| 2 | +# Copyright (c) 2025 Nordic Semiconductor ASA |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: Apache-2.0 |
| 5 | +# |
| 6 | + |
| 7 | +mainmenu "I2S Additional Test" |
| 8 | + |
| 9 | +source "Kconfig.zephyr" |
| 10 | + |
| 11 | +config I2S_TEST_USE_GPIO_LOOPBACK |
| 12 | + bool "Use GPIO loopback" |
| 13 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 14 | + help |
| 15 | + Use wiring between the data-out and data-in pins for looping back |
| 16 | + data. This option is intended to be used for devices that do not |
| 17 | + provide the internal loopback functionality. |
| 18 | + |
| 19 | +config I2S_TEST_ALLOWED_DATA_OFFSET |
| 20 | + int "Allowed offset in received data" |
| 21 | + default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 22 | + default 0 |
| 23 | + help |
| 24 | + Maximum allowed offset between sent and received samples. Non-zero |
| 25 | + value of this option may be needed when GPIO loopback is used. |
| 26 | + |
| 27 | +config I2S_TEST_WORD_SIZE_8_BIT_UNSUPPORTED |
| 28 | + bool "8 bit word size is not supported by the driver" |
| 29 | + help |
| 30 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 31 | + When set to 'n', test will do the transmission. |
| 32 | + |
| 33 | +config I2S_TEST_WORD_SIZE_16_BIT_UNSUPPORTED |
| 34 | + bool "16 bit word size is not supported by the driver" |
| 35 | + help |
| 36 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 37 | + When set to 'n', test will do the transmission. |
| 38 | + |
| 39 | +config I2S_TEST_WORD_SIZE_24_BIT_UNSUPPORTED |
| 40 | + bool "24 bit word size is not supported by the driver" |
| 41 | + help |
| 42 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 43 | + When set to 'n', test will do the transmission. |
| 44 | + |
| 45 | +config I2S_TEST_WORD_SIZE_32_BIT_UNSUPPORTED |
| 46 | + bool "32 bit word size is not supported by the driver" |
| 47 | + help |
| 48 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 49 | + When set to 'n', test will do the transmission. |
| 50 | + |
| 51 | +config I2S_TEST_WORD_SIZE_48_BIT_UNSUPPORTED |
| 52 | + bool "48 bit word size is not supported by the driver" |
| 53 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 54 | + help |
| 55 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 56 | + When set to 'n', test will do the transmission. |
| 57 | + |
| 58 | +config I2S_TEST_ONE_CHANNEL_UNSUPPORTED |
| 59 | + bool "Single audio channel is not supported by the driver" |
| 60 | + help |
| 61 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 62 | + When set to 'n', test will do the transmission. |
| 63 | + |
| 64 | +config I2S_TEST_FOUR_CHANNELS_UNSUPPORTED |
| 65 | + bool "Four audio channels are not supported by the driver" |
| 66 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED |
| 67 | + help |
| 68 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 69 | + When set to 'n', test will do the transmission. |
| 70 | + |
| 71 | +config I2S_TEST_EIGHT_CHANNELS_UNSUPPORTED |
| 72 | + bool "Eight audio channels are not supported by the driver" |
| 73 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED |
| 74 | + help |
| 75 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 76 | + When set to 'n', test will do the transmission. |
| 77 | + |
| 78 | +config I2S_TEST_DATA_FORMAT_I2S_UNSUPPORTED |
| 79 | + bool "I2S_FMT_DATA_FORMAT_I2S is not supported by the driver" |
| 80 | + help |
| 81 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 82 | + When set to 'n', test will do the transmission. |
| 83 | + |
| 84 | +config I2S_TEST_DATA_FORMAT_LEFT_JUSTIFIED_UNSUPPORTED |
| 85 | + bool "I2S_FMT_DATA_FORMAT_LEFT_JUSTIFIED is not supported by the driver" |
| 86 | + help |
| 87 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 88 | + When set to 'n', test will do the transmission. |
| 89 | + |
| 90 | +config I2S_TEST_DATA_FORMAT_RIGHT_JUSTIFIED_UNSUPPORTED |
| 91 | + bool "I2S_FMT_DATA_FORMAT_RIGHT_JUSTIFIED is not supported by the driver" |
| 92 | + help |
| 93 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 94 | + When set to 'n', test will do the transmission. |
| 95 | + |
| 96 | +config I2S_TEST_DATA_FORMAT_PCM_LONG_UNSUPPORTED |
| 97 | + bool "I2S_FMT_DATA_FORMAT_PCM_LONG is not supported by the driver" |
| 98 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED |
| 99 | + help |
| 100 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 101 | + When set to 'n', test will do the transmission. |
| 102 | + |
| 103 | +config I2S_TEST_DATA_FORMAT_PCM_SHORT_UNSUPPORTED |
| 104 | + bool "I2S_FMT_DATA_FORMAT_PCM_SHORT is not supported by the driver" |
| 105 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED |
| 106 | + help |
| 107 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 108 | + When set to 'n', test will do the transmission. |
| 109 | + |
| 110 | +config I2S_TEST_DATA_ORDER_MSB_UNSUPPORTED |
| 111 | + bool "I2S_FMT_DATA_ORDER_MSB is not supported by the driver" |
| 112 | + help |
| 113 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 114 | + When set to 'n', test will do the transmission. |
| 115 | + |
| 116 | +config I2S_TEST_DATA_ORDER_LSB_UNSUPPORTED |
| 117 | + bool "I2S_FMT_DATA_ORDER_LSB is not supported by the driver" |
| 118 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 119 | + help |
| 120 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 121 | + When set to 'n', test will do the transmission. |
| 122 | + |
| 123 | +config I2S_TEST_BIT_CLK_INV_UNSUPPORTED |
| 124 | + bool "I2S_FMT_BIT_CLK_INV is not supported by the driver" |
| 125 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 126 | + help |
| 127 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 128 | + When set to 'n', test will do the transmission. |
| 129 | + |
| 130 | +config I2S_TEST_FRAME_CLK_INV_UNSUPPORTED |
| 131 | + bool "I2S_FMT_FRAME_CLK_INV is not supported by the driver" |
| 132 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 133 | + help |
| 134 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 135 | + When set to 'n', test will do the transmission. |
| 136 | + |
| 137 | +config I2S_TEST_BLOCK_SIZE_6_UNSUPPORTED |
| 138 | + bool "Block_size of 6 is not supported by the driver" |
| 139 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 140 | + help |
| 141 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 142 | + When set to 'n', test will do the transmission. |
| 143 | + |
| 144 | +config I2S_TEST_OPTIONS_BIT_CLK_CONT_UNSUPPORTED |
| 145 | + bool "I2S_OPT_BIT_CLK_CONT is not supported by the driver" |
| 146 | + help |
| 147 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 148 | + When set to 'n', test will do the transmission. |
| 149 | + |
| 150 | +config I2S_TEST_OPTIONS_BIT_CLK_GATED_UNSUPPORTED |
| 151 | + bool "I2S_OPT_BIT_CLK_GATED is not supported by the driver" |
| 152 | + help |
| 153 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 154 | + When set to 'n', test will do the transmission. |
| 155 | + |
| 156 | +config I2S_TEST_OPTIONS_LOOPBACK_UNSUPPORTED |
| 157 | + bool "I2S_OPT_LOOPBACK is not supported by the driver" |
| 158 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 159 | + help |
| 160 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 161 | + When set to 'n', test will do the transmission. |
| 162 | + |
| 163 | +config I2S_TEST_OPTIONS_PINGPONG_UNSUPPORTED |
| 164 | + bool "I2S_OPT_PINGPONG is not supported by the driver" |
| 165 | + default y if DT_HAS_NORDIC_NRF_I2S_ENABLED || DT_HAS_NORDIC_NRF_TDM_ENABLED |
| 166 | + help |
| 167 | + When set to 'y', test will check that i2s_configure() returns -EINVAL. |
| 168 | + When set to 'n', test will do the transmission. |
0 commit comments