Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf fromlist] tests: drivers: i2s: Add tests at typical audio sample rates #2461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions tests/drivers/i2s/i2s_speed/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,45 @@ config I2S_TEST_ALLOWED_DATA_OFFSET
help
Maximum allowed offset between sent and received samples. Non-zero
value of this option may be needed when GPIO loopback is used.

config I2S_TEST_SKIP_SAMPLERATE_8000
bool "Skip short transfer tests at 8000 samples per socond"
help
When set to 'y', short transfer tests at 8000 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_16000
bool "Skip short transfer tests at 16000 samples per socond"
help
When set to 'y', short transfer tests at 16000 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_32000
bool "Skip short transfer tests at 32000 samples per socond"
help
When set to 'y', short transfer tests at 32000 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_44100
bool "Skip short transfer tests at 44100 samples per socond"
help
When set to 'y', short transfer tests at 44100 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_48000
bool "Skip short transfer tests at 48000 samples per socond"
help
When set to 'y', short transfer tests at 48000 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_88200
bool "Skip short transfer tests at 88200 samples per socond"
help
When set to 'y', short transfer tests at 88200 samples per second
will be skipped.

config I2S_TEST_SKIP_SAMPLERATE_96000
bool "Skip short transfer tests at 96000 samples per socond"
help
When set to 'y', short transfer tests at 96000 samples per second
will be skipped.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Drive i2s peripheral from ACLK. */

&clock {
hfclkaudio-frequency = <11289600>;
};

&i2s0 {
clock-source = "ACLK";
};
Loading