public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_chamelium: document audio test frequencies
@ 2019-05-17 10:46 Simon Ser
  2019-05-17 12:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Simon Ser @ 2019-05-17 10:46 UTC (permalink / raw)
  To: igt-dev; +Cc: martin.peres

Explain that they can get dropped depending on the sampling rate and why.

Signed-off-by: Simon Ser <simon.ser@intel.com>
---
 tests/kms_chamelium.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
index c8b6b22d7b4a..0dd8c41ad2d5 100644
--- a/tests/kms_chamelium.c
+++ b/tests/kms_chamelium.c
@@ -785,12 +785,20 @@ static int test_sampling_rates[] = {

 static int test_sampling_rates_count = sizeof(test_sampling_rates) / sizeof(int);

+/* Test frequencies (Hz): a sine signal will be generated for each.
+ *
+ * Depending on the sampling rate chosen, it might not be possible to properly
+ * detect the generated sine (see Nyquist–Shannon sampling theorem).
+ * Frequencies that can't be reliably detected will be automatically pruned in
+ * #audio_signal_add_frequency. For instance, the 80KHz frequency can only be
+ * tested with a 192KHz sampling rate.
+ */
 static int test_frequencies[] = {
 	300,
 	600,
 	1200,
-	80000,
 	10000,
+	80000,
 };

 static int test_frequencies_count = sizeof(test_frequencies) / sizeof(int);
--
2.21.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-17 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-17 10:46 [igt-dev] [PATCH i-g-t] tests/kms_chamelium: document audio test frequencies Simon Ser
2019-05-17 12:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-05-17 12:17 ` [igt-dev] [PATCH i-g-t] " Arkadiusz Hiler
2019-05-17 16:42 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox