[ITC][audio-io][Non-ACR][modified file with print_result_cleanup check] 94/257094/3
authorMOHIT MIGLANI <mohit.m@samsung.com>
Mon, 19 Apr 2021 08:54:27 +0000 (14:24 +0530)
committershobhit verma <shobhit.v@samsung.com>
Tue, 20 Apr 2021 14:06:50 +0000 (14:06 +0000)
Change-Id: I6f33798fd77b19412591bb53e69954dee0b03f2e
Signed-off-by: MOHIT MIGLANI <mohit.m@samsung.com>
src/itc/audio-io/ITs-audio-input.c

index dc2a0df4ef310fa4a0284b8d76274b8358f795c1..dace8275707b516d9d85e09f3d28b325ba4ef515 100755 (executable)
@@ -774,12 +774,7 @@ int ITc_audio_in_set_get_volume_p(void)
         //Target API
         nRet = audio_in_get_volume(hInputHandle, &nGetVolume);
         PRINT_RESULT_CLEANUP(AUDIO_IO_ERROR_NONE, nRet, "audio_in_get_volume", AudioInputGetError(nRet), audio_in_destroy(hInputHandle));
-
-        if(nGetVolume!=nSetVolume[i]){
-            FPRINTF("[Line : %d][%s] Incorrect value of volume returned, Volume set:%f, Volume got:%f\\n", __LINE__, API_NAMESPACE, nSetVolume[i], nGetVolume);
-            audio_in_destroy(hInputHandle);
-            return 1;
-        }
+        PRINT_RESULT_CLEANUP(nSetVolume[i], nGetVolume, "audio_in_get_volume", "input and output volume are different", audio_in_destroy(hInputHandle));
     }
 
     audio_in_destroy(hInputHandle);