Revert "Revert "[AudioManager][Non-ACR] TSAudioManager: Add condition to check if... 69/247969/1
authorJihun Park <jihun87.park@samsung.com>
Thu, 19 Nov 2020 02:32:41 +0000 (02:32 +0000)
committerJihun Park <jihun87.park@samsung.com>
Thu, 19 Nov 2020 02:32:41 +0000 (02:32 +0000)
This reverts commit 83bbc7a92ae416a34408bd2e353e3fa9b097adc2.

Change-Id: If06bfc2e182e070030d999e658f8698dd345b296

tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioManager.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a74c97c..88402e5
@@ -1,5 +1,6 @@
 using NUnit.Framework;
 using System;
+using System.Linq;
 using System.Threading;
 using System.Threading.Tasks;
 
@@ -46,6 +47,9 @@ namespace Tizen.Multimedia.Tests
             var cts = new CancellationTokenSource();
             var audioStreamPolicy = new AudioStreamPolicy(AudioStreamType.Media);
 
+            if (AudioManager.GetConnectedDevices().Count(d => d.IoDirection == AudioDeviceIoDirection.Output) == 0)
+                return;
+
             foreach (AudioDevice d in AudioManager.GetConnectedDevices())
             {
                 if (d.Type == AudioDeviceType.AudioJack && d.IsRunning && d.IoDirection == AudioDeviceIoDirection.InputAndOutput)