1# 2# Copyright (c) 2021, NXP 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7mainmenu "I2S Speed Test" 8 9source "Kconfig.zephyr" 10 11config I2S_TEST_SEPARATE_DEVICES 12 bool "Use two separate I2S ports for loopback" 13 help 14 Use separate I2S ports for transmit and receive. 15 16config I2S_TEST_USE_I2S_DIR_BOTH 17 bool "Use I2S_DIR_BOTH value to perform RX/TX transfers" 18 default y if DT_HAS_NORDIC_NRF_I2S_ENABLED 19 help 20 Use the I2S_DIR_BOTH enumeration value to trigger commands in test 21 cases involving both reception and transmission. Use of this option 22 is essential for devices that cannot independently start and stop 23 the RX and TX streams. 24 25config I2S_TEST_USE_GPIO_LOOPBACK 26 bool "Use GPIO loopback" 27 default y if DT_HAS_NORDIC_NRF_I2S_ENABLED 28 help 29 Use wiring between the data-out and data-in pins for looping back 30 data. This option is intended to be used for devices that do not 31 provide the internal loopback functionality. 32 33config I2S_TEST_ALLOWED_DATA_OFFSET 34 int "Allowed offset in received data" 35 default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED 36 default 0 37 help 38 Maximum allowed offset between sent and received samples. Non-zero 39 value of this option may be needed when GPIO loopback is used. 40 41config I2S_TEST_SKIP_SAMPLERATE_8000 42 bool "Skip short transfer tests at 8000 samples per socond" 43 help 44 When set to 'y', short transfer tests at 8000 samples per second 45 will be skipped. 46 47config I2S_TEST_SKIP_SAMPLERATE_16000 48 bool "Skip short transfer tests at 16000 samples per socond" 49 help 50 When set to 'y', short transfer tests at 16000 samples per second 51 will be skipped. 52 53config I2S_TEST_SKIP_SAMPLERATE_32000 54 bool "Skip short transfer tests at 32000 samples per socond" 55 help 56 When set to 'y', short transfer tests at 32000 samples per second 57 will be skipped. 58 59config I2S_TEST_SKIP_SAMPLERATE_44100 60 bool "Skip short transfer tests at 44100 samples per socond" 61 help 62 When set to 'y', short transfer tests at 44100 samples per second 63 will be skipped. 64 65config I2S_TEST_SKIP_SAMPLERATE_48000 66 bool "Skip short transfer tests at 48000 samples per socond" 67 help 68 When set to 'y', short transfer tests at 48000 samples per second 69 will be skipped. 70 71config I2S_TEST_SKIP_SAMPLERATE_88200 72 bool "Skip short transfer tests at 88200 samples per socond" 73 help 74 When set to 'y', short transfer tests at 88200 samples per second 75 will be skipped. 76 77config I2S_TEST_SKIP_SAMPLERATE_96000 78 bool "Skip short transfer tests at 96000 samples per socond" 79 help 80 When set to 'y', short transfer tests at 96000 samples per second 81 will be skipped. 82