change THD pass criteria to be in line with CDD

- 1% for THD
- referecne mic should be with in 1%
- DUT mic < reference + 1%

Change-Id: I953ffcfba360e15769f5a338c67032694e866a5f
diff --git a/suite/audio_quality/test_description/dut_recording_thd.xml b/suite/audio_quality/test_description/dut_recording_thd.xml
index 38986e3..49db0d2 100644
--- a/suite/audio_quality/test_description/dut_recording_thd.xml
+++ b/suite/audio_quality/test_description/dut_recording_thd.xml
@@ -32,7 +32,7 @@
 		</sequential>
 		<sequential repeat="5" index="k">
 			<!-- input: host record, device record, signal frequency in Hz, THD for pass in percentile, output: THD calculated -->
-			<process method="script:recording_thd" input="id:host_in_$k,id:dut_in_$k,consti:1000,constf:0.1" output="val:thd_host_$k,val:thd_device_$k" />
+			<process method="script:recording_thd" input="id:host_in_$k,id:dut_in_$k,consti:1000,constf:1.0" output="val:thd_host_$k,val:thd_device_$k" />
 		</sequential>
 	</action>
 	<save file="host_in_.*,dut_in_.*" report="thd_.*" />
diff --git a/suite/audio_quality/test_description/processing/check_spectrum.py b/suite/audio_quality/test_description/processing/check_spectrum.py
index 913b88c..a571fa4 100644
--- a/suite/audio_quality/test_description/processing/check_spectrum.py
+++ b/suite/audio_quality/test_description/processing/check_spectrum.py
@@ -60,7 +60,7 @@
     ratioMean = np.mean(amplitudeRatio)
     amplitudeRatio = amplitudeRatio / ratioMean
     print "Normialized ratio", amplitudeRatio
-    print "ration mean for normalization", ratioMean
+    print "ratio mean for normalization", ratioMean
     positiveMax = abs(max(amplitudeRatio))
     negativeMin = abs(min(amplitudeRatio))
     passFail = True if (positiveMax < (margainHigh / 100.0 + 1.0)) and\
diff --git a/suite/audio_quality/test_description/processing/recording_thd.py b/suite/audio_quality/test_description/processing/recording_thd.py
index 760fac0..46d82b5 100644
--- a/suite/audio_quality/test_description/processing/recording_thd.py
+++ b/suite/audio_quality/test_description/processing/recording_thd.py
@@ -65,7 +65,7 @@
     thdHost = calc_thd(hostRecording[delay:delay+N], signalFrequency, samplingRate, 0.02) * 100
     thdDevice = calc_thd(deviceRecording, signalFrequency, samplingRate, 0.02) * 100
     print "THD Host %", thdHost, "THD device %", thdDevice, "Margain % ", thdPassPercentile
-    if (thdDevice < (thdHost + thdPassPercentile)) and (thdDevice < 10.0):
+    if (thdDevice < (thdHost + thdPassPercentile)) and (thdHost < thdPassPercentile):
         output.append(RESULT_PASS)
     else:
         output.append(RESULT_OK)