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 e70f31410a09f6cf477a4edd5792c63915e1a422..5778e3961414857e8064b2304c3b53ba79671346 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 7f4b5239bc4818bb51ce9630fbf160057dba138e..23d022017992bde57a1e030b16fce81f51e4cd32 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;