Get both-direction device when mask is both 89/107489/1
authorJeongho Mok <jho.mok@samsung.com>
Wed, 28 Dec 2016 07:52:24 +0000 (16:52 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Wed, 28 Dec 2016 07:52:24 +0000 (16:52 +0900)
[Version] 0.10.115
[Profile] Common
[Issue Type] bug fix

Change-Id: I5fb000a01590619d402c361badbf10670095f249

packaging/pulseaudio-modules-tizen.spec
src/device-manager.c

index e70f314..5778e39 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          5.0.114
+Version:          5.0.115
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 7f4b523..23d0220 100644 (file)
@@ -2528,7 +2528,7 @@ static bool device_is_match_direction(pa_tz_device *device, int direction_mask)
         return true;
     if ((direction_mask & DEVICE_IO_DIRECTION_OUT_FLAG) && (direction & DM_DEVICE_DIRECTION_OUT))
         return true;
-    if ((direction_mask & DEVICE_IO_DIRECTION_BOTH_FLAG) && (direction & DM_DEVICE_DIRECTION_BOTH))
+    if ((direction_mask & DEVICE_IO_DIRECTION_BOTH_FLAG) && (direction == DM_DEVICE_DIRECTION_BOTH))
         return true;
 
     return false;