[Sound-open-firmware] [PATCH v2 6/6] tone: fix default frequency and gain to match AES17 requirement

Ranjani Sridharan ranjani.sridharan at linux.intel.com
Sun Jun 24 09:59:28 CEST 2018


Fix frequenyc to 997Hz and gain to -20dB to match AES17 single
tone test case requirement

Signed-off-by: Ranjani Sridharan <ranjani.sridharan at linux.intel.com>
---
 src/audio/tone.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/audio/tone.c b/src/audio/tone.c
index 68a78f3..f98e5e0 100644
--- a/src/audio/tone.c
+++ b/src/audio/tone.c
@@ -63,9 +63,8 @@
 #define TONE_GAIN(v) Q_CONVERT_FLOAT(v, 31)
 
 /* Set default tone amplitude and frequency */
-#define TONE_AMPLITUDE_DEFAULT TONE_GAIN(0.5)      /*  -6 dB  */
-#define TONE_FREQUENCY_DEFAULT TONE_FREQ(82.41)    /* E2 note */
-
+#define TONE_AMPLITUDE_DEFAULT TONE_GAIN(0.1)      /*  -20 dB  */
+#define TONE_FREQUENCY_DEFAULT TONE_FREQ(997.0)
 #define TONE_NUM_FS            13       /* Table size for 8-192 kHz range */
 
 /* 2*pi/Fs lookup tables in Q1.31 for each Fs */
-- 
2.17.1



More information about the Sound-open-firmware mailing list